Vmware workstation打开虚拟机失败,提示xxx.vmx文件不是有效的配置文件

Vmware workstation打开虚拟机失败,提示xxx.vmx文件不是有效的配置文件

Cause :非正常关机造成vmx损坏,这个从文件目录中可以看到使用的.vmx文件已经空了,所以会打不开虚拟机.

修复步骤:

修复方法一

  1. 使用vmware.log文件中的内容进行修复.
  2. 打开vmware.log文件,其中大概是这样的.找到DICT部分,比如下面的:

    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- USER PREFERENCES C:\Users\Administrator\AppData\Roaming\VMware\preferences.ini
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.hostMRU.count = "1"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.hostMRU0.name = "localhost"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window.count = "1"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab.count = "2"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.sidebar = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.sidebar.width = "200"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.statusBar = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tabs = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.thumbnailBar = "FALSE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.thumbnailBar.size = "100"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.thumbnailBar.view = "opened-vms"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.placement.left = "0"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.placement.top = "0"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.placement.right = "1244"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.placement.bottom = "860"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.maximized = "FALSE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.sharedFolder.maxNum = "1"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.sharedFolder0.vmPath = "/vm/#303002942e2a6b18/"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.sharedFolder0.guestName = "myfolders"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.sharedFolder0.hostPath = "F:\vmware\SAS unversity\SASUniversityEdition\myfolders"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.sharedFolder0.enabled = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab0.dest = ""
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab0.file = ""
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab0.type = "home"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab0.focused = "FALSE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab1.dest = ""
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab1.file = "F:\vmware\Asianux\Asianux Server 3 64 位.vmx"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab1.type = "vm"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT pref.ws.session.window0.tab1.focused = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmWizard.guestKey = "rhel6-64"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmWizard.installMediaType = "iso"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmWizard.isoLocationMRU.count = "1"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmWizard.isoLocationMRU0.location = "D:\迅雷下载\rhel-server-6.3-x86_64-dvd.iso"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- USER DEFAULTS C:\Users\Administrator\AppData\Roaming\VMware\config.ini
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- HOST DEFAULTS C:\ProgramData\VMware\VMware Workstation\config.ini
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT authd.client.port = "902"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT authd.proxy.nfc = "vmware-hostd:ha-nfc"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled = "no"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled.epoch = "15397"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.componentDownloadEnabled = "yes"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled = "no"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled.epoch = "15397"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- SITE DEFAULTS C:\ProgramData\VMware\VMware Workstation\config.ini
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT authd.client.port = "902"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT authd.proxy.nfc = "vmware-hostd:ha-nfc"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled = "no"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled.epoch = "15397"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.componentDownloadEnabled = "yes"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled = "no"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled.epoch = "15397"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- NONPERSISTENT
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmx.stdio.keep = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT gui.available = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- COMMAND LINE
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmx.stdio.keep = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT gui.available = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- RECORDING
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vmx.stdio.keep = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT gui.available = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT --- CONFIGURATION F:\vmware\RedhatLinux\Red Hat Enterprise Linux 6 64 位.vmx
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT config.version = "8"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT virtualHW.version = "10"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT vcpu.hotadd = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT scsi0.present = "TRUE"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT scsi0.virtualDev = "lsilogic"
    2016-03-28T21:45:37.118+08:00| vmx| I120: DICT sata0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT memsize = "2048"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT mem.hotadd = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT scsi0:0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT scsi0:0.fileName = "Red Hat Enterprise Linux 6 64 位.vmdk"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0:0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0:0.fileName = "autoinst.iso"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0:0.deviceType = "cdrom-image"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0:1.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0:1.fileName = "D:\迅雷下载\rhel-server-6.3-x86_64-dvd.iso"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0:1.deviceType = "cdrom-image"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.connectionType = "hostonly"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.virtualDev = "e1000"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.wakeOnPcktRcv = "FALSE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.addressType = "generated"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ehci.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ehci.pciSlotNumber = "35"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sound.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sound.fileName = "-1"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sound.autodetect = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT serial0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT serial0.fileType = "thinprint"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge4.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge4.virtualDev = "pcieRootPort"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge4.functions = "8"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge5.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge5.virtualDev = "pcieRootPort"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge5.functions = "8"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge6.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge6.virtualDev = "pcieRootPort"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge6.functions = "8"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge7.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge7.virtualDev = "pcieRootPort"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge7.functions = "8"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT vmci0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT hpet0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb.vbluetooth.startConnected = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT displayName = "Red Hat Enterprise Linux 6 64 位"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT guestOS = "rhel6-64"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT nvram = "Red Hat Enterprise Linux 6 64 位.nvram"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT virtualHW.productCompatibility = "hosted"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT powerType.powerOff = "soft"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT powerType.powerOn = "soft"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT powerType.suspend = "soft"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT powerType.reset = "soft"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT extendedConfigFile = "Red Hat Enterprise Linux 6 64 位.vmxf"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT floppy0.present = "FALSE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT uuid.bios = "56 4d 41 da 43 3d 3a af-da 62 9e 8b 23 f4 cd 66"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT uuid.location = "56 4d 41 da 43 3d 3a af-da 62 9e 8b 23 f4 cd 66"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT replay.supported = "FALSE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT replay.filename = ""
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT scsi0:0.redo = ""
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge0.pciSlotNumber = "17"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge4.pciSlotNumber = "21"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge5.pciSlotNumber = "22"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge6.pciSlotNumber = "23"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT pciBridge7.pciSlotNumber = "24"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT scsi0.pciSlotNumber = "16"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb.pciSlotNumber = "32"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.pciSlotNumber = "33"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sound.pciSlotNumber = "34"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT vmci0.pciSlotNumber = "36"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT sata0.pciSlotNumber = "37"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.generatedAddress = "00:0c:29:f4:cd:66"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT ethernet0.generatedAddressOffset = "0"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT vmci0.id = "603245926"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT vmotion.checkpointFBSize = "33554432"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT cleanShutdown = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT softPowerOff = "FALSE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:0.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:0.deviceType = "hid"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:0.port = "0"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:0.parent = "-1"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:1.speed = "2"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:1.present = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:1.deviceType = "hub"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:1.port = "1"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT usb:1.parent = "-1"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT tools.syncTime = "FALSE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT tools.remindInstall = "FALSE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT toolsInstallManager.updateCounter = "1"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT unity.wasCapable = "TRUE"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT checkpoint.vmState = "Red Hat Enterprise Linux 6 64 位-7ceca6d7.vmss"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT --- USER DEFAULTS C:\Users\Administrator\AppData\Roaming\VMware\config.ini
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT --- HOST DEFAULTS C:\ProgramData\VMware\VMware Workstation\config.ini
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT authd.client.port = "902"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT authd.proxy.nfc = "vmware-hostd:ha-nfc"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled = "no"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled.epoch = "15397"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.componentDownloadEnabled = "yes"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled = "no"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled.epoch = "15397"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT --- SITE DEFAULTS C:\ProgramData\VMware\VMware Workstation\config.ini
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT authd.client.port = "902"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT authd.proxy.nfc = "vmware-hostd:ha-nfc"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled = "no"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.autoSoftwareUpdateEnabled.epoch = "15397"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.componentDownloadEnabled = "yes"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled = "no"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT installerDefaults.dataCollectionEnabled.epoch = "15397"
    2016-03-28T21:45:37.119+08:00| vmx| I120: DICT --- GLOBAL SETTINGS C:\ProgramData\VMware\VMware Workstation\settings.ini
  3. 截取其中的部分作为配置内容,具体的节点是DICT — CONFIGURATION之下到 DICT — USER DEFAULTS 之间的部分,不包括两行。然后新建一个.vmx文件,内容的第一行写.encoding = “GBK”,其中GBK或者UTF8可以从log文件中搜到。
  4. 重新启动虚拟机即可。

修复方法二

  1. 观察目录下是否有同名的vmx文件,后面带了~,如果有的话就很简单。
  2. 将.vmx文件删除,将后缀名为.vmx~的文件命名为.vmx即可。
  3. 重启虚拟机
阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/kang389110772/article/details/51024126
文章标签: 虚拟机 vmware
个人分类: Linux 杂项
想对作者说点什么? 我来说一句

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

不良信息举报

Vmware workstation打开虚拟机失败,提示xxx.vmx文件不是有效的配置文件

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭