Re: Cannot open disk

2010-05-11 Thread Andy Kurth

Hi Mark,
I'm guessing the disk extents defined in the .vmdk file don't match what's in 
the directory.  Open up vmwarelinux-xubuntu904-v0.vmdk and look for the "Extent 
description" section.  There should be some additional .vmdk files listed under 
this section.  Compare these file names to the contents of the 
vmwarelinux-xubuntu904-v0 directory.  Do all of the files listed in the .vmdk 
file exist?


The extent section gets updated during the image capture process when vcld 
renames the .vmdk files.  This may have gotten hung up.  The remaining .vmdk 
files in the directory should be named vmwarelinux-xubuntu904-v0-s00x.vmdk, 
where the 'x' in s00x is numbered sequentially.  If the main .vmdk file 
(vmwarelinux-xubuntu904-v0.vmdk) contains different extent names, try to edit it 
to match what's in the directory and try to start the VM again.


Hope this helps,
Andy

Mark Gardner wrote:

Making a bit of progress... Hit another snag. After the image is copied, it
tries to start it up but hits an error because the VM requires user input:

|32571|10:10|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
localvmhost 'vmware-cmd
/home/vm/vmware/vmwarelinux-xubuntu904-v0vmguest-1/vmwarelinux-xubuntu904-v0vmguest-1.vmx
start' 2>&1
...
|32571|10:10|new| VMControl error -16: Virtual machine requires user input
to continue

Starting the VM up in the vmware GUI client gives the error "Cannot open the
disk
'/images/vmware/vmwarelinux-xubuntu904-v0/vmwarelinux-xubuntu904-v0.vmdk' or
one of the snapshot disks it depends on. Reason: Failed to lock the file.".

The disk image exists:
$ ls -l
/images/vmware/vmwarelinux-xubuntu904-v0/vmwarelinux-xubuntu904-v0.vmdk
2524548 -rw--- 1 root root 2524544 Apr 28 09:53
/images/vmware/vmwarelinux-xubuntu904-v0/vmwarelinux-xubuntu904-v0.vmdk

As far as I can tell, there are no locks on the disk anyware.

I am enclosing the vcld.log.

Thanks in advance,
Mark




Cannot open disk

2010-04-28 Thread Mark Gardner
Making a bit of progress... Hit another snag. After the image is copied, it
tries to start it up but hits an error because the VM requires user input:

|32571|10:10|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
localvmhost 'vmware-cmd
/home/vm/vmware/vmwarelinux-xubuntu904-v0vmguest-1/vmwarelinux-xubuntu904-v0vmguest-1.vmx
start' 2>&1
...
|32571|10:10|new| VMControl error -16: Virtual machine requires user input
to continue

Starting the VM up in the vmware GUI client gives the error "Cannot open the
disk
'/images/vmware/vmwarelinux-xubuntu904-v0/vmwarelinux-xubuntu904-v0.vmdk' or
one of the snapshot disks it depends on. Reason: Failed to lock the file.".

The disk image exists:
$ ls -l
/images/vmware/vmwarelinux-xubuntu904-v0/vmwarelinux-xubuntu904-v0.vmdk
2524548 -rw--- 1 root root 2524544 Apr 28 09:53
/images/vmware/vmwarelinux-xubuntu904-v0/vmwarelinux-xubuntu904-v0.vmdk

As far as I can tell, there are no locks on the disk anyware.

I am enclosing the vcld.log.

Thanks in advance,
Mark

-- 
Mark Gardner
--
===
OUTPUT for vcld run on 2010-04-28 09:53:22
===
2010-04-28 09:53:22|32550|vcld:main(116)|vcld environment variable set to 1 for this process
2010-04-28 09:53:22|32550|utils.pm:rename_vcld_process(7901)|renamed process to 'vcld vcld'
2010-04-28 09:53:22|32550|utils.pm:get_management_node_info(6815)|management node info retrieved from database for localhost
2010-04-28 09:53:22|32550|vcld:main(127)|retrieved management node information from database
2010-04-28 09:53:22|32550|vcld:main(140)|management_node_id environment variable set: 1
2010-04-28 09:53:22|32550|vcld:main(148)|management node checkin interval is 5 seconds
2010-04-28 09:53:22|32550|vcld:main(149)|vcld started on localhost
2010-04-28 09:53:27|32550|vcld:main(165)|lastcheckin time updated for management node 1: 2010-04-28 09:53:27
...
2010-04-28 09:53:42|32550|vcld:main(165)|lastcheckin time updated for management node 1: 2010-04-28 09:53:42
2010-04-28 09:53:42|32550|10:10|new|utils.pm:reservation_being_processed(9634)|computerloadlog 'begin' entry does NOT exist for reservation 10
2010-04-28 09:53:42|32550|10:10|new|utils.pm:reservation_being_processed(9686)|reservation is NOT currently being processed
2010-04-28 09:53:42|32550|10:10|new|vcld:main(276)|reservation 10 is NOT already being processed
2010-04-28 09:53:42|32550|10:10|new|utils.pm:get_request_info(5354)|standalone affiliation found: Local
2010-04-28 09:53:42|32550|10:10|new|utils.pm:get_management_node_info(6815)|management node info retrieved from database for localhost
2010-04-28 09:53:42|32550|10:10|new|vcld:main(281)|retrieved request information from database
2010-04-28 09:53:42|32550|10:10|new|utils.pm:get_management_node_info(6815)|management node info retrieved from database for localhost
2010-04-28 09:53:42|32550|10:10|new|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 10
2010-04-28 09:53:42|32550|10:10|new|utils.pm:update_request_state(2186)|request 10 state updated to: pending, laststate to: new
2010-04-28 09:53:42|32550|10:10|new|utils.pm:insertloadlog(4710)|inserted computer=2, begin, beginning to process, state is new
2010-04-28 09:53:42|32550|10:10|new|vcld:make_new_child(509)|loaded VCL::new module
2010-04-28 09:53:42|32550|10:10|new|vcld:make_new_child(566)|current number of forked kids: 1
2010-04-28 09:53:42|32571|10:10|new|vcld:make_new_child(582)|vcld environment variable set to 0 for this process
2010-04-28 09:53:42|32571|10:10|new|Module.pm:new(132)|constructor called, class=VCL::new
2010-04-28 09:53:42|32571|10:10|new|Module.pm:new(154)|VCL::new object created
2010-04-28 09:53:42|32571|10:10|new|State.pm:initialize(85)|obtained a database handle for this state process, stored as $ENV{dbh}
2010-04-28 09:53:42|32571|10:10|new|State.pm:check_image_os(820)|no corrections need to be made, not an imaging request, returning 1
2010-04-28 09:53:42|32571|10:10|new|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 10
2010-04-28 09:53:42|32571|10:10|new|utils.pm:rename_vcld_process(7863)|reservation count: 1
2010-04-28 09:53:42|32571|10:10|new|utils.pm:rename_vcld_process(7882)|PARENTIMAGE: 1
2010-04-28 09:53:42|32571|10:10|new|utils.pm:rename_vcld_process(7883)|SUBIMAGE: 0
2010-04-28 09:53:42|32571|10:10|new|utils.pm:rename_vcld_process(7901)|renamed process to 'vcld VCL::new 10:10 new'
2010-04-28 09:53:42|32571|10:10|new|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 10
2010-04-28 09:53:42|32571|10:10|new|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 10
2010-04-28 09:53:42|32571|10:10|new|State.pm:initialize(121)|attempting to load provisioning module: VCL::Module::Provisioning::vmware
2010-04-28 09:53:42|32571|10:10|new|State.pm:in