On 5 Feb 2010, at 0811h, Andy Kurth wrote:

> Problem 1:
> Install nmap.  This is listed as a system requirement on the main VCL wiki 
> page but was not listed on the management node instructions page. I have 
> updated this page.  If yum is available on your management node OS, try 'yum 
> install nmap'.  There are also rpms available at 
> http://nmap.org/download.html.

Yup, I definitely missed that one.  I've now added it, and it fixed the related 
warnings.  Looking at the management node page you just updated, you probably 
want to add nmap to the yum command listed there too.


> Problem 2:
> The network interface name on the Windows VM is named vmnet0 so it was 
> ignored.  The instructions on the page you mentioned refer to interfaces 
> named vmnet* but the interfaces it's referring to are of the VM host server, 
> not the VM guest.  I'm guessing you manually set the interface names from 
> "Local Area Connection*" to vmnet* on the Windows VM.  Rename them back to 
> "Local Area Connection*" to fix this problem.

Yup, I definitely took the liberty of renaming the interface in Windows, 
thinking that it'd help me keep things straight in the future.  Silly me.  I've 
now re-renamed the two connections to "public interface" and "private 
interface" and, swoosh, we went sailing past those former warnings.


> Problem 3:
> Something appears to have unregistered your VM.  Run 'vmware-cmd -l' on the 
> VMware host and check if the path to 15vmguest-1.vmx appears.  If not, it 
> needs to be registered before attempting the image capture again.  You can do 
> it by adding the VM via the VMware GUI or by running (all one line):
> vmware-cmd -s register /var/lib/vmware/Virtual\ 
> Machines/15vmguest-1/15vmguest-1.vmx

This one is a bit of a longer story.  Initially, I got this warning:

______________________
|26664|1:24|image| ---- WARNING ---- 
|26664|1:24|image| 2010-02-08 
10:58:16|26664|1:24|image|vmware.pm:power_off(2424)|failed to run vmware-cmd 
stop trysoft on 24vmguest-1, exit status: 11, output:
|26664|1:24|image| Use of uninitialized value in string eq at 
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/VMware/VmPerl.pm 
line 114. /usr/bin/vmware-cmd: Could not connect to VM /var/lib/vmware/Virtual 
Machines/24vmguest-1/24vmguest-1.vmx   (VMControl error -11: No such virtual 
machine: The config file /var/lib/vmware/Virtual 
Machines/24vmguest-1/24vmguest-1.vmx is not registered. Please register the 
config file on the server.  For example: vmware-cmd -s register 
"/var/lib/vmware/Virtual Machines/24vmguest-1/24vmguest-1.vmx")
|26664|1:24|image| ( 0) utils.pm, notify (line: 737)
|26664|1:24|image| (-1) vmware.pm, power_off (line: 2424)
|26664|1:24|image| (-2) Windows.pm, run_sysprep (line: 6058)
|26664|1:24|image| (-3) Version_5.pm, pre_capture (line: 97)
|26664|1:24|image| (-4) vmware.pm, capture (line: 1202)
|26664|1:24|image| (-5) image.pm, process (line: 162)
|26664|1:24|image| (-6) vcld, make_new_child (line: 594)
________________________

...which, after doing a bit of googling, I sort-of fixed by commenting out the 
relevant lines in vmperl.pm.  The unititalized value error went away, but I 
remain stuck in the same place, with the following warning:

__________________________
|28719|1:27|image| ---- WARNING ---- 
|28719|1:27|image| 2010-02-08 
12:15:36|28719|1:27|image|vmware.pm:power_off(2424)|failed to run vmware-cmd 
stop trysoft on 27vmguest-1, exit status: 11, output:
|28719|1:27|image| /usr/bin/vmware-cmd: Could not connect to VM 
/var/lib/vmware/Virtual Machines/27vmguest-1/27vmguest-1.vmx   (VMControl error 
-11: No such virtual machine: The config file /var/lib/vmware/Virtual 
Machines/27vmguest-1/27vmguest-1.vmx is not registered. Please register the 
config file on the server.  For example: vmware-cmd -s register 
"/var/lib/vmware/Virtual Machines/27vmguest-1/27vmguest-1.vmx")
|28719|1:27|image| ( 0) utils.pm, notify (line: 737)
|28719|1:27|image| (-1) vmware.pm, power_off (line: 2424)
|28719|1:27|image| (-2) Windows.pm, run_sysprep (line: 6058)
|28719|1:27|image| (-3) Version_5.pm, pre_capture (line: 97)
|28719|1:27|image| (-4) vmware.pm, capture (line: 1202)
|28719|1:27|image| (-5) image.pm, process (line: 162)
|28719|1:27|image| (-6) vcld, make_new_child (line: 594)
___________________________

...which I "fixed" by renaming the vm directory and configuration file to 
nnvmguest-1 - with 'nn' incremented by 1 each time I attempted the capture 
(making it equal to the reservation id).  Without maunally renaming, attempting 
to register the vm as you, and the warning itself, suggested simply reported 
that the vm didn't exist.  Renaming things, I cleared the above warning, and, 
with a bit more futzing, even got the image to be captured, but then ran 
straight into the next problem:

____________________________
2010-02-08 16:51:49|459|1:31|image|vmware.pm:capture(1265)|begin rename local 
disk image files to newname
Use of uninitialized value in concatenation (.) or string at
        /usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282 
(#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.
    
    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.
    

|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1282)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1282)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1282)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1282)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1282)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1282.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1282)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1296.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1296)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)


|459|1:31|image| ---- WARNING ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vcld:warning_handler(636)|Use of uninitialized value in 
concatenation (.) or string at 
/usr/local/vcl/bin/../lib/VCL/Module/Provisioning/vmware.pm line 1322.
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vcld, warning_handler (line: 636)
|459|1:31|image| (-2) vmware.pm, capture (line: 1322)
|459|1:31|image| (-3) image.pm, process (line: 162)
|459|1:31|image| (-4) vcld, make_new_child (line: 594)
|459|1:31|image| (-5) vcld, main (line: 341)

2010-02-08 16:51:49|27487|vcld:main(165)|lastcheckin time updated for 
management node 1: 2010-02-08 16:51:49
No recipient addresses found in header
2010-02-08 16:51:49|459|1:31|image|utils.pm:mail(1348)|SUCCESS -- Sending mail 
To: , PROBLEM -- vmware.pm

|459|1:31|image| ---- CRITICAL ---- 
|459|1:31|image| 2010-02-08 
16:51:49|459|1:31|image|vmware.pm:capture(1322)|could not read 
/install/vmware_images/vmwarewinxp-base7-v0/.vmdk Inappropriate ioctl for device
|459|1:31|image| ( 0) utils.pm, notify (line: 737)
|459|1:31|image| (-1) vmware.pm, capture (line: 1322)
|459|1:31|image| (-2) image.pm, process (line: 162)
|459|1:31|image| (-3) vcld, make_new_child (line: 594)
|459|1:31|image| (-4) vcld, main (line: 341)
_____________________________

...etc., etc.  And, at this point, I figured I ought to contact you again for 
assistance.  I *have* to be getting closer now, but clearly I'm still missing 
some required details.  My current problem sure seems related to the previous 
one:  naming and renaming the vm - but beyond that I'm personally at a 
dead-end.  So, if you remain willing, help!

Thanks,
Terry

Reply via email to