Hello,
I responded earlier to your "dynamic vs static ip" message before noticing this message. I think I see the problem. You seem to be using the same machine as the management node and VM host but the VM profile datastore path and repository path are the same. Configure the VM profile to not use the image repository:

-Click "Virtual Hosts"
-Select localvmhost from the list and click "Configure Host"
-Note the value next to "VM Profile"
-Click "VM Host Profiles"
-Select the profile being used by localvmhost and click "Configure Profile"
-Clear the value of "Data Store Path"
-Set "VM Disk" to networkdisk

Your captured image should probably work in its current state even though the capture failed. The image capture only failed because it was unable to make a duplicate copy of the vmdk directory in the image repository. This feature isn't necessary if you're using a single box or all network storage.

The only step that would have occurred if the image capture was successful would have been to set image.deleted and imagerevision.deleted to 0 in the database. You can easily set this if you have phpMyAdmin installed or run 'mysql' from the command line and execute:

UPDATE image SET deleted = '0' WHERE name = 'vmwarewin7-vm4win720-v0';
UPDATE imagerevision SET deleted = '0' WHERE imagename = 'vmwarewin7-vm4win720-v0';

Make sure the image has been put into an image group. You should see the image in the "New Reservation" list. Try to make a reservation.

Hope this helps,
Andy


On 3/28/2011 4:59 PM, Tyler Hardesty wrote:
So I've been trying for about 3 weeks to get an image captured... I kept
trying with a windows xp vm and finally decided to try win 7 to see if
that made a difference, it didn't. I get this same error when trying to
capture both win xp and win7 and can't figure it out. Any help would be
fantastic!!

2011-03-28 14:39:43|11006|16:16|image|Linux.pm:file_exists(1368)|file or
directory does not exist on localvmhost: '/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk'
2011-03-28
14:39:43|11006|16:16|image|VMware.pm:rename_vmdk(4995)|attempting to
rename vmdk: '/var/lib/vmware/Virtual Machines/vm4/vm4.vmdk' -->
'/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk'
2011-03-28
14:39:43|11006|16:16|image|Linux.pm:create_directory(1498)|directory
created on localvmhost: '/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0'
2011-03-28
14:39:43|11006|16:16|image|VMware.pm:rename_vmdk(5018)|'move_virtual_disk'
subroutine has not been implemented by the API:
VCL::Module::Provisioning::VMware::VIM_SSH
2011-03-28
14:39:43|11006|16:16|image|VMware.pm:rename_vmdk(5025)|attempting to
rename vmdk file using vmware-vdiskmanager: /var/lib/vmware/Virtual
Machines/vm4/vm4.vmdk --> /var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk
2011-03-28
14:39:44|11006|16:16|image|VMware.pm:rename_vmdk(5032)|renamed vmdk file
by executing 'vmware-vdiskmanager' command on VM host:
|11006|16:16|image| command: vmware-vdiskmanager -n
"/var/lib/vmware/Virtual Machines/vm4/vm4.vmdk" "/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk"
|11006|16:16|image| output: Renaming completed successfully.
2011-03-28
14:39:44|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual
Machines' exists on localvmhost, files: 0, directories: 1, links: 0
2011-03-28
14:39:44|11006|16:16|image|VMware.pm:is_repository_mounted_on_vmhost(5454)|image
repository is mounted on VM host localvmhost: /var/lib/vmware/Virtual
Machines
2011-03-28 14:39:44|11006|16:16|image|VMware.pm:capture(593)|vmdk will
be copied directly from VM host localvmhost to the image repository in
the 2gbsparse disk format
2011-03-28
14:39:45|11006|16:16|image|VMware.pm:get_vmhost_product_name(5374)|VMware 
product
being used on VM host localvmhost: 'VMware Server 2.0.2 build-203138'
2011-03-28
14:39:45|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' exists on
localvmhost, files: 1, directories: 0, links: 0
2011-03-28 14:39:46|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-03-28 14:39:46
2011-03-28
14:39:46|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' exists on
localvmhost, files: 1, directories: 0, links: 0
|11006|16:16|image| ---- WARNING ----
|11006|16:16|image| 2011-03-28
14:39:46|11006|16:16|image|VMware.pm:copy_vmdk(4750)|destination vmdk
file path already exists on VM host localvmhost: /var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk
|11006|16:16|image| ( 0) VMware.pm, copy_vmdk (line: 4750)
|11006|16:16|image| (-1) VMware.pm, capture (line: 597)
|11006|16:16|image| (-2) image.pm <http://image.pm>, process (line: 165)
|11006|16:16|image| (-3) vcld, make_new_child (line: 568)
|11006|16:16|image| (-4) vcld, main (line: 346)
|11006|16:16|image| ---- WARNING ----
|11006|16:16|image| 2011-03-28
14:39:46|11006|16:16|image|VMware.pm:capture(601)|failed to copy the
vmdk files after the VM was powered off: '/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' -->
'/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk'
|11006|16:16|image| ( 0) VMware.pm, capture (line: 601)
|11006|16:16|image| (-1) image.pm <http://image.pm>, process (line: 165)
|11006|16:16|image| (-2) vcld, make_new_child (line: 568)
|11006|16:16|image| (-3) vcld, main (line: 346)
2011-03-28
14:39:46|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' exists on
localvmhost, files: 1, directories: 0, links: 0
2011-03-28 14:39:46|11006|16:16|image|Linux.pm:file_exists(1368)|file or
directory does not exist on localvmhost: '/var/lib/vmware/Virtual
Machines/vm4/vm4.vmdk'
2011-03-28
14:39:46|11006|16:16|image|VMware.pm:rename_vmdk(4995)|attempting to
rename vmdk: '/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' -->
'/var/lib/vmware/Virtual Machines/vm4/vm4.vmdk'
2011-03-28
14:39:46|11006|16:16|image|Linux.pm:create_directory(1502)|directory
already exists on localvmhost: '/var/lib/vmware/Virtual Machines/vm4'
2011-03-28
14:39:46|11006|16:16|image|VMware.pm:rename_vmdk(5018)|'move_virtual_disk'
subroutine has not been implemented by the API:
VCL::Module::Provisioning::VMware::VIM_SSH
2011-03-28
14:39:46|11006|16:16|image|VMware.pm:rename_vmdk(5025)|attempting to
rename vmdk file using vmware-vdiskmanager: /var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk -->
/var/lib/vmware/Virtual Machines/vm4/vm4.vmdk
2011-03-28
14:39:47|11006|16:16|image|VMware.pm:rename_vmdk(5032)|renamed vmdk file
by executing 'vmware-vdiskmanager' command on VM host:
|11006|16:16|image| command: vmware-vdiskmanager -n
"/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk"
"/var/lib/vmware/Virtual Machines/vm4/vm4.vmdk"
|11006|16:16|image| output: Renaming completed successfully.
2011-03-28 14:39:47|11006|16:16|image|VMware.pm:capture(690)|attempting
to delete directory where renamed vmdk resided before reverting the name
back to the original: /var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0
2011-03-28 14:39:47|11006|16:16|image|Linux.pm:delete_file(1437)|deleted
'/var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0' on localvmhost
2011-03-28 14:39:47|11006|16:16|image|Linux.pm:file_exists(1368)|file or
directory does not exist on localvmhost: '/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0'
2011-03-28
14:39:47|11006|16:16|image|Linux.pm:delete_file(1451)|confirmed file
does not exist on localvmhost: '/var/lib/vmware/Virtual
Machines/vmwarewin7-vm4win720-v0'
2011-03-28 14:39:47|11006|16:16|image|VMware.pm:capture(696)|attempting
to power the VM back on so that it can be captured again
2011-03-28
14:39:47|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call
count: 10 (vmsvc/getallvms)
2011-03-28
14:39:49|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(208)|executed command
on VM host localvmhost: vmware-vim-cmd vmsvc/getallvms
2011-03-28
14:39:49|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call
count: 11 (vmsvc/power.on 80)
2011-03-28
14:39:50|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(208)|executed command
on VM host localvmhost: vmware-vim-cmd vmsvc/power.on 80
2011-03-28
14:39:51|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call
count: 12 (vmsvc/getallvms)
2011-03-28 14:39:51|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-03-28 14:39:51
2011-03-28
14:39:53|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(208)|executed command
on VM host localvmhost: vmware-vim-cmd vmsvc/getallvms
2011-03-28
14:39:53|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call
count: 13 (vmsvc/get.tasklist 80)
2011-03-28
14:39:55|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(208)|executed command
on VM host localvmhost: vmware-vim-cmd vmsvc/get.tasklist 80
2011-03-28
14:39:55|11006|16:16|image|VIM_SSH.pm:_wait_for_task(748)|checking
status of task: haTask-80-vim.VirtualMachine.powerOn-57958863
2011-03-28
14:39:55|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call
count: 14 (vimsvc/task_info haTask-80-vim.VirtualMachine.powerOn-57958863)
2011-03-28 14:39:56|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-03-28 14:39:56
2011-03-28
14:39:57|11006|16:16|image|VIM_SSH.pm:_run_vim_cmd(208)|executed command
on VM host localvmhost: vmware-vim-cmd vimsvc/task_info
haTask-80-vim.VirtualMachine.powerOn-57958863
2011-03-28
14:39:57|11006|16:16|image|VIM_SSH.pm:_wait_for_task(771)|task completed
successfully: haTask-80-vim.VirtualMachine.powerOn-57958863
2011-03-28
14:39:57|11006|16:16|image|VIM_SSH.pm:vm_power_on(970)|powered on VM:
/var/lib/vmware/Virtual Machines/vm4/vm4.vmx
|11006|16:16|image| ---- WARNING ----
|11006|16:16|image| 2011-03-28
14:39:57|11006|16:16|image|image.pm:process(169)|vmwarewin7-vm4win720-v0
image failed to be captured by provisioning module
|11006|16:16|image| ( 0) image.pm <http://image.pm>, process (line: 169)
|11006|16:16|image| (-1) vcld, make_new_child (line: 568)
|11006|16:16|image| (-2) vcld, main (line: 346)
2011-03-28
14:39:57|11006|16:16|image|DataStructure.pm:get_computer_private_ip_address(1558)|returning
private IP address previously retrieved from /etc/hosts: 192.168.128.3
2011-03-28
14:39:57|11006|16:16|image|utils.pm:is_inblockrequest(6147)|zero rows
were returned from database select
2011-03-28
14:39:57|11006|16:16|image|DataStructure.pm:get_image_affiliation_name(2029)|image
owner id: 1
2011-03-28 14:39:57|11006|16:16|image|utils.pm:getnewdbh(2709)|database
requested (information_schema) does not match handle stored in $ENV{dbh}
(vcl:127.0.0.1)
2011-03-28 14:39:57|11006|16:16|image|utils.pm:getnewdbh(2760)|database
handle stored in $ENV{dbh}
2011-03-28
14:39:57|11006|16:16|image|DataStructure.pm:retrieve_user_data(1353)|attempting
to retrieve and store data for user: user.id <http://user.id> = '1'
2011-03-28 14:39:57|11006|16:16|image|utils.pm:getnewdbh(2709)|database
requested (vcl) does not match handle stored in $ENV{dbh}
(information_schema:127.0.0.1)
2011-03-28 14:39:57|11006|16:16|image|utils.pm:getnewdbh(2760)|database
handle stored in $ENV{dbh}
2011-03-28
14:39:57|11006|16:16|image|DataStructure.pm:retrieve_user_data(1416)|data has
been retrieved for user: admin (id: 1)
2011-03-28 14:39:58|11006|16:16|image|utils.pm:mail(1268)|SUCCESS --
Sending mail To: tharde...@tylerhardesty.info
<mailto:tharde...@tylerhardesty.info>, PROBLEM -- 16:16|image|image.pm
<http://image.pm>|vm4>localvmhost|vmwarewin7-vm4win720-v0|admin
|11006|16:16|image| ---- CRITICAL ----
|11006|16:16|image| 2011-03-28
14:39:57|11006|16:16|image|image.pm:reservation_failed(393)|vmwarewin7-vm4win720-v0
image creation failed
|11006|16:16|image| ( 0) image.pm <http://image.pm>, reservation_failed
(line: 393)
|11006|16:16|image| (-1) image.pm <http://image.pm>, process (line: 170)
|11006|16:16|image| (-2) vcld, make_new_child (line: 568)
|11006|16:16|image| (-3) vcld, main (line: 346)
2011-03-28 14:39:58|11006|16:16|image|utils.pm:mail(1268)|SUCCESS --
Sending mail To: root@localhost, VCL -- NOTICE DELAY Image Creation vm4 win7
2011-03-28 14:39:58|11006|16:16|image|utils.pm:mail(1268)|SUCCESS --
Sending mail To: tharde...@tylerhardesty.info
<mailto:tharde...@tylerhardesty.info>, VCL -- NOTICE FAILED Image
Creation vm4 win7
2011-03-28
14:39:58|11006|16:16|image|utils.pm:update_request_state(1991)|request
16 state updated to: maintenance, laststate to: image
2011-03-28
14:39:58|11006|16:16|image|image.pm:reservation_failed(445)|request
state set to maintenance, laststate to image
2011-03-28
14:39:58|11006|16:16|image|utils.pm:update_computer_state(2033)|computer
5 state updated to: maintenance
2011-03-28
14:39:58|11006|16:16|image|image.pm:reservation_failed(453)|vm4 state
set to maintenance
2011-03-28
14:39:58|11006|16:16|image|image.pm:reservation_failed(460)|exiting
2011-03-28 14:39:58|11006|16:16|image|State.pm:DESTROY(839)|VCL::image
destructor called, address: 9e387d0
2011-03-28
14:39:58|11006|16:16|image|utils.pm:delete_computerloadlog_reservation(6726)|removing
computerloadlog entries matching loadstate = begin
2011-03-28
14:39:58|11006|16:16|image|utils.pm:delete_computerloadlog_reservation(6773)|deleted
rows from computerloadlog for reservation id=16
2011-03-28 14:39:58|11006|16:16|image|State.pm:DESTROY(858)|number of
database handles state process created: 3
2011-03-28 14:39:58|11006|16:16|image|State.pm:DESTROY(886)|VCL::image
process duration: 777 seconds
2011-03-28 14:39:58|11006|16:16|image|VIM_SSH.pm:DESTROY(1685)|vim-cmd
call count: 14
2011-03-28 14:39:58|30717|vcld:REAPER(718)|VCL process exited for
reservation 16, PID: 11006, signal: CHLD
2011-03-28 14:39:58|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-03-28 14:39:58

Reply via email to