Linux base image on ESXi server?

2011-11-01 Thread Dmitri Chebotarov
Hi All

I'm stuck on creating a base image (Linux) for newly deployed Apache VCL
system and looking for help...
This is the closes I got so far to a working system.
I'm using ESXi 4.1 (60 days evaluation), ssh is enabled, ESXi server name
is esxiServer01, added to the host file on VCL management server. Linux
server being imaged is vm-00 running on esxiServer01. Added to the host
file as well on VCL server. I can ping both and ssh -i key host works.

Below is the full log for the process. These lines puzzle me:

2011-11-01
08:40:59|16965|20:20|image|OS.pm:is_ssh_responding(405)|esxiServer01 is NOT
responding to SSH, SSH command failed, port 22: open, port 24: closed

2011-11-01 08:40:59|16965|20:20|image|VMware.pm:initialize(257)|unable to
control OS of VM host esxiServer01 using VCL::Module::OS::Linux::UnixLab OS
object because VM host is not responding to SSH

since I can ping the VM host and 'ssh -i /etc/vcl/vcl.key esxiServer01'
works fine.

Also all http(s) links work fine when I access them from management server.

Is there a way to create and register images manually? Can I use Veeam
FastSCP or similar software to copy VMs to VCL server and register them? If
there is way to do so, anyone has a link?

I would appreciate any help. Thank you.

Here is the full log file for the imaging process:

VCL::image object could not be created and initialized

time: 2011-11-01 08:40:59
caller: vcld:make_new_child(571)
( 0) vcld, make_new_child (line: 571)
(-1) vcld, main (line: 346)

management node: vcl-01
reservation PID: 16965
parent vcld PID: 5086

request ID: 20
reservation ID: 20
request state/laststate: image/image
request start time: 2011-11-01 08:40:49
request end time: 2011-11-01 09:40:49
for imaging: no
log ID: none

computer: vm-00
computer id: 23
computer type: virtualmachine
computer eth0 MAC address: 
computer eth1 MAC address: 
computer private IP address: 192.168.200.15
computer public IP address: 192.168.200.15
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: esxiServer01
vm host ID: 3
vm host computer ID: 11
vm profile: VMware ESX - local storage
vm profile VM path: /vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2/
vm profile repository path: 0
vm profile datastore path:
/vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2/
vm profile disk type: localdisk

image: vmwarelinux-linuximage0128-v0
image display name: linux-image-01
image ID: 28
image revision ID: 28
image size: 1450 MB
use Sysprep: yes
root access: yes
image owner ID: 1
image owner affiliation: Local
image revision date created: 2011-11-01 08:40:49
image revision production: yes
OS module: VCL::Module::OS::Linux

user: admin
user name: vcl admin
user ID: 1
user affiliation: Local

RECENT LOG ENTRIES FOR THIS PROCESS:
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:_automethod(834)|data structure
updated: $self->request_data->{reservation}{0}{computer}{IPaddress}
|16965|20:20|image| computer_ip_address = 127.0.0.1
2011-11-01
08:40:51|16965|20:20|image|Module.pm:create_mn_os_object(366)|VCL::Module::OS::Linux::ManagementNode
OS object created, address: 1b2415c0
2011-11-01 08:40:51|16965|20:20|image|Module.pm:new(192)|VCL::image object
created for state image, address: 1b03b4c0
2011-11-01 08:40:51|16965|20:20|image|State.pm:initialize(86)|obtained a
database handle for this state process, stored as $ENV{dbh}
2011-11-01 08:40:51|16965|20:20|image|State.pm:check_image_os(762)|no
corrections need to be made to image OS: vmwarelinux
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:is_parent_reservation(991)|returning
true: parent reservation ID for this request: 20
2011-11-01 
08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7098)|reservation
count: 1
2011-11-01 
08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7117)|PARENTIMAGE:
1
2011-11-01 
08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7118)|SUBIMAGE:
0
2011-11-01 08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7136)|renamed
process to 'vcld 20:20 image vm-00>esxiServer01
vmwarelinux-linuximage0128-v0 admin'
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:is_parent_reservation(991)|returning
true: parent reservation ID for this request: 20
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:is_parent_reservation(991)|returning
true: parent reservation ID for this request: 20
2011-11-01
08:40:51|16965|20:20|image|Module.pm:create_os_object(298)|VCL::Module::OS::Linux
module loaded
2011-11-01
08:40:51|16965|20:20|image|Module.pm:create_mn_os_object(335)|management
node OS object has already been created, address: 1b2415c0, returning 1
2011-11-01
08:40:51|16965|20:20|image|Module.pm:new(196)|VCL::Module::OS::Linux object
created for image vmwarelinux-linuximage0128-v0, 

Re: Reservation/reload errors

2011-11-01 Thread Huang,Lei
Thanks everyone for your help. I changed my timezone to CDT, and the
timezone in .ht-inc/conf.php as America/Chicago. It works now! I am not
sure why it worked before without the time synced.

Thanks,
Lei Huang



On 11/1/11 7:28 AM, "Aaron Peeler"  wrote:

>Lei,
>
>A couple of more things to check.
>
>You mentioned  No functional management node.
>
>Make sure vcld is running on your management node.
>
>Make sure it is checking in.
>Management Node -> Edit Management node info. You should see a time
>stamp of the last checkin.
>If the management node, web server, and database are different hosts,
>make sure the time is in sync.
>
>Aaron
>
>
>
>On Mon, Oct 31, 2011 at 6:00 PM,   wrote:
>> If you make a new group of computers, you have to go to management node
>>menu and maping and check the vmcomputers group
>>
>> I hope this tip will help you
>>
>>
>> Juan José Zamanillo
>>
>> -Original Message-
>> From: "Huang,Lei" 
>> Date: Mon, 31 Oct 2011 16:45:21
>> To: vcl-user@incubator.apache.org
>> Reply-To: vcl-user@incubator.apache.org
>> Subject: RE: Reservation/reload errors
>>
>> Hi Alex,
>>
>>  Thanks for your quick answers. I checked the image options and
>>compared with vmguests, everything look fine to me. The system worked
>>just fine before, and I just found the problem today. None of images
>>works now. Even when I change the status of a vmguest to maintenance, it
>>fails:
>>
>> The following computers currently have reservations on them but no
>>functional management node was found for them. Nothing will be done with
>>them at this time: vmguest-1
>>
>>
>>  However, there is no reservations at all on the system. Any other
>>suggestions?
>>
>> Thanks,
>> Lei
>>
>>
>> 
>> From: Alexander Patterson [alexander.patter...@csueastbay.edu]
>> Sent: Monday, October 31, 2011 4:30 PM
>> To: vcl-user@incubator.apache.org
>> Subject: Re: Reservation/reload errors
>>
>> Hello Huang Lei,
>>
>> Go to Manage Images
>>
>> Then Click on Edit of whatever image you are having this issue with
>>
>> Click on advanced Options
>> Make sure that Available for checkout is listed and the Machines RAM
>> CPU speed match the VM's numbers that you have in your pool
>>
>>
>> For example
>> 2400mhz
>> 1.5ghz of ram
>> 100mbps network card
>> 1 core
>>
>> I have machines with the same spec that can be loaded on this.
>>
>> Also check the Maximum concurrent users is not capped?
>>
>> Selection not currently available
>> Means there are no computers with whatever spec ready to be loaded on
>> so it's not available.
>>
>> You should have a vmguest-5 in your manage Computer
>>
>> Click on Manage Computer, then Edit Computer Information
>> Click on vmguest-5 click on EDIT
>>
>> Make sure your information is correct and will work with the same
>> spec's your image is.
>>
>> Hope this helps
>> -Alex
>>
>>
>> When you see
>> On Mon, Oct 31, 2011 at 2:19 PM, Huang,Lei  wrote:
>>> Dear all,
>>>
>>>  Our VCL stops working when I try to reserve any images. It always
>>>says that "Selection not currently available" all images.
>>>
>>>   I see that all computers and vmguests are available, and I can log
>>>into these nodes too. When I try to reload an image for a vmguest,
>>>there is the following error message:
>>>
>>> No functional management node was found for the following computers.
>>>They could not be reloaded at this time:
>>> vmguest-5
>>>
>>>  I don't see anything special in the log file either. I wonder if
>>>anyone has seen this problem before, and how to reset the system.
>>>
>>> Thanks,
>>> Lei Huang
>>
>>
>>
>> --
>> Thanks,
>> Alex  Patterson
>> User Support Services
>> Operating System Analyst
>> California State University, East Bay
>
>
>
>-- 
>Aaron Peeler
>Program Manager
>Virtual Computing Lab
>NC State University
>
>All electronic mail messages in connection with State business which
>are sent to or received by this account are subject to the NC Public
>Records Law and may be disclosed to third parties.



Re: Reservation/reload errors

2011-11-01 Thread Aaron Peeler
Lei,

A couple of more things to check.

You mentioned  No functional management node.

Make sure vcld is running on your management node.

Make sure it is checking in.
Management Node -> Edit Management node info. You should see a time
stamp of the last checkin.
If the management node, web server, and database are different hosts,
make sure the time is in sync.

Aaron



On Mon, Oct 31, 2011 at 6:00 PM,   wrote:
> If you make a new group of computers, you have to go to management node menu 
> and maping and check the vmcomputers group
>
> I hope this tip will help you
>
>
> Juan José Zamanillo
>
> -Original Message-
> From: "Huang,Lei" 
> Date: Mon, 31 Oct 2011 16:45:21
> To: vcl-user@incubator.apache.org
> Reply-To: vcl-user@incubator.apache.org
> Subject: RE: Reservation/reload errors
>
> Hi Alex,
>
>  Thanks for your quick answers. I checked the image options and compared with 
> vmguests, everything look fine to me. The system worked just fine before, and 
> I just found the problem today. None of images works now. Even when I change 
> the status of a vmguest to maintenance, it fails:
>
> The following computers currently have reservations on them but no functional 
> management node was found for them. Nothing will be done with them at this 
> time: vmguest-1
>
>
>  However, there is no reservations at all on the system. Any other 
> suggestions?
>
> Thanks,
> Lei
>
>
> 
> From: Alexander Patterson [alexander.patter...@csueastbay.edu]
> Sent: Monday, October 31, 2011 4:30 PM
> To: vcl-user@incubator.apache.org
> Subject: Re: Reservation/reload errors
>
> Hello Huang Lei,
>
> Go to Manage Images
>
> Then Click on Edit of whatever image you are having this issue with
>
> Click on advanced Options
> Make sure that Available for checkout is listed and the Machines RAM
> CPU speed match the VM's numbers that you have in your pool
>
>
> For example
> 2400mhz
> 1.5ghz of ram
> 100mbps network card
> 1 core
>
> I have machines with the same spec that can be loaded on this.
>
> Also check the Maximum concurrent users is not capped?
>
> Selection not currently available
> Means there are no computers with whatever spec ready to be loaded on
> so it's not available.
>
> You should have a vmguest-5 in your manage Computer
>
> Click on Manage Computer, then Edit Computer Information
> Click on vmguest-5 click on EDIT
>
> Make sure your information is correct and will work with the same
> spec's your image is.
>
> Hope this helps
> -Alex
>
>
> When you see
> On Mon, Oct 31, 2011 at 2:19 PM, Huang,Lei  wrote:
>> Dear all,
>>
>>  Our VCL stops working when I try to reserve any images. It always says that 
>> "Selection not currently available" all images.
>>
>>   I see that all computers and vmguests are available, and I can log into 
>> these nodes too. When I try to reload an image for a vmguest, there is the 
>> following error message:
>>
>> No functional management node was found for the following computers. They 
>> could not be reloaded at this time:
>> vmguest-5
>>
>>  I don't see anything special in the log file either. I wonder if anyone has 
>> seen this problem before, and how to reset the system.
>>
>> Thanks,
>> Lei Huang
>
>
>
> --
> Thanks,
> Alex  Patterson
> User Support Services
> Operating System Analyst
> California State University, East Bay



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.