Re: Image Creation Failing after vmware.pm changes
ok. I think it is related to the patch I added. Sorry about that. As you said it looks like it copied the image directory into the target instead of just the vmdk files. What I think needs to change is moving the cp to a mv command in at line 504 in vmware.pm module. I'll test it here on our 2.1 sandbox image to confirm if this will fix it. Aaron On 9/20/10 3:22 PM, Alexander Patterson wrote: Hello Aaron, In the /virtualmachines folder. I have our base images /virtualmachines/vmwarewinxp-CSUXPbuild105-v0/ Inside of this directory I have the nvram vmware-0.log vmware-1.log vmware-2.log vmware.log vmwarewinxp-CSUXPbuild105-v0-s001.vmdk vmwarewinxp-CSUXPbuild105-v0-s002.vmdk vmwarewinxp-CSUXPbuild105-v0-s003.vmdk vmwarewinxp-CSUXPbuild105-v0-s004.vmdk vmwarewinxp-CSUXPbuild105-v0-s005.vmdk vmwarewinxp-CSUXPbuild105-v0-s006.vmdk vmwarewinxp-CSUXPbuild105-v0-s007.vmdk vmwarewinxp-CSUXPbuild105-v0-s008.vmdk vmwarewinxp-CSUXPbuild105-v0-s009.vmdk vmwarewinxp-CSUXPbuild105-v0-s010.vmdk vmwarewinxp-CSUXPbuild105-v0-s011.vmdk vmwarewinxp-CSUXPbuild105-v0-s012.vmdk vmwarewinxp-CSUXPbuild105-v0-s013.vmdk vmwarewinxp-CSUXPbuild105-v0-s014.vmdk vmwarewinxp-CSUXPbuild105-v0-s015.vmdk vmwarewinxp-CSUXPbuild105-v0-s016.vmdk vmwarewinxp-CSUXPbuild105-v0-s017.vmdk vmwarewinxp-CSUXPbuild105-v0-s018.vmdk vmwarewinxp-CSUXPbuild105-v0-s019.vmdk vmwarewinxp-CSUXPbuild105-v0-s020.vmdk vmwarewinxp-CSUXPbuild105-v0-s021.vmdk vmwarewinxp-CSUXPbuild105-v0.vmdk vmwarewinxp-CSUXPbuild105-v0.vmdk.WRITELOCK vmwarewinxp-CSUXPbuild105-v0.vmsd vmwarewinxp-CSUXPbuild105-v0.vmx I built this image, from Windows XP within vmware server off our management node and it works fine. I can create off this now it with your fix. But when the system did a update within VCL using the VCL scripts. It created a new folder called /virtualmachines/vmwarewinxp-CSUXPbuild105-v1 (THE VMX updated files should be in here but they are not) That's great, but here is the problem. It then created /virtualmachines/vmwarewinxp-CSUXPbuild105-v1/11592vmguest-91 /virtualmachines/vmwarewinxp-CSUXPbuild105-v1/ Only has the folder 11592vmguest-91 that has the guest vmware files This is what's inside of /virtualmachines/vmwarewinxp-CSUXPbuild105-v1/11592vmguest-91 /virtualmachines/vmwarewinxp-CSUXPbuild105-v1/11592vmguest-91 11592vmguest-91-s001.vmdk 11592vmguest-91-s007.vmdk 11592vmguest-91-s013.vmdk 11592vmguest-91-s019.vmdk nvram vmwarewinxp-CSUXPbuild105-v0.vmx 11592vmguest-91-s002.vmdk 11592vmguest-91-s008.vmdk 11592vmguest-91-s014.vmdk 11592vmguest-91-s020.vmdk vmware-0.log 11592vmguest-91-s003.vmdk 11592vmguest-91-s009.vmdk 11592vmguest-91-s015.vmdk 11592vmguest-91-s021.vmdk vmware-1.log 11592vmguest-91-s004.vmdk 11592vmguest-91-s010.vmdk 11592vmguest-91-s016.vmdk 11592vmguest-91.vmdk vmware-2.log 11592vmguest-91-s005.vmdk 11592vmguest-91-s011.vmdk 11592vmguest-91-s017.vmdk 11592vmguest-91.vmsd vmware.log 11592vmguest-91-s006.vmdk 11592vmguest-91-s012.vmdk 11592vmguest-91-s018.vmdk 11592vmguest-91.vmx vmwarewinxp-CSUXPbuuild105-v0.vmsd I was thinking of a few ways to fix this, either manually remaining the vmdk files, and changing the vmx files to be the same on the nfs and php side might work, but that would be spinning my wheels and I can't do that each time someone wants to make a new image. I have people who want to start making images for their campuses and I need to get this working. I really appreciate your help so far. It looks like the VCL scripts isn't putting the files in the correct location causing the error saying the file is not it's correct direction, because it's not. Question number #2 I just updated another of my build images, to see if it does the same error as it did above. I was watching the logs and it worked just fine doing a update image. I'm waiting for it to rebuild currently. I will update the topic when I have more information. -Alex
Re: Image Creation Failing after vmware.pm changes
Hi Alex, I think there might be two issues listed here. One with the image not being found and another with permission issue after C:\\Cygwin\\home\\root\\VCL gets cleaned up. On the first one can you manually confirm or check to see if vmwarewinxp-CSUXPbuild105-v1 exists. Also if possible can you pull out the image capture portion of this image from the vcld.log file. I'm wondering if there is a problem with the fix I added in for using vmware-vdiskmanger. Aaron On 9/17/10 5:20 PM, Alexander Patterson wrote: I may have spoken to soon about the base images. I was able to update the this image yesterday and it took the changes, but when I try to reload the image back up to create new images. I can't even get it to load. 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(672)|grep: /install/vmware_images/vmwarewinxp-CSUXPbuild105-v1/vmwarewinxp-CSUXPbuild105-v1.vmdk: No such file or directory 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(680)|adapter= ide drivetype hda 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(757)|wrote vmxarray to /tmp/11774vmguest-5/11774vmguest-5.vmx 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:insertloadlog(4710)|inserted computer=9, vmconfigcopy, transferring vmx file to vclesx05 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_scp_command(6403)|attempt 1/3: executing SCP command: /usr/bin/scp -B -i /etc/vcl/vcl.key -P 22 -p -r /tmp/11774vmguest-5 vclesx05:"/virtualmachines" 2>&1 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_scp_command(6453)|scp successful: attempt 1/3, exit status: 0, output: none 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx05: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'ls -1 /virtualmachines/11774vmguest-5;chmod 755 /virtualmachines/11774vmguest-5/11774vmguest-5.vmx' 2>&1 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6262)|run_ssh_command output: |31791|12038:11774|new| 11592vmguest-91 |31791|12038:11774|new| 11774vmguest-5.vmx 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6276)|SSH command executed on vclesx05, returning (0, "11592vmguest-91 11774vmguest-5...") 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(773)|successfully copied vmx file to vclesx05 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:insertloadlog(4710)|inserted computer=9, vmsetupconfig, setting up vmx file 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(794)|successfully removed /tmp/11774vmguest-5/11774vmguest-5.vmx 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(795)|successfully removed tmp directory 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx05: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'vmware-cmd -s register /virtualmachines/11774vmguest-5/11774vmguest-5.vmx' 2>&1 2010-09-17 10:30:02|11225|vcld:main(165)|lastcheckin time updated for management node 1: 2010-09-17 10:30:02 2010-09-17 10:30:08|11225|vcld:main(165)|lastcheckin time updated for management node 1: 2010-09-17 10:30:08 2010-09-17 10:30:10|31791|12038:11774|new|utils.pm:run_ssh_command(6262)|run_ssh_command output: |31791|12038:11774|new| register(/virtualmachines/11774vmguest-5/11774vmguest-5.vmx) = 1 2010-09-17 10:30:10|31791|12038:11774|new|utils.pm:run_ssh_command(6276)|SSH command executed on vclesx05, returning (0, "register(/virtualmachines/1177...") 2010-09-17 10:30:10|31791|12038:11774|new|vmware.pm:load(809)|vm /virtualmachines/11774vmguest-5/11774vmguest-5.vmx registered 2010-09-17 10:30:10|31791|12038:11774|new|vmware.pm:load(831)|starting vm /virtualmachines/11774vmguest-5/11774vmguest-5.vmx - pass 1 2010-09-17 10:30:10|31791|12038:11774|new|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx05: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'vmware-cmd /virtualmachines/11774vmguest-5/11774vmguest-5.vmx start' 2>&1 2010-09-17 10:30:13|11225|vcld:main(165)|lastcheckin time updated for management node 1: 2010-09-17 10:30:13 2010-09-17 10:30:13|31791|12038:11774|new|utils.pm:run_ssh_command(6262)|run_ssh_command output: |31791|12038:11774|new| VMControl error -16: Virtual machine requires user input to continue 2010-09-17 10:30:13|31791|12038:11774|new|utils.pm:run_ssh_command(6272)|SSH command executed on vclesx05, command: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'vmware-cmd /virtualmachines/11774vmguest-5/11774vmguest-5.vmx start' 2>&1 |31791|12038:11774|new| returning (16, "VMControl error -16: Virtual m...") 2010-09-17 10:30:13|31791|12038:11774|new|vmware.pm:load(847)|vmware-cmd start failed |31791|12038:11774|new| VMControl error -16: Virtual machine requires user input to continue |31791|12038:11774|new| WARNING |31791|12038:11774|new| 2010-09-17 10:30:13|31791|12038:
Image Creation Failing after vmware.pm changes
I may have spoken to soon about the base images. I was able to update the this image yesterday and it took the changes, but when I try to reload the image back up to create new images. I can't even get it to load. 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(672)|grep: /install/vmware_images/vmwarewinxp-CSUXPbuild105-v1/vmwarewinxp-CSUXPbuild105-v1.vmdk: No such file or directory 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(680)|adapter= ide drivetype hda 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(757)|wrote vmxarray to /tmp/11774vmguest-5/11774vmguest-5.vmx 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:insertloadlog(4710)|inserted computer=9, vmconfigcopy, transferring vmx file to vclesx05 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_scp_command(6403)|attempt 1/3: executing SCP command: /usr/bin/scp -B -i /etc/vcl/vcl.key -P 22 -p -r /tmp/11774vmguest-5 vclesx05:"/virtualmachines" 2>&1 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_scp_command(6453)|scp successful: attempt 1/3, exit status: 0, output: none 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx05: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'ls -1 /virtualmachines/11774vmguest-5;chmod 755 /virtualmachines/11774vmguest-5/11774vmguest-5.vmx' 2>&1 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6262)|run_ssh_command output: |31791|12038:11774|new| 11592vmguest-91 |31791|12038:11774|new| 11774vmguest-5.vmx 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6276)|SSH command executed on vclesx05, returning (0, "11592vmguest-91 11774vmguest-5...") 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(773)|successfully copied vmx file to vclesx05 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:insertloadlog(4710)|inserted computer=9, vmsetupconfig, setting up vmx file 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(794)|successfully removed /tmp/11774vmguest-5/11774vmguest-5.vmx 2010-09-17 10:29:59|31791|12038:11774|new|vmware.pm:load(795)|successfully removed tmp directory 2010-09-17 10:29:59|31791|12038:11774|new|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx05: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'vmware-cmd -s register /virtualmachines/11774vmguest-5/11774vmguest-5.vmx' 2>&1 2010-09-17 10:30:02|11225|vcld:main(165)|lastcheckin time updated for management node 1: 2010-09-17 10:30:02 2010-09-17 10:30:08|11225|vcld:main(165)|lastcheckin time updated for management node 1: 2010-09-17 10:30:08 2010-09-17 10:30:10|31791|12038:11774|new|utils.pm:run_ssh_command(6262)|run_ssh_command output: |31791|12038:11774|new| register(/virtualmachines/11774vmguest-5/11774vmguest-5.vmx) = 1 2010-09-17 10:30:10|31791|12038:11774|new|utils.pm:run_ssh_command(6276)|SSH command executed on vclesx05, returning (0, "register(/virtualmachines/1177...") 2010-09-17 10:30:10|31791|12038:11774|new|vmware.pm:load(809)|vm /virtualmachines/11774vmguest-5/11774vmguest-5.vmx registered 2010-09-17 10:30:10|31791|12038:11774|new|vmware.pm:load(831)|starting vm /virtualmachines/11774vmguest-5/11774vmguest-5.vmx - pass 1 2010-09-17 10:30:10|31791|12038:11774|new|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx05: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'vmware-cmd /virtualmachines/11774vmguest-5/11774vmguest-5.vmx start' 2>&1 2010-09-17 10:30:13|11225|vcld:main(165)|lastcheckin time updated for management node 1: 2010-09-17 10:30:13 2010-09-17 10:30:13|31791|12038:11774|new|utils.pm:run_ssh_command(6262)|run_ssh_command output: |31791|12038:11774|new| VMControl error -16: Virtual machine requires user input to continue 2010-09-17 10:30:13|31791|12038:11774|new|utils.pm:run_ssh_command(6272)|SSH command executed on vclesx05, command: |31791|12038:11774|new| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx05 'vmware-cmd /virtualmachines/11774vmguest-5/11774vmguest-5.vmx start' 2>&1 |31791|12038:11774|new| returning (16, "VMControl error -16: Virtual m...") 2010-09-17 10:30:13|31791|12038:11774|new|vmware.pm:load(847)|vmware-cmd start failed |31791|12038:11774|new| VMControl error -16: Virtual machine requires user input to continue |31791|12038:11774|new| WARNING |31791|12038:11774|new| 2010-09-17 10:30:13|31791|12038:11774|new|new.pm:reload_image(670)|vmwarewinxp-CSUXPbuild105-v1 failed to load on vmguest-5, returning |31791|12038:11774|new| ( 0) utils.pm, notify (line: 737) |31791|12038:11774|new| (-1) new.pm, reload_image (line: 670) |31791|12038:11774|new| (-2) new.pm, process (line: 266) |31791|12038:11774|new| (-3) vcld, make_new_child (line: 594) |31791|12038:11774|new| (-4) vcld, main (line: 341) 2010-09-17 10:30:13|31791|12038:11774|new|utils.pm:insertloadlog(4710)|inserted computer=9, loadimagefailed, vmwarewinxp-CSUXPbuild105-v