电脑突然断电,导致虚拟机打不开,经查是因为缺少虚拟机的配置文件.vmx
这是一个虚拟机的配置文件。
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88.encoding = "GBK" 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 = "CentOS(2)" guestOS = "centos7-64" nvram = "CentOS(2).nvram" virtualHW.productCompatibility = "hosted" powerType.powerOff = "soft" powerType.powerOn = "soft" powerType.suspend = "soft" powerType.reset = "soft" tools.syncTime = "FALSE" sound.autoDetect = "TRUE" sound.fileName = "-1" sound.present = "TRUE" vcpu.hotadd = "TRUE" memsize = "2048" mem.hotadd = "TRUE" scsi0.virtualDev = "lsilogic" scsi0.present = "TRUE" scsi0:0.fileName = "CentOS(2).vmdk" scsi0:0.present = "TRUE" ide1:0.deviceType = "cdrom-image" ide1:0.fileName = "D:softpackageVMwareSoftCentOS-7-x86_64-DVD-1804.iso" ide1:0.present = "TRUE" usb.present = "TRUE" ehci.present = "TRUE" ethernet0.connectionType = "nat" ethernet0.addressType = "generated" ethernet0.virtualDev = "e1000" serial0.fileType = "thinprint" serial0.fileName = "thinprint" ethernet0.present = "TRUE" serial0.present = "TRUE" extendedConfigFile = "CentOS(2).vmxf" floppy0.present = "FALSE" numvcpus = "4" cpuid.coresPerSocket = "2" uuid.bios = "56 4d 7e 92 a7 1d 4f ae-2b 16 79 e6 07 fe f5 7d" uuid.location = "56 4d 7e 92 a7 1d 4f ae-2b 16 79 e6 07 fe f5 7d" migrate.hostlog = ".CentOS(2)-c7347243.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:fe:f5:7d" ethernet0.generatedAddressOffset = "0" vmci0.id = "-1380252911" monitor.phys_bits_used = "43" vmotion.checkpointFBSize = "4194304" vmotion.checkpointSVGAPrimarySize = "33554432" cleanShutdown = "FALSE" softPowerOff = "FALSE" usb:1.speed = "2" usb:1.present = "TRUE" usb:1.deviceType = "hub" usb:1.port = "1" usb:1.parent = "-1" svga.guestBackedPrimaryAware = "TRUE" usb:0.present = "TRUE" usb:0.deviceType = "hid" usb:0.port = "0" usb:0.parent = "-1"
解决办法:如果你安装系统的映像文件(ISO)还在的话,那就非常简单,重新用这个映像文件安装虚拟机,并且把安装位置修改为你出问题的虚拟机的安装目录,它会提示你两个放在一起可能会出问题,没关系继续操作,安装过程很简单,当你安装完之后,打开虚拟机的安装文件夹,你会发现所有的文件都出现了两份(除了几个日志文件和你缺少的.vmx文件),其中第二份文件是以…(2)命名的,然后你找到后缀为.vmx 的文件,将它的文件名中的(2)删掉,然后打开这个文件,找到里面每一行提到….(2)的,都把(2)删掉,保存就OK了,这时就可以打开VMware然后你原来的虚拟机就能够打开了,为了保险起见这时可以将安装的第二个虚拟机右键-管理-从磁盘中删除,然后点击文件--->选择打开,之后选择你虚拟机目录下的.vmx文件就可以打开原来的虚拟机了。
最后
以上就是仁爱棉花糖最近收集整理的关于电脑突然断电,导致vmware中的虚拟机的.vmx文件丢失,从而打不开虚拟机的全部内容,更多相关电脑突然断电,导致vmware中内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复