歡迎您光臨本站 註冊首頁

Linux下VMware虛擬機不能啟動(The process exited with an error:)

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

在公司的研發機上架了幾個虛擬機跑測試,機器好久沒有關過了,但上周六卻突然因為斷電,伺服器重啟了,今天到公司一看我的其中一個虛擬機居然沒有起來。

馬上打開終端登陸到伺服器試圖手動啟動,居然給我報錯

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

到/tmp/vmare-user下面查看最新日誌
QUOTE:
[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了。

[火星人 ] Linux下VMware虛擬機不能啟動(The process exited with an error:)已經有739次圍觀

http://coctec.com/docs/linux/show-post-114306.html