Windows 7 image creation fails
Hi, My Windows 7 image keeps failing with the below error but I am not sure where to look to resolve this. I did select no sysprep during image creation and my image does not require any driver additional driver installs. Do drivers need to be in place on the management node even though I don't require them? 2011-03-25 09:47:54|24140|191:85|image|utils.pm:run_ssh_command(5540)|SSH command executed on window7, returning (0, [SC] ChangeServiceConfig SUCCE...) 2011-03-25 09:47:54|24140|191:85|image|Windows.pm:set_service_startup_mode(3401)|FDResPub service startup mode set to disabled 2011-03-25 09:47:54|24140|191:85|image|Windows.pm:get_driver_inf_paths(8726)|attempting to locate driver .inf paths matching any class 2011-03-25 09:47:54|24140|191:85|image|utils.pm:run_ssh_command(5442)|executing SSH command on window7: |24140|191:85|image| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x window7 '/usr/bin/grep.exe -Eirl --include=*.[iI][nN][fF] .* C:/Cygwin/home/root/VCL/Drivers' 21 2011-03-25 09:47:56|24140|191:85|image|Windows.pm:get_driver_inf_paths(8750)|found 0 driver .inf paths, grep output: |24140|191:85|image| WARNING |24140|191:85|image| 2011-03-25 09:47:56|24140|191:85|image|Windows.pm:set_device_path_key(8794)|failed to locate driver .inf paths |24140|191:85|image| ( 0) utils.pm, notify (line: 630) |24140|191:85|image| (-1) Windows.pm, set_device_path_key (line: 8794) |24140|191:85|image| (-2) Windows.pm, prepare_post_load (line: 3490) |24140|191:85|image| (-3) 7.pm, pre_capture (line: 177) |24140|191:85|image| (-4) VMware.pm, capture (line: 485) |24140|191:85|image| (-5) image.pm, process (line: 165) |24140|191:85|image| (-6) vcld, make_new_child (line: 595) |24140|191:85|image| WARNING |24140|191:85|image| 2011-03-25 09:47:56|24140|191:85|image|Windows.pm:prepare_post_load(3491)|failed to set the DevicePath registry key |24140|191:85|image| ( 0) utils.pm, notify (line: 630) |24140|191:85|image| (-1) Windows.pm, prepare_post_load (line: 3491) |24140|191:85|image| (-2) 7.pm, pre_capture (line: 177) |24140|191:85|image| (-3) VMware.pm, capture (line: 485) |24140|191:85|image| (-4) image.pm, process (line: 165) |24140|191:85|image| (-5) vcld, make_new_child (line: 595) |24140|191:85|image| (-6) vcld, main (line: 342) |24140|191:85|image| WARNING |24140|191:85|image| 2011-03-25 09:47:56|24140|191:85|image|7.pm:pre_capture(178)|capture preparation failed, failed to run prepare post_load |24140|191:85|image| ( 0) utils.pm, notify (line: 630) |24140|191:85|image| (-1) 7.pm, pre_capture (line: 178) |24140|191:85|image| (-2) VMware.pm, capture (line: 485) |24140|191:85|image| (-3) image.pm, process (line: 165) |24140|191:85|image| (-4) vcld, make_new_child (line: 595) |24140|191:85|image| (-5) vcld, main (line: 342) |24140|191:85|image| WARNING |24140|191:85|image| 2011-03-25 09:47:56|24140|191:85|image|VMware.pm:capture(486)|failed to complete OS module's pre_capture tasks |24140|191:85|image| ( 0) utils.pm, notify (line: 630) |24140|191:85|image| (-1) VMware.pm, capture (line: 486) |24140|191:85|image| (-2) image.pm, process (line: 165) |24140|191:85|image| (-3) vcld, make_new_child (line: 595) |24140|191:85|image| (-4) vcld, main (line: 342) |24140|191:85|image| WARNING |24140|191:85|image| 2011-03-25 09:47:56|24140|191:85|image|image.pm:process(169)|vmwarewin7-win7base49-v0 image failed to be captured by provisioning module |24140|191:85|image| ( 0) utils.pm, notify (line: 630) |24140|191:85|image| (-1) image.pm, process (line: 169) |24140|191:85|image| (-2) vcld, make_new_child (line: 595) |24140|191:85|image| (-3) vcld, main (line: 342) Martin Malinics Network Manager Coatesville Area School District 610-466-2441 malin...@coatesville.k12.pa.us
Re: [BULK] Re: unable to access vmx base directory path
Yes this easily gets confusing. The directory on the management node is set under your management node configuration under install path. This is actually stores a copy of the image. The datastore is a directory on the ESXi and from what I understand can be a local volume or a network resource (nfs). When you select localdisk the image is stored on both the datastore location and also copied to the management node location. When you select networkdisk the image is only stored in the datastore location. If this is not correct I hope someone will correct me but this is what I have seen and gather from the documentation. Martin Martin Malinics Network Manager Coatesville Area School District 610-466-2441 malin...@coatesville.k12.pa.us Mauricio César Ramírez Torresmrami...@cft.com.mx 02/12/11 12:08 PM Thanks Martin, I think I'm beginning to understand, I think my error is because the configuration I'm setting in the profile VMWare ESX - Local Storage I did consideringthat the storage is local to the ESX but actually refers to is for local ManagementNode ifI am correct then I create a local resource in my managementnode and share via NFSwith ESXi and the path that I set in the profile is for the ManagementNode. On 11/02/11 19:56, Marty Malinics wrote: I'm still pretty new to this myself but I just spent most of the week learning it and finally was able to capture an image. From what I read in the documentation depending on whether you set up your VM profile for localdisk or network disk your image will be stored on the management server or a shared network disk. If you have more than one Virtual host you may want to go the network shared route. The easiest way is to create a new storage repository on the VMsphere client. I used nfs and named mine VCL but I don't think it really matters as long as it matches the VM profile under the datastore setting. Once you create the storage on the vmsphere client you will see a new directory created under /vmfs/volumes/ on the ESXi server. The directory /install/vmware_images is the location on the management server where images are stored. Regarding the vmx file location, this is set under the VM path setting in the VM profile. I used the location /vmware on the ESXi server. When a new vmx is created it creates a new directory of the virtual machine with the vmx file located in it. I think that is the setting that you may be missing. Hope that helps. yours, Martin -- Atte. Mauricio César Ramírez Torres. Soporte Técnico Frigus Bohn. Tel. (442) 296 4566 - Antes de imprimir este correo electrónico, piensa bien si es imprescindible hacerlo. El Medio Ambiente es cosa de todos.
Re: Problems with basic configuration
Take a look at the file \managementnode\lib\VCL\Module\Provisioning\esx.readme under the install folder. It may shed some light. You need to set the datastore in your profile under Virtual Hosts. You can create an nfs storage in vmware and point to that folder. yours, Martin Martin Malinics Network Manager Coatesville Area School District 610-466-2441 malin...@coatesville.k12.pa.us Mauricio César Ramírez Torresmrami...@cft.com.mx 2/10/2011 7:27 PM In the Virtual Host section I select the profile VMWare ESX - local storage and in the path to the VM's wrote / vmfs/volumes/datastore1 / but when creating a new base image on the process of determining if exist *. vmdk an Error ocurrs |image|VMware.pm:does_image_exist(2963)|failed to determine if file exists in repository : /vmfs/volumes/datastore1/vmwarewinxp-WinXPintento914-v0/vmwarewinxp-WinXPintento914-v0.vmdk, output: find: /vmfs/volumes/datastore1: No such file or directory 2 questions here I come, why the name of the *. vmdk is altered, since the actual name does not include the -v0 adding at the end nor the beginning vmwarewinxp? at the same time indicates that datastore path is not valid? which is the correct way you use to set the datastore? I'm using VMWare ESXi v. 4.0 and VCL v 2.2 thanks in advance. -- Atte. Mauricio César Ramírez Torres. Soporte Técnico Frigus Bohn. Tel. (442) 296 4566 - Antes de imprimir este correo electrónico, piensa bien si es imprescindible hacerlo. El Medio Ambiente es cosa de todos.
Re: unable to access vmx base directory path
I'm still pretty new to this myself but I just spent most of the week learning it and finally was able to capture an image. From what I read in the documentation depending on whether you set up your VM profile for localdisk or network disk your image will be stored on the management server or a shared network disk. If you have more than one Virtual host you may want to go the network shared route. The easiest way is to create a new storage repository on the VMsphere client. I used nfs and named mine VCL but I don't think it really matters as long as it matches the VM profile under the datastore setting. Once you create the storage on the vmsphere client you will see a new directory created under /vmfs/volumes/ on the ESXi server. The directory /install/vmware_images is the location on the management server where images are stored. Regarding the vmx file location, this is set under the VM path setting in the VM profile. I used the location /vmware on the ESXi server. When a new vmx is created it creates a new directory of the virtual machine with the vmx file located in it. I think that is the setting that you may be missing. Hope that helps. yours, Martin Martin Malinics Network Manager Coatesville Area School District 610-466-2441 malin...@coatesville.k12.pa.us Mauricio César Ramírez Torresmrami...@cft.com.mx 02/11/11 6:48 PM I'm trying to capture an image, but I have no access to datastorage I guess it's the way I'm setting up, but I tried several ways and I can not do it, anyone can give me an example ? I've tried using ESXi /vmfs/volumes/datastore1/ datastore1/ /vmfs/UUID/datastore1/ then rename the datastore because I read the file esx.README and try to replicate the structure suggests, but I still have the same error [VCL]/golden/ VCL/golden /vmfs/volumes/VCL/golden 011-02-11 17:14:36|22767|9:9|new|vSphere_SDK.pm:is_restricted(1079)|access to the VM host via the vSphere SDK is NOT restricted due to the license 2011-02-11 17:14:36|22767|9:9|new|VMware.pm:initialize(229)|vSphere SDK object will be used to control the VM: milinux, and to control the OS of the VM host: vclesx 2011-02-11 17:14:38|22767|9:9|new|vSphere_SDK.pm:get_vmware_product_name(955)|VMware product being used on VM host vclesx: 'VMware ESXi 4.0.0 build-261974' 2011-02-11 17:14:42|22767|9:9|new|vSphere_SDK.pm:get_file_info(1937)|searching for matching file paths: base directory path: '[VCL]', search pattern: 'golden' 2011-02-11 17:14:42|22767|9:9|new|vSphere_SDK.pm:find_files(1705)|matching file count: 0 2011-02-11 17:14:42|22767|9:9|new|vSphere_SDK.pm:file_exists(1577)|file does not exist: [VCL] golden |22767|9:9|new| WARNING |22767|9:9|new| 2011-02-11 17:14:42|22767|9:9|new|VMware.pm:initialize(285)|unable to access vmx base directory path: [VCL]/golden |22767|9:9|new| ( 0) utils.pm, notify (line: 630) |22767|9:9|new| (-1) VMware.pm, initialize (line: 285) |22767|9:9|new| (-2) Module.pm, new (line: 159) |22767|9:9|new| (-3) State.pm, initialize (line: 127) |22767|9:9|new| (-4) Module.pm, new (line: 159) |22767|9:9|new| (-5) vcld, make_new_child (line: 591) |22767|9:9|new| (-6) vcld, main (line: 342) |22767|9:9|new| WARNING |22767|9:9|new| 2011-02-11 17:14:42|22767|9:9|new|State.pm:initialize(132)|provisioning object could not be created, returning 0 |22767|9:9|new| ( 0) utils.pm, notify (line: 630) |22767|9:9|new| (-1) State.pm, initialize (line: 132) |22767|9:9|new| (-2) Module.pm, new (line: 159) |22767|9:9|new| (-3) vcld, make_new_child (line: 591) |22767|9:9|new| (-4) vcld, main (line: 342) 2011-02-11 17:14:42|22767|9:9|new|State.pm:DESTROY(902)|destructor called, ref($self)=VCL::new 2011-02-11 17:14:42|22767|9:9|new|utils.pm:delete_computerloadlog_reservation(6829)|removing computerloadlog entries matching loadstate = begin 2011-02-11 17:14:42|22767|9:9|new|utils.pm:delete_computerloadlog_reservation(6876)|deleted rows from computerloadlog for reservation id=9 2011-02-11 17:14:42|22767|9:9|new|State.pm:DESTROY(909)|rem2011-02-11 17:14:42|22767|9:9|new|State.pm:DESTROY(921)|number of database handles state process created: 1 2011-02-11 17:14:42|22767|9:9|new|State.pm:DESTROY(930)|process has a database handle stored in $ENV{dbh}, attempting disconnect 2011-02-11 17:14:42|22767|9:9|new|State.pm:DESTROY(932)|$ENV{dbh}: database disconnect successful 2011-02-11 17:14:42|22767|9:9|new|State.pm:DESTROY(946)|VCL::new process 22767 exiting -- Atte. Mauricio César Ramírez Torres. Soporte Técnico Frigus Bohn. Tel. (442) 296 4566 - Antes de imprimir este correo electrónico, piensa bien si es imprescindible hacerlo. El Medio Ambiente es cosa de todos.
RE: Stuck and need a little help.
Thanks. After I found the esx.readme file in one of the management node folders I was finally able to get an image going. It's been quite an adventure. yours, Martin Malinics Network Systems Manager Coatesville Area School District malin...@coatesville.k12.pa.us Junaid Ali alisy...@iit.edu 2/10/2011 10:25 AM Marty, You would need to install the VMWare vSphere SDK on the management node. Junaid. From: Marty Malinics [mailto:malin...@coatesville.k12.pa.us] Sent: Thursday, February 10, 2011 7:23 AM To: vcl-user@incubator.apache.org Subject: Stuck and need a little help. Ok, I seemed to have solved the problems below. For the first one I did not have the management node assigned to a group. For the second issue I saw that my virtual machine was not set up for vmware. It now tries to create the image but I think I must be missing a few perl modules as I now get the following: Can't locate VMware/VIRuntime.pm in @INC (@INC contains: /usr/local/vcl/bin/../../../.. /usr/local/vcl/bin/../.. /usr/local/vcl/bin/.. /usr/local/vcl/bin/../lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at / usr/local/vcl/bin/../lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm line 64. I will fix this and try again. Making some progress. Hello, I have VCL 2.2 setup on two Centos boxes (Web and database, and management) using ESXi 4.1. The management node can communicate with VMware host and guest using SSH. I am not sure the Web node is communicating with management though. I get the following message when trying to change the guest state: Change State of Computers 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: Casdvm1 Is there a way to confirm communication to the management node? Also when trying to create an image I get the following in the logs: |13535|3:3|image| CRITICAL |13535|3:3|image| 2011-02-09 07:10:34|13535|3:3|image|vcld:die_handler(663)|Can't locate object method does_image_exist via package VCL::Module::Provisioning::Lab at /usr/local/vcl/bin/../lib/VCL/image.pm line 138. |13535|3:3|image| ( 0) utils.pm, notify (line: 630) |13535|3:3|image| (-1) vcld, die_handler (line: 663) |13535|3:3|image| (-2) image.pm, process (line: 138) |13535|3:3|image| (-3) vcld, make_new_child (line: 595) |13535|3:3|image| (-4) vcld, main (line: 342) 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(902)|destructor called, ref($self)=VCL::image 2011-02-09 07:10:34|13535|3:3|image|utils.pm:delete_computerloadlog_reservation(6829)|removing computerloadlog entries matching loadstate = begin 2011-02-09 07:10:34|13535|3:3|image|utils.pm:delete_computerloadlog_reservation(6876)|deleted rows from computerloadlog for reservation id=3 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(909)|removed computerloadlog rows with loadstate=begin for reservation 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(921)|number of database handles state process created: 1 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(930)|process has a database handle stored in $ENV{dbh}, attempting disconnect 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(932)|$ENV{dbh}: database disconnect successful 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(946)|VCL::image process 13535 exiting 2011-02-09 07:10:34|10436|vcld:REAPER(745)|VCL process exited for reservation 3, PID: 13535, signal: CHLD 2011-02-09 07:10:34|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:34 2011-02-09 07:10:39|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:39 2011-02-09 07:10:45|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:44 2011-02-09 07:10:50|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:50 2011-02-09 07:10:55|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:55 2011-02-09 07:11:00|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:11:00 There may be something
Stuck and need a little help.
Hello, I have VCL 2.2 setup on two Centos boxes (Web and database, and management) using ESXi 4.1. The management node can communicate with VMware host and guest using SSH. I am not sure the Web node is communicating with management though. I get the following message when trying to change the guest state: Change State of ComputersThe 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: Casdvm1 Is there a way to confirm communication to the management node? Also when trying to create an image I get the following in the logs: |13535|3:3|image| CRITICAL |13535|3:3|image| 2011-02-09 07:10:34|13535|3:3|image|vcld:die_handler(663)|Can't locate object method does_image_exist via package VCL::Module::Provisioning::Lab at /usr/local/vcl/bin/../lib/VCL/image.pm line 138. |13535|3:3|image| ( 0) utils.pm, notify (line: 630) |13535|3:3|image| (-1) vcld, die_handler (line: 663) |13535|3:3|image| (-2) image.pm, process (line: 138) |13535|3:3|image| (-3) vcld, make_new_child (line: 595) |13535|3:3|image| (-4) vcld, main (line: 342) 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(902)|destructor called, ref($self)=VCL::image 2011-02-09 07:10:34|13535|3:3|image|utils.pm:delete_computerloadlog_reservation(6829)|removing computerloadlog entries matching loadstate = begin 2011-02-09 07:10:34|13535|3:3|image|utils.pm:delete_computerloadlog_reservation(6876)|deleted rows from computerloadlog for reservation id=3 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(909)|removed computerloadlog rows with loadstate=begin for reservation 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(921)|number of database handles state process created: 1 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(930)|process has a database handle stored in $ENV{dbh}, attempting disconnect 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(932)|$ENV{dbh}: database disconnect successful 2011-02-09 07:10:34|13535|3:3|image|State.pm:DESTROY(946)|VCL::image process 13535 exiting 2011-02-09 07:10:34|10436|vcld:REAPER(745)|VCL process exited for reservation 3, PID: 13535, signal: CHLD 2011-02-09 07:10:34|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:34 2011-02-09 07:10:39|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:39 2011-02-09 07:10:45|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:44 2011-02-09 07:10:50|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:50 2011-02-09 07:10:55|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:10:55 2011-02-09 07:11:00|10436|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-09 07:11:00 There may be something I am missing as the documentation is sketchy. I am not sure if the image needs to be created via the web interface before capturing it or not. Thanks for any help or pointers you can provide. Martin Malinics Network Manager Coatesville Area School District 610-466-2441 malin...@coatesville.k12.pa.us