You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by David DeMizio <dd...@ncf.edu> on 2014/06/13 16:35:47 UTC

can't capture base image

Hello,

I have always had this problem and I 'm hoping some one can shed some light
on this. When I try to capture a base image it can't find the reference
file that it needs and basically windows 7 can't reload. part of the log is
below

2014-06-13
10:25:50|1087|15:15|image|vSphere_SDK.pm:copy_virtual_disk(930)|copied
virtual disk on VM host nc-vcenter.network.ncf.edu: '[VDI-VMFS02]
SSRL_VDI/SSRL_VDI.vmdk' --> '[vcl_master]
vmwarewin7-SocialSciencesLab33-v0/vmwarewin7-SocialSciencesLab33-v0.vmdk'
2014-06-13 10:25:50|1087|15:15|image|VMware.pm:copy_vmdk(5825)|copied vmdk
using API's copy_virtual_disk subroutine
2014-06-13 10:25:50|1087|15:15|image|utils.pm:update_image_name(6308)|updated
image.name and imagerevision.imagename in database to
'vmwarewin7-SocialScience33-v0' for image ID: 33, imagerevision ID: 52
2014-06-13 10:25:50|1087|15:15|image|DataStructure.pm:_automethod(847)|data
structure updated, hash path:
$self->request_data->{reservation}{15}{imagerevision}{imagename}, data
identifier: image_name, data:
|1087|15:15|image| : "vmwarewin7-SocialScience33-v0"
2014-06-13 10:25:50|1087|15:15|image|VMware.pm:copy_vmdk(5835)|updated
image name to vmwarewin7-SocialScience33-v0
2014-06-13
10:25:50|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2520)|searching for
matching file paths: base directory path: '[VDI-VMFS02] SSRL_VDI', search
pattern: 'vmwarewin7-SocialSciencesLab33-v0.vmx.reference'
2014-06-13
10:25:52|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2575)|retrieved
info for 0 matching files:
|1087|15:15|image| : {}
2014-06-13
10:25:52|1087|15:15|image|vSphere_SDK.pm:find_files(2120)|matching file
count: 0
2014-06-13 10:25:52|1087|15:15|image|vSphere_SDK.pm:file_exists(1992)|file
does not exist: [VDI-VMFS02]
SSRL_VDI/vmwarewin7-SocialSciencesLab33-v0.vmx.reference
2014-06-13 10:25:52|1087|15:15|image|VMware.pm:copy_vmdk(6089)|reference
vmx file not copied to vmdk directory because it does not exist:
'/vmfs/volumes/VDI-VMFS02/SSRL_VDI/vmwarewin7-SocialSciencesLab33-v0.vmx.reference'
2014-06-13
10:25:52|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2520)|searching for
matching file paths: base directory path: '[vcl_master]
vmwarewin7-SocialSciencesLab33-v0', search pattern:
'vmwarewin7-SocialSciencesLab33-v0*.vmdk'
2014-06-13 10:25:54|975|vcld:main(167)|lastcheckin time updated for
management node 1: 2014-06-13 10:25:54
2014-06-13
10:25:54|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2531)|base
directory does not exist: '[vcl_master] vmwarewin7-SocialSciencesLab33-v0'

the end result is I have two directories in my vcl_master which is where I
keep my images , one directory has the vmdk file and the other has the
.references file. any suggestions? I've had this issue since day one and
it's hit or miss or I believe I end up manually moving the vmdk and
reference file in the same directory that vcl is expecting

Re: can't capture base image

Posted by David DeMizio <dd...@ncf.edu>.
If I open the vmx(reference file) it still has values from the VM that I
was capturing from. SSRL_VDI was the machine I was capturing. In VCL DB I
created a virtual machine called vcl-n-001. I set the private mac address
of SSRL-VDI to that of vcl-n-001 but something is just not working right.
It's creating several directories as I described in my previous post and
the vmx file has the wrong values. So basically it's using the vmx file
which is pointing to the SSRL-VDI vm which was deleted during the capture
process

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "10"
svga.present = "TRUE"
vmci0.present = "TRUE"
displayName = "SSRL_VDI"
extendedConfigFile = "SSRL_VDI.vmxf"
floppy0.present = "FALSE"
numvcpus = "2"
memSize = "4096"
sched.cpu.units = "mhz"
tools.upgrade.policy = "manual"
scsi0.virtualDev = "lsisas1068"
scsi0.present = "TRUE"
usb.present = "TRUE"
vmci.filter.enable = "TRUE"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "SSRL_VDI.vmdk"
scsi0:0.writeThrough = "TRUE"
sched.scsi0:0.shares = "normal"
sched.scsi0:0.throughputCap = "off"
scsi0:0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.networkName = "VCL Public"
ethernet0.addressType = "vpx"
ethernet0.generatedAddress = "00:50:56:a7:08:7b"
ethernet0.present = "TRUE"
ethernet1.virtualDev = "e1000"
ethernet1.networkName = "VCL Private"
ethernet1.addressType = "static"
ethernet1.present = "TRUE"
guestOS = "windows7"
toolScripts.afterPowerOn = "FALSE"
toolScripts.afterResume = "FALSE"
toolScripts.beforeSuspend = "FALSE"
toolScripts.beforePowerOff = "FALSE"
tools.syncTime = "FALSE"




On Fri, Jun 13, 2014 at 10:35 AM, David DeMizio <dd...@ncf.edu> wrote:

> Hello,
>
> I have always had this problem and I 'm hoping some one can shed some
> light on this. When I try to capture a base image it can't find the
> reference file that it needs and basically windows 7 can't reload. part of
> the log is below
>
> 2014-06-13
> 10:25:50|1087|15:15|image|vSphere_SDK.pm:copy_virtual_disk(930)|copied
> virtual disk on VM host nc-vcenter.network.ncf.edu: '[VDI-VMFS02]
> SSRL_VDI/SSRL_VDI.vmdk' --> '[vcl_master]
> vmwarewin7-SocialSciencesLab33-v0/vmwarewin7-SocialSciencesLab33-v0.vmdk'
> 2014-06-13 10:25:50|1087|15:15|image|VMware.pm:copy_vmdk(5825)|copied vmdk
> using API's copy_virtual_disk subroutine
> 2014-06-13 10:25:50|1087|15:15|image|utils.pm:update_image_name(6308)|updated
> image.name and imagerevision.imagename in database to
> 'vmwarewin7-SocialScience33-v0' for image ID: 33, imagerevision ID: 52
> 2014-06-13
> 10:25:50|1087|15:15|image|DataStructure.pm:_automethod(847)|data structure
> updated, hash path:
> $self->request_data->{reservation}{15}{imagerevision}{imagename}, data
> identifier: image_name, data:
> |1087|15:15|image| : "vmwarewin7-SocialScience33-v0"
> 2014-06-13 10:25:50|1087|15:15|image|VMware.pm:copy_vmdk(5835)|updated
> image name to vmwarewin7-SocialScience33-v0
> 2014-06-13
> 10:25:50|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2520)|searching for
> matching file paths: base directory path: '[VDI-VMFS02] SSRL_VDI', search
> pattern: 'vmwarewin7-SocialSciencesLab33-v0.vmx.reference'
> 2014-06-13
> 10:25:52|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2575)|retrieved
> info for 0 matching files:
> |1087|15:15|image| : {}
> 2014-06-13
> 10:25:52|1087|15:15|image|vSphere_SDK.pm:find_files(2120)|matching file
> count: 0
> 2014-06-13 10:25:52|1087|15:15|image|vSphere_SDK.pm:file_exists(1992)|file
> does not exist: [VDI-VMFS02]
> SSRL_VDI/vmwarewin7-SocialSciencesLab33-v0.vmx.reference
> 2014-06-13 10:25:52|1087|15:15|image|VMware.pm:copy_vmdk(6089)|reference
> vmx file not copied to vmdk directory because it does not exist:
> '/vmfs/volumes/VDI-VMFS02/SSRL_VDI/vmwarewin7-SocialSciencesLab33-v0.vmx.reference'
> 2014-06-13
> 10:25:52|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2520)|searching for
> matching file paths: base directory path: '[vcl_master]
> vmwarewin7-SocialSciencesLab33-v0', search pattern:
> 'vmwarewin7-SocialSciencesLab33-v0*.vmdk'
> 2014-06-13 10:25:54|975|vcld:main(167)|lastcheckin time updated for
> management node 1: 2014-06-13 10:25:54
> 2014-06-13
> 10:25:54|1087|15:15|image|vSphere_SDK.pm:_get_file_info(2531)|base
> directory does not exist: '[vcl_master] vmwarewin7-SocialSciencesLab33-v0'
>
> the end result is I have two directories in my vcl_master which is where I
> keep my images , one directory has the vmdk file and the other has the
> .references file. any suggestions? I've had this issue since day one and
> it's hit or miss or I believe I end up manually moving the vmdk and
> reference file in the same directory that vcl is expecting
>
>