VMware非正常关闭导致打开虚拟机时提示:未找到.vmx文件

上次手残将VMware直接关闭,导致第二次打开虚拟机时提示.vmx文件未找到。
根据这个原理,可能其他后缀的文件丢失也可以利用相同的原理,就是重新建一个虚拟机,然后就能得到相同的文件,将这个文件复制到你原来的虚拟机下就能成功打开了(这是我猜的,肯定有一些文件是不能够替代的,但是有时候试试总比重头再来强)

这是一个虚拟机的配置文件,也就是说你安装的虚拟机的各种配置都记录在这里面,可以用记事本打开查看,`.encoding = "GBK"

config.version = “8”
virtualHW.version = “12”
scsi0.present = “TRUE”
scsi0.virtualDev = “lsilogic”
sata0.present = “TRUE”
memsize = “2048”
scsi0:0.present = “TRUE”
scsi0:0.fileName = “Red Hat Enterprise Linux 6.vmdk”
sata0:1.present = “TRUE”
sata0:1.fileName = “F:\云盘下载\专业体系2-精通嵌入式\红帽Linux安装光盘映像\rhel-server-6.3-i386-dvd.iso”
sata0:1.deviceType = “cdrom-image”
ethernet0.present = “TRUE”
ethernet0.connectionType = “bridged”
ethernet0.wakeOnPcktRcv = “FALSE”
ethernet0.addressType = “generated”
usb.present = “TRUE”
ehci.present = “TRUE”
ehci.pciSlotNumber = “35”
sound.present = “TRUE”
sound.fileName = “-1”
sound.autodetect = “TRUE”
serial0.present = “TRUE”
serial0.fileType = “thinprint”
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 = “Red Hat Enterprise Linux 6”
guestOS = “rhel6”
nvram = “Red Hat Enterprise Linux 6.nvram”
virtualHW.productCompatibility = “hosted”
powerType.powerOff = “soft”
powerType.powerOn = “soft”
powerType.suspend = “soft”
powerType.reset = “soft”
extendedConfigFile = “Red Hat Enterprise Linux 6.vmxf”
numa.autosize.vcpu.maxPerVirtualNode = “1”
numa.autosize.cookie = “10001”
uuid.bios = “56 4d 12 79 02 dc 36 66-c9 a7 2a 7f 7b dd 6e b8”
uuid.location = “56 4d 12 79 02 dc 36 66-c9 a7 2a 7f 7b dd 6e b8”
migrate.hostlog = “.\Red Hat Enterprise Linux 6-84917b41.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”
vmci0.pciSlotNumber = “36”
sata0.pciSlotNumber = “37”
ethernet0.generatedAddress = “00:0c:29:dd:6e:b8”
ethernet0.generatedAddressOffset = “0”
vmci0.id = “-506630031”
monitor.phys_bits_used = “42”
vmotion.checkpointFBSize = “33554432”
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”
sata0:1.autodetect = “TRUE”
tools.syncTime = “FALSE”
tools.remindInstall = “FALSE”
toolsInstallManager.updateCounter = “1”
toolsInstallManager.lastInstallError = “0”
sata0:1.startConnected = “TRUE”
sata0:0.present = “FALSE”
floppy0.present = “FALSE”
usb:0.present = “TRUE”
usb:0.deviceType = “hid”
usb:0.port = “0”
usb:0.parent = “-1”
`

这是我的redhat6的.vmx文件,那么问题来了怎么找回这个文件呢?
解决办法:如果你安装系统的映像文件(ISO)还在的话,那就非常简单,重新用这个映像文件安装虚拟机,并且把安装位置放在你上一个虚拟机的同一个文件夹下,它会提示你两个放在一起可能会出问题,没关系继续操作,安装过程很简单,当你安装完之后,打开虚拟机的安装文件夹,你会发现所有的文件都出现了两份(除了几个日志文件和你缺少的.vmx文件),其中第二份文件是以…(2)命名的,然后你找到后缀为.vmx 的文件,将它的文件名中的(2)删掉,然后打开这个文件,找到里面每一行提到….(2)的,都把(2)删掉,保存就OK了,这时就可以打开VMware然后你原来的虚拟机就能够打开了,为了保险起见这时可以将安装的第二个虚拟机右键-管理-从磁盘中删除,这时你的安装位置里面就只剩你原来虚拟机的文件了也不怕以后冲突了~

阅读更多
文章标签: vmware 虚拟机
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭