linux下vmware挂起虚拟机后再恢复有时候会出现如下错误:

Unable to change virtual machine power state: Internal

error.

一开始以为是vmware的设置有问题,后来在网上终于找到答案:

Ran into this while running Vmware Workstation under Ubuntu

Jaunty. I got an error while shutting down the machine through an

NX session.

This is a result of a zombie ‘vmware-vmx’ process running. All

you need to do is kill the process. This command sends ’signal 9′

to the process. When sent to a program, SIGKILL causes it to

terminate immediately. In contrast to SIGTERM and SIGINT, this

signal cannot be caught or ignored. For more information: more

sigkill info.

killall -s9 vmware-vmxAfter that, I was able to start up the

virtual machine without issue.

即找到vmware-vmx进程(对应于该虚拟机的,每个虚拟机都有一个这样的进程,用Ps aux | grep

vmware-vmx命令可看到具体进程情况,找到对应于该虚拟机的)杀死就行

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐