vmvare打开虚拟机时报错:vmx文件已损坏

查看日志文件:

打开虚拟机文件夹下的vmware.log文件

我在log日志最后部分。发现了以下这两句话。

 

....................................................................................................................................

2014-11-01T21:51:09.100+08:00| vmx| W110: Minidump failed: There is not enough space on the disk

 

2014-11-01T21:51:09.137+08:00| vmx| I120: CoreDump error: Write, page 0x113 (0xffffffff) No space left on device

....................................................................................................................................

显而易见,是磁盘空间不足,导致写数据的时候出错了。终于导致配置CentOS.vmx出错。

 

解决思路:

1.将.vmx文件删除(别删错了!!!),然后新建一个相同名字的.vmx文件,我的是CentOS.vmx;

2.找到“ DICT --- CONFIGURATION”(前面是日期和时间的信息);

3.找到“ DICT --- USER DEFAULTS”(前面是日期和时间的信息);

4.将这两行的之间的数据复制出来(上面提到的两行不须要复制);

5.黏贴到.vmx文件(我的是CentOS.vmx)中。

6.删除CentOS.vmx文件里全部行的前边的日期时间标志,仅保留后面的信息,比如:

2014-11-01T20:50:32.963+08:00| vmx| I120: DICT            config.version = "8"

将“2014-11-01T20:50:32.963+08:00| vmx| I120: DICT”部分删除,仅仅保留config.version = "8"。

ps:假设你自己不知道简单的删除列的方法。我推荐使用NotePad++,按出Alt,就能够选择列,然后将表示时间的标志的列所有删除。

然后全选,Tab+Shift能够将所有内容左移。最后让前面的空格所有去除。达到日志信息左对齐的效果。

7.照上边格式所有改动,然后给所有行的等号后的字符加上英文双引號(注意不要使用中文输入法的双引號)

       比如:config.version = 8 改为config.version = "8"

假设你跟我一样,已经有英文双引號,就不须要加入了;

8.保存.vmx文件(CentOS.vmx)。

9.又一次打开.vmx文件(CentOS.vmx);

10.OK,启动虚拟机。

 

最后附上,改动过的CentOS.vmx文件的部分内容(首+尾,中间省略了)

config.version="8"
virtualHW.version="14"
pciBridge0.present="TRUE"
pciBridge4.present="TRUE"
pciBridge4.virtualDev="pcieRootPort"
pciBridge4.functions="8"
pciBridge5.present="TRUE"
pciBridge5.virtualDev="pcieRootPort"
pciBridge5.functions="8"
pciBridge6.present="TRUE"
pciBridge6.virtualDev="pcieRootPort"
pciBridge6.functions="8"
pciBridge7.present="TRUE"
pciBridge7.virtualDev="pcieRootPort"
pciBridge7.functions="8"
vmci0.present="TRUE"
hpet0.present="TRUE"
usb.vbluetooth.startConnected="TRUE"
displayName="CentOS764位"
guestOS="centos7-64"
nvram="CentOS764位.nvram"
virtualHW.productCompatibility="hosted"
powerType.powerOff="soft"
powerType.powerOn="soft"
powerType.suspend="soft"
powerType.reset="soft"
tools.syncTime="TRUE"
tools.upgrade.policy="upgradeAtPowerCycle"
sound.autoDetect="TRUE"
sound.fileName="-1"
sound.present="TRUE"
vcpu.hotadd="TRUE"
memsize="1024"
mem.hotadd="TRUE"
scsi0.virtualDev="lsilogic"
scsi0.present="TRUE"
scsi0:0.fileName="虚拟磁盘.vmdk"
scsi0:0.present="TRUE"
ide1:0.deviceType="cdrom-image"
ide1:0.fileName="/Volumes/SeagateExpansionDrive/CentOS-7-x86_64-DVD-1908/CentOS-7-x86_64-DVD-1908.iso"
ide1:0.present="TRUE"
usb.present="TRUE"
ehci.present="TRUE"
ethernet0.connectionType="nat"
ethernet0.addressType="generated"
ethernet0.virtualDev="e1000"
ethernet0.linkStatePropagation.enable="TRUE"
serial0.fileType="thinprint"
serial0.fileName="thinprint"
ethernet0.present="TRUE"
serial0.present="TRUE"
extendedConfigFile="CentOS764位.vmxf"
floppy0.present="FALSE"
uuid.bios="564d3b7a40872265-cbd92ea94b8797fe"
uuid.location="564d3b7a40872265-cbd92ea94b8797fe"
migrate.hostlog="./CentOS764位-f3c6e43a.hlog"
scsi0:0.redo=""
pciBridge0.pciSlotNumber="17"
pciBridge4.pciSlotNumber="21"
pciBridge5.pciSlotNumber="22"
pciBridge6.pciSlotNumber="23"
pciBridge7.pciSlotNumber="24"
scsi0.pciSlotNumber="16"
usb.pciSlotNumber="32"
ethernet0.pciSlotNumber="33"
sound.pciSlotNumber="34"
ehci.pciSlotNumber="35"
vmci0.pciSlotNumber="36"
ethernet0.generatedAddress="00:0c:29:87:97:fe"
ethernet0.generatedAddressOffset="0"
vmci0.id="1267177470"
monitor.phys_bits_used="43"
vmotion.checkpointFBSize="67108864"
vmotion.checkpointSVGAPrimarySize="67108864"
cleanShutdown="TRUE"
softPowerOff="FALSE"
usb:0.present="TRUE"
usb:0.deviceType="hid"
usb:0.port="0"
usb:0.parent="-1"
usb:1.speed="2"
usb:1.present="TRUE"
usb:1.deviceType="hub"
usb:1.port="1"
usb:1.parent="-1"
svga.guestBackedPrimaryAware="TRUE"
checkpoint.vmState="CentOS764位-f3c6e43a.vmss"
ehci:0.present="TRUE"
ehci:0.deviceType="video"
ehci:0.port="0"
ehci:0.parent="-1"

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值