红联Linux门户
Linux帮助

Linux下VMware虚拟机不能启动(The process exited with an error:)

发布时间:2008-04-01 01:27:38来源:红联作者:Inwind
在公司的研发机上架了几个虚拟机跑测试,机器好久没有关过了,但上周六却突然因为断电,服务器重启了,今天到公司一看我的其中一个虚拟机居然没有起来。

马上打开终端登陆到服务器试图手动启动,居然给我报错

Unable to change virtual machine power state: The process exited with an error: End of error message

到/tmp/vmare-user下面查看最新日志

引用:
[root@devchn vmware-user]# cat 11282.log
Mar 31 10:54:27: vmx| Log for VMware Server pid=11282 version=1.0.4 build=build-56528 option=Release
Mar 31 10:54:27: vmx| Command line: "/usr/lib/vmware/bin/vmware-vmx" "-C" "-@" """" "/var/lib/vmware/Virtual Machines/Windows_old/Windows XP Professional.vmx"
Mar 31 10:54:27: vmx| vmxvmdb: Index name being generated from config file
Mar 31 10:54:27: vmx| VMXVmdbConnectServerd - Trying to discover serverd
Mar 31 10:54:27: vmx| MStat: Creating Stat system.cpuusage
Mar 31 10:54:27: vmx| MStat: Creating Stat system.ram
Mar 31 10:54:27: vmx| MStat: Creating Stat system.uptime
Mar 31 10:54:27: vmx| MStat: Creating Stat system.load
Mar 31 10:54:27: vmx| Msg_Post: Error
Mar 31 10:54:27: vmx| [msg.util.msde.mkdir] Cannot create directory "/dev/null/.vmware": Not a directory.
Mar 31 10:54:27: vmx| [msg.hostPosix.userdir] Cannot proceed without directory "~/.vmware". It is needed to store user preferences and other information.
Mar 31 10:54:27: vmx| ----------------------------------------
Mar 31 10:54:27: vmx| POST(no connection): Cannot create directory "/dev/null/.vmware": Not a directory.
Mar 31 10:54:27: vmx| Cannot proceed without directory "~/.vmware". It is needed to store user preferences and other information.
Mar 31 10:54:27: vmx|
Mar 31 10:54:27: vmx| Module Host initialization failed.
Mar 31 10:54:27: vmx| Flushing VMX VMDB connections
Mar 31 10:54:27: vmx| Failed to initialize VM.
[root@devchn vmware-user]#


原来是由于我上次由于需要,将user用户的home目录设为了/dev/null,而vmware在启动的时候,需要在用户的home目录底下创建一个名称为.vmware 的隐藏文件夹。

这样一来,我的user用户当然不可能在/dev/null下面创建文件夹了,难怪这个虚拟机不能起来了

于是将user的home目录改为/tmp,再次点亮就OK了。
文章评论

共有 0 条评论