home       vmx       vmdk        about this site        forum        downloads  

 

VMDKs and Snapshots


tips and tricks for creation and repair of virtual disks ...
when it is too late
disktypes-table ...
often used procedures ...



extracting a vmx-file from a log

in case you got a good last vmware.log extracting the last used vmx-file is quite easy:
search through the log for DICT-entries - these entries first list the preferences settings and then it references the vmx-file that was used. The relevant section starts at keyword: CONFIGURATION - next section is USER DEFAULTS. All entries in between are part of the vmx-file. Just copy that section and delete the time-stamp in front of the line ...

The example shows a vmware.log - the embedded vmx-file is shown in black.

 

Procedure works on all platforms.

 

Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
Jun 11 16:52:10.875: vmx| DICT
tools.upgrade.policy = manual
lockout.enabled = FALSE
--- COMMAND LINE
gui.available = TRUE
--- CONFIGURATION

config.version = 8
virtualHW.version = 4
scsi0.present = TRUE
scsi0.virtualDev = lsilogic
memsize = 256
scsi0:0.present = TRUE
scsi0:0.fileName = openbsd41system.vmdk
ide1:0.present = TRUE
ide1:0.fileName = H:\home\moon\Desktop\cd41.iso
ide1:0.deviceType = cdrom-image
floppy0.autodetect = TRUE
ethernet0.present = TRUE
ethernet0.connectionType = nat
ethernet0.wakeOnPcktRcv = FALSE
usb.present = FALSE
sound.present = FALSE
sound.fileName = -1
sound.autodetect = TRUE
svga.autodetect = TRUE
mks.keyboardFilter = allow
displayName = openbsd41
guestOS = freebsd
nvram = FreeBSD.nvram
deploymentPlatform = windows
virtualHW.productCompatibility = hosted
tools.upgrade.policy = useGlobal
floppy0.startConnected = FALSE
floppy0.fileName = A:
ethernet0.virtualDev = e1000
ethernet1.virtualDev = e1000
ethernet1.present = TRUE
ethernet1.connectionType = custom
ethernet1.vnet = VMNet9
ethernet1.wakeOnPcktRcv = FALSE
isolation.tools.hgfs.disable = TRUE
ethernet0.addressType = generated
ethernet1.addressType = generated
uuid.location = 56 4d 14 e1 14 6c 51 a3-9d 82 14 8d ed d6 ba a1
uuid.bios = 56 4d 14 e1 14 6c 51 a3-9d 82 14 8d ed d6 ba a1
scsi0:0.redo =
ethernet0.generatedAddress = 00:0c:29:d6:ba:a1
ethernet0.generatedAddressOffset = 0
ethernet1.generatedAddress = 00:0c:29:d6:ba:ab
ethernet1.generatedAddressOffset = 10
extendedConfigFile = FreeBSD.vmxf
tools.remindInstall = TRUE
checkpoint.vmState = FreeBSD.vmss
--- USER DEFAULTS
--- HOST DEFAULTS


Please note:

 

you need to wrap the arguments in quotes - compare the black embedded text with the out-put vmx listed below.

after extraction and final polishing the file should look like this

config.version ="8"
virtualHW.version ="4"
scsi0.present ="TRUE"
scsi0.virtualDev ="lsilogic"
memsize ="256"
scsi0:0.present ="TRUE"
scsi0:0.fileName ="openbsd41system.vmdk"
ide1:0.present ="TRUE"
ide1:0.fileName ="H:\home\moon\Desktop\cd41.iso"
ide1:0.deviceType ="cdrom-image"
floppy0.autodetect ="TRUE"
ethernet0.present ="TRUE"
ethernet0.connectionType ="nat"
ethernet0.wakeOnPcktRcv ="FALSE"
usb.present ="FALSE"
sound.present ="FALSE"
sound.fileName ="-1"
sound.autodetect ="TRUE"
svga.autodetect ="TRUE"
mks.keyboardFilter ="allow"
displayName ="openbsd41"
guestOS ="freebsd"
nvram ="FreeBSD.nvram"
deploymentPlatform ="windows"
virtualHW.productCompatibility ="hosted"
tools.upgrade.policy ="useGlobal"
floppy0.startConnected ="FALSE"
floppy0.fileName ="A:"
ethernet0.virtualDev ="e1000"
ethernet1.virtualDev ="e1000"
ethernet1.present ="TRUE"
ethernet1.connectionType ="custom"
ethernet1.vnet ="VMNet9"
ethernet1.wakeOnPcktRcv ="FALSE"
isolation.tools.hgfs.disable ="TRUE"
ethernet0.addressType ="generated"
ethernet1.addressType ="generated"
uuid.location ="56 4d 14 e1 14 6c 51 a3-9d 82 14 8d ed d6 ba a1"
uuid.bios ="56 4d 14 e1 14 6c 51 a3-9d 82 14 8d ed d6 ba a1"
scsi0:0.redo =""
ethernet0.generatedAddress ="00:0c:29:d6:ba:a1"
ethernet0.generatedAddressOffset ="0"
ethernet1.generatedAddress ="00:0c:29:d6:ba:ab"
ethernet1.generatedAddressOffset ="10"
extendedConfigFile ="FreeBSD.vmxf"
tools.remindInstall ="TRUE"
checkpoint.vmState ="FreeBSD.vmss"



 top 

 


   home       vmx       vmdk        about this site        forum        downloads