vmware设置
一.恢复VMX文件,
1.
打开文件夹中最后修改的vmware.log,(可使用Notepad或Excel打开
2.
拷贝从Configuration以下,USER DEFAULT以上的文本内容到一个新的“记事本”文件
如:
Jul 04 20:38:24.887: vmx| DICT --- CONFIGURATION |
Jul 04 20:38:24.887: vmx| DICT config.version = 8 |
Jul 04 20:38:24.887: vmx| DICT virtualHW.version = 4 |
Jul 04 20:38:24.887: vmx| DICT floppy0.present = TRUE |
Jul 04 20:38:24.887: vmx| DICT nvram = VNTco012.nvram |
Jul 04 20:38:24.887: vmx| DICT deploymentPlatform = windows |
Jul 04 20:38:24.887: vmx| DICT virtualHW.productCompatibility = hosted |
Jul 04 20:38:24.887: vmx| DICT tools.upgrade.policy = manual |
Jul 04 20:38:24.887: vmx| DICT powerType.powerOff = default |
Jul 04 20:38:24.887: vmx| DICT powerType.powerOn = default |
Jul 04 20:38:24.887: vmx| DICT powerType.suspend = default |
Jul 04 20:38:24.887: vmx| DICT powerType.reset = default |
Jul 04 20:38:24.887: vmx| DICT displayName = VNTco012 |
Jul 04 20:38:24.887: vmx| DICT extendedConfigFile = VNTco012.vmxf |
Jul 04 20:38:24.887: vmx| DICT scsi0.present = TRUE |
Jul 04 20:38:24.887: vmx| DICT scsi0.sharedBus = none |
Jul 04 20:38:24.887: vmx| DICT scsi0.virtualDev = lsilogic |
Jul 04 20:38:24.887: vmx| DICT memsize = 2048 |
Jul 04 20:38:24.887: vmx| DICT scsi0:0.present = TRUE |
Jul 04 20:38:24.887: vmx| DICT scsi0:0.fileName = VNTco012.vmdk |
Jul 04 20:38:24.887: vmx| DICT scsi0:0.deviceType = scsi-hardDisk |
Jul 04 20:38:24.887: vmx| DICT sched.scsi0:0.shares = normal |
Jul 04 20:38:24.887: vmx| DICT ide0:0.present = TRUE |
Jul 04 20:38:24.887: vmx| DICT ide0:0.clientDevice = TRUE |
Jul 04 20:38:24.887: vmx| DICT ide0:0.fileName = /usr/lib/vmware/isoimages/windows.iso |
Jul 04 20:38:24.887: vmx| DICT ide0:0.deviceType = atapi-cdrom |
Jul 04 20:38:24.887: vmx| DICT ide0:0.startConnected = FALSE |
Jul 04 20:38:24.887: vmx| DICT floppy0.startConnected = FALSE |
Jul 04 20:38:24.887: vmx| DICT floppy0.fileName = /dev/fd0 |
Jul 04 20:38:24.887: vmx| DICT floppy0.clientDevice = TRUE |
Jul 04 20:38:24.887: vmx| DICT ethernet0.present = TRUE |
Jul 04 20:38:24.887: vmx| DICT ethernet0.networkName = VM Network 1007 |
Jul 04 20:38:24.887: vmx| DICT ethernet0.addressType = vpx |
Jul 04 20:38:24.887: vmx| DICT ethernet0.generatedAddress = 00:50:56:aa:40:b9 |
Jul 04 20:38:24.887: vmx| DICT guestOSAltName = Microsoft Windows Server 2003, Standard Edition (32-bit) |
Jul 04 20:38:24.887: vmx| DICT guestOS = winnetstandard |
Jul 04 20:38:24.887: vmx| DICT uuid.bios = 50 2a 7f e5 bc 42 27 8b-d0 04 3f 47 3c d8 3a ed |
Jul 04 20:38:24.887: vmx| DICT log.fileName = vmware.log |
Jul 04 20:38:24.887: vmx| DICT snapshot.act |
Jul 04 20:38:24.887: vmx| DICT sched.cpu.min = 0 |
Jul 04 20:38:24.887: vmx| DICT sched.cpu.units = mhz |
Jul 04 20:38:24.887: vmx| DICT sched.cpu.shares = normal |
Jul 04 20:38:24.887: vmx| DICT sched.mem.minsize = 0 |
Jul 04 20:38:24.887: vmx| DICT sched.mem.shares = normal |
Jul 04 20:38:24.887: vmx| DICT toolScripts.afterPowerOn = TRUE |
Jul 04 20:38:24.887: vmx| DICT toolScripts.afterResume = TRUE |
Jul 04 20:38:24.887: vmx| DICT toolScripts.beforeSuspend = TRUE |
Jul 04 20:38:24.887: vmx| DICT toolScripts.beforePowerOff = TRUE |
Jul 04 20:38:24.887: vmx| DICT scsi0:0.redo = |
Jul 04 20:38:24.887: vmx| DICT tools.remindInstall = FALSE |
Jul 04 20:38:24.887: vmx| DICT vmware.tools.requiredversion = 7299 |
Jul 04 20:38:24.887: vmx| DICT ethernet0.startConnected = FALSE |
Jul 04 20:38:24.887: vmx| DICT tools.deployPkg.fileName = imc90.tmp |
Jul 04 20:38:24.887: vmx| DICT numvcpus = 2 |
Jul 04 20:38:24.887: vmx| DICT scsi0:1.present = TRUE |
Jul 04 20:38:24.887: vmx| DICT scsi0:1.fileName = VNTco012_1.vmdk |
Jul 04 20:38:24.887: vmx| DICT scsi0:1.deviceType = scsi-hardDisk |
Jul 04 20:38:24.887: vmx| DICT --- USER DEFAULTS |
Jul 04 20:38:24.887: vmx| DICT --- HOST DEFAULTS |
1.
使用记事本保存为VSVR059160.VMX文件
config.version = "8" |
virtualHW.version = "4" |
floppy0.present = "true" |
nvram = "VNTco012.nvram" |
deploymentPlatform = "windows" |
virtualHW.productCompatibility = "hosted" |
tools.upgrade.policy = "manual" |
powerType.powerOff = "default" |
powerType.powerOn = "default" |
powerType.suspend = "default" |
powerType.reset = "default" |
displayName = "VNTco012" |
extendedConfigFile = "VNTco012.vmxf" |
scsi0.present = "true" |
scsi0.sharedBus = "none" |
scsi0.virtualDev = "lsilogic" |
memsize = "2048" |
scsi0:0.present = "true" |
scsi0:0.fileName = "VNTco012.vmdk" |
scsi0:0.deviceType = "scsi-hardDisk" |
sched.scsi0:0.shares = "normal" |
ide0:0.present = "true" |
ide0:0.clientDevice = "true" |
ide0:0.fileName = "/usr/lib/vmware/isoimages/windows.iso" |
ide0:0.deviceType = "atapi-cdrom" |
ide0:0.startConnected = "false" |
floppy0.startConnected = "false" |
floppy0.fileName = "/dev/fd0" |
floppy0.clientDevice = "true" |
ethernet0.present = "true" |
ethernet0.networkName = "VM Network 1007" |
ethernet0.addressType = "vpx" |
ethernet0.generatedAddress = "00:50:56:aa:40:b9" |
guestOSAltName = "Microsoft Windows Server 2003, Standard Edition (32-bit)" |
guestOS = "winnetstandard" |
uuid.bios = "50 2a 7f e5 bc 42 27 8b-d0 04 3f 47 3c d8 3a ed" |
log.fileName = "vmware.log" |
snapshot.act |
sched.cpu.min = "0" |
sched.cpu.units = "mhz" |
sched.cpu.shares = "normal" |
sched.mem.minsize = "0" |
sched.mem.shares = "normal" |
toolScripts.afterPowerOn = "true" |
toolScripts.afterResume = "true" |
toolScripts.beforeSuspend = "true" |
toolScripts.beforePowerOff = "true" |
scsi0:0.redo = "" |
tools.remindInstall = "FALSE" |
vmware.tools.requiredversion = "7299" |
ethernet0.startConnected = "TRUE" |
tools.deployPkg.fileName = "" |
numvcpus = "2" |
scsi0:1.present = "true" |
scsi0:1.fileName = "VNTco012_1.vmdk" |
scsi0:1.deviceType = "scsi-hardDisk" |
2.
上载此VMX文件到到ESX虚拟机同一目录下
hui 2. 恢复VMDK
1.
将VSVR059160.vmdk更名为VSVR059160-flat.vmdk
2.
下文是一个说明文件的范例,将虚拟机实际信息填写到相应的位置
# Disk DescriptorFile
version=1
CID=7341dd22
parentCID=ffffffff
createType="vmfs"
# Extent description
RW 16777216 VMFS "test-flat.vmdk"
# The Disk Da
#DDB
ddb.virtualHWVersion = "4"
ddb.toolsVersion = "0"
ddb.geometry.cylinders = "1044"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.adapterType = "lsilogic"
3.
打开VMWare.log中
定位到DISK,如:
Jul 04 20:38:26.806: vmx| DISK: OPEN scsi0:0 '/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012.vmdk' persistent R[(null)] |
Jul 04 20:38:26.852: vmx| DISKLIB-VMFS : "/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012-flat.vmdk" : open successful (10) size = 10737418240, hd = 131381. Type 3 |
Jul 04 20:38:26.852: vmx| DISKLIB-DSCPTR: Opened [0]: "VNTco012-flat.vmdk" (0xa) |
Jul 04 20:38:26.852: vmx| DISKLIB-LINK : Opened '/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012.vmdk' (0xa): vmfs, 20971520 sectors / 10240 Mb. |
Jul 04 20:38:26.853: vmx| DISKLIB-LIB : Opened "/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012.vmdk" (flags 0xa). 0x8787354 |
Jul 04 20:38:26.994: vmx| DISK: OPEN '/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012.vmdk' Geo (1305/255/63) BIOS Geo (0/0/0) freeSpace=253728Mb, lsilogic |
Jul 04 20:38:27.006: vmx| DISK: OPEN scsi0:1 '/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012_1.vmdk' persistent R[(null)] |
Jul 04 20:38:27.029: vmx| DISKLIB-VMFS : "/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012_1-flat.vmdk" : open successful (10) size = 75161927680, hd = 430390. Type 3 |
Jul 04 20:38:27.029: vmx| DISKLIB-DSCPTR: Opened [0]: "VNTco012_1-flat.vmdk" (0xa) |
Jul 04 20:38:27.030: vmx| DISKLIB-LINK : Opened '/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012_1.vmdk' (0xa): vmfs, 146800640 sectors / 71680 Mb. |
Jul 04 20:38:27.030: vmx| DISKLIB-LIB : Opened "/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012_1.vmdk" (flags 0xa). 0x87b2bd4 |
Jul 04 20:38:27.213: vmx| DISK: OPEN '/vmfs/volumes/4798b760-acabc66f-eac3-001cc459f0b8/VNTco012/VNTco012_1.vmdk' Geo (9137/255/63) BIOS Geo (0/0/0) freeSpace=253728Mb, lsilogic |
Jul 04 20:38:27.264: vmx| DISKUTIL: scsi0:1 : toolsVersion = 0 |
Jul 04 20:38:27.264: vmx| DISKUTIL: scsi0:0 : toolsVersion = 7299 Jul 04 20:38:24.887: vmx| DICT scsi0.virtualDev = lsilogic |