狀況說明:
開啟ESX 4.1內的某VM,發現常時間停在95%,待一段時間後,無法開啟Console,出現「unable to connect to the mks ...」
解決方法:
- With vSphere Client, connect to the host or the VC server that controls the host.
- Click on the host and go to the Configuration tab.
- Click on Security Profile.
- Click on Properties in the Services table.
- Start ESXi Shell and SSH services.
- Open a SSH session to the host.
- Execute /sbin/services.sh restart. This will restart all agents. The vSphere Client or the vCenter server will lose connection to the host. Reconnect! The VM may show as (invalid).
- Find the PID of the process by typing ps|grep “<VMName>”. The second number before the name of the VM is the PID.
- Kill the process by typing kill -9 <PID>.
- Go to /vmfs/volumes/<DataStoreName>/<VMName>.
- Delete the swap file by typing rm –r <SwappFileName.vswp>
- In vSphere Client right click the VM and select Remove From Inventory.
- Browse the data store, open the VM folder, right click on the .vmx file and select Add to Inventory.
- Power On the VM.
Reference:http://www.konkotech.com/blog/?p=72
全站熱搜
留言列表