電腦突然斷電,導致vmware中的虛擬機器的.vmx檔案丟失,從而打不開虛擬機器
阿新 • • 發佈:2018-12-27
電腦突然斷電,導致虛擬機器打不開,經查是因為缺少虛擬機器的配置檔案.vmx
這是一個虛擬機器的配置檔案。
.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:\softpackage\VMwareSoft\CentOS-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然後你原來的虛擬機器就能夠打開了,為了保險起見這時可以將安裝的第二個虛擬機器右鍵-管理-從磁碟中刪除,然後點選檔案