装有ESXI系统的服务器在强制关机启动后,显示虚拟机状态无效的,并且无法进行任何操作。

图:

(跟这张图一样,在这之前我的问题已经解决,以下并不是我的原图)

解决:

1)开启esxi系统的ssh功能

2) 查看失效文件并删除

C:\Users\Administrator>ssh root@172.16.10.230
The authenticity of host '172.16.10.230 (172.16.10.230)' can't be established.
RSA key fingerprint is SHA256:ZrTxwBB2nhI3YEEnxUEWyjdJZAo3ohg33xZa0GyUnzI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.16.10.230' (RSA) to the list of known hosts.
Password:
The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@localhost:~] vim-cmd vmsvc/getallvms   #查看失效文件
Skipping invalid VM '2'
Skipping invalid VM '3'
Skipping invalid VM '4'
Skipping invalid VM '5'
Vmid   Name   File   Guest OS   Version   Annotation
[root@localhost:~] vim-cmd vmsvc/unregister 2    #删除
[root@localhost:~] vim-cmd vmsvc/unregister 3
[root@localhost:~] vim-cmd vmsvc/unregister 4
[root@localhost:~] vim-cmd vmsvc/unregister 5

 总结:我发现这种情况是不可逆的,也就是说暂时好像没有办法重新恢复虚拟机。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐