You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Ryan Johnson <rj...@gwmail.gwu.edu> on 2010/03/08 22:46:21 UTC

Warnings during image capture

The warning below occurs several times when I try to create a Windows base
image per the instructions on the VCL site.  Ultimately, when the test
completes, I get an empty folder with the name of the image in the golden
directory and a folder in the inuse directory with a virtual machine file
with a size that is less than a kilobyte so I assume something is going
wrong.  Does anyone know what this warning refers to?  Does this warning
indicate an actual problem?

2010-03-08 16:35:36|4628|1:1|image|esx.pm:capture(583)|Entering ESX Capture
routine
2010-03-08 16:35:36|4628|1:1|image|utils.pm:run_ssh_command(5824)|executing
SSH command on 128.164.136.250:
|4628|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
128.164.136.250 'ls -1 /images/inuse/Vista-VCL 2>&1' 2>&1
2010-03-08 16:35:36|4628|1:1|image|utils.pm:run_ssh_command(5908)|run_ssh_command
output:
|4628|1:1|image| vmwarewinvista-base7-v1.vmx
2010-03-08 16:35:36|4628|1:1|image|utils.pm:run_ssh_command(5922)|SSH
command executed on 128.164.136.250, returning (0,
"vmwarewinvista-base7-v1.vmx")

|4628|1:1|image| ---- WARNING ----
|4628|1:1|image| 2010-03-08
16:35:36|4628|1:1|image|vcld:warning_handler(635)|Use of uninitialized value
$old_imagename in concatenation (.) or string at
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/esx.pm line 635.
|4628|1:1|image| ( 0) utils.pm, notify (line: 786)
|4628|1:1|image| (-1) vcld, warning_handler (line: 635)
|4628|1:1|image| (-2) esx.pm, capture (line: 635)
|4628|1:1|image| (-3) image.pm, process (line: 162)
|4628|1:1|image| (-4) vcld, make_new_child (line: 593)
|4628|1:1|image| (-5) vcld, main (line: 340)

2010-03-08 16:35:36|4628|1:1|image|esx.pm:capture(635)|found previous name=

Re: Warnings during image capture

Posted by Ryan Johnson <rj...@gwmail.gwu.edu>.
After further investigation I found that the service appears to fail to copy
the vmdk file.  When I am creating a base image, do the files for the target
VM have to be on the NFS or is is possible to capture the image from files
on the ESX server?

|17056|1:8|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
128.164.136.250 'cp /images/inuse/Vista-VCL/.vmdk
/images/golden/vmwarewinxp-base7-v2/vmwarewinxp-base7-v2.vmdk' 2>&1
|17056|1:8|image| returning (1, "cp: cannot stat `/images/inuse...")
2010-03-11 17:12:41|17056|1:8|image|esx.pm:capture(668)|COPIED VMDK
SUCCESSFULLY

|17056|1:8|image| ---- WARNING ----
|17056|1:8|image| 2010-03-11
17:12:41|17056|1:8|image|vcld:warning_handler(635)|Use of uninitialized
value $old_imagename in concatenation (.) or string at
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/esx.pm line 671.
|17056|1:8|image| ( 0) utils.pm, notify (line: 786)
|17056|1:8|image| (-1) vcld, warning_handler (line: 635)
|17056|1:8|image| (-2) esx.pm, capture (line: 671)
|17056|1:8|image| (-3) image.pm, process (line: 162)
|17056|1:8|image| (-4) vcld, make_new_child (line: 593)
|17056|1:8|image| (-5) vcld, main (line: 340)