转自http://hi.baidu.com/perfectxyz/blog/item/23ac06f871720b04d8f9fd57.html

1、VMware 启动报错 "Failed to lock the file"解决办法:

将”Windows XP Professional.vmdk.lck“文件夹下”M13197.lck“文件删掉或者把这个文件移走,就可以了。有没有负影响,在测试中。。。。。如果出问题,将VMWARE-TOOLS,重装一遍。

2、解决虚拟机Reason: The file is too large问题

今天打开复制来的虚拟机文件时出现了以下问题:

VMware Workstation cannot open one of the virtual disks needed by this VM because it is larger than the maximum file size supported by the host file system. Some remote file systems do not support files larger than 2 GB, even though the file system on the server might.

Cannot open the disk 'F:\Windows 2000 Server\Windows 2000 Server.vmdk' or one of the snapshot disks it depends on.

Reason: The file is too large.

解决方法如下:

在VMX文件中加入:

diskLib.sparseMaxFileSizeCheck= "false"

我的文件如下所示:

config.version = "7"
virtualHW.version = "3"
memsize = "128"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Windows 2000 Server.vmdk"
scsi0.present = "TRUE"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"   | ide1:0.deviceType = "cdrom-p_w_picpath"[VM 6,5]
diskLib.sparseMaxFileSizeCheck= "false"
floppy0.present = "FALSE"
Ethernet0.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
sound.fileName = "-1"
displayName = "Windows 2000 Server"
guestOS = "win2000serv"
priority.grabbed = "normal"
priority.ungrabbed = "normal"

uuid.location = "56 4d 25 37 78 8a 04 b0-4e 93 8e fd 25 30 fe 4e"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:b3:6a:5a"
ethernet0.generatedAddressOffset = "0"

Ethernet0.connectionType = "bridged"

uuid.bios = "56 4d 25 37 78 8a 04 b0-4e 93 8e fd 25 30 fe 4e"

ide1:0.startConnected = "TRUE"
tools.syncTime = "FALSE"

Ethernet0.vnet = "VMnet0"

scsi0:0.redo = ""
sound.autodetect = "TRUE"
scsi0:0.deviceType = "scsi-hardDisk"
ide1:0.autodetect = "TRUE"
usb.present = "TRUE"

extendedConfigFile = "Windows 2000 Server.vmxf"
virtualHW.productCompatibility = "hosted"
tools.upgrade.policy = "manual"
再次打开虚拟机就可以正常启动了!