VMware错误:

作者:waMoYu 发布时间: 2024-10-24 阅读量:47 评论数:0

问题

虚拟机死机,强制重启物理机后,打开虚拟机出现以下报错

还原快照也不行,查询后得知使用以下命令可以修复:

vmware-vdiskmanager -R "虚拟磁盘路径"

然后发现没有这个命令,重新查了下,发现该命令VMware自带,不过需要去vmware的安装目录下执行

VMware根目录\vmware-vdiskmanager -R "虚拟磁盘路径"

执行后提示以下信息

D:\Software\VMware Workstation Pro>vmware-vdiskmanager.exe -e "D:\Windows\Documents\Virtual Machines\Debian\Debian-000002.vmdk"
SSLConfigLoad: Failed to load OpenSSL config file.

然后有搜索了下,发现提示该信息正常,再次尝试启动虚拟机,还是报错。

发现可以使用-e参数查看错误原因

D:\Software\VMware Workstation Pro>vmware-vdiskmanager.exe -e "D:\Windows\Documents\Virtual Machines\Debian\Debian-000002.vmdk"
SSLConfigLoad: Failed to load OpenSSL config file.
Failed to open the disk 'D:\Windows\Documents\Virtual Machines\Debian\Debian-000002.vmdk' : The parent of this virtual disk could not be opened (0x3e8c).
Disk link D:\Windows\Documents\Virtual Machines\Debian\Debian-000002.vmdk successfully opened.
Failed to open the disk 'D:\Windows\Documents\Virtual Machines\Debian\Debian-000001.vmdk' : The specified virtual disk needs repair (0x3e86).
Disk chain is not consistent: The parent of this virtual disk could not be opened (0x3e8c).

发现除了开头虚拟机提示的002磁盘错误,001磁盘一样有问题,这次尝试使用命令修复001

PS D:\Software\VMware Workstation Pro> .\vmware-vdiskmanager.exe -R "D:\Windows\Documents\Virtual Machines\Debian\Debian-000001.vmdk"
SSLConfigLoad: Failed to load OpenSSL config file.
The virtual disk, 'D:\Windows\Documents\Virtual Machines\Debian\Debian-000001.vmdk', was corrupted and has been successfully repaired.

提示修复成功,然后在修复了下002,还是之前的什么SSL,再次打开虚拟机就可以了。

总结

  1. 进入VMware根目录打开cmd命令行。

  2. 执行以下命令查看错误原因

    VMware根目录\vmware-vdiskmanager -e "虚拟磁盘路径"
  3. 执行以下命令修复磁盘

    # 修复的时候,如果提示多个硬盘都有问题,按照顺序来,例如001、002
    VMware根目录\vmware-vdiskmanager -R "虚拟磁盘路径"
  4. 尝试开启虚拟机

评论