狀況說明:

開啟ESX 4.1內的某VM,發現常時間停在95%,待一段時間後,無法開啟Console,出現「unable to connect to the mks ...」

解決方法:

  1. With vSphere Client, connect to the host or the VC server that controls the host.
  2. Click on the host and go to the Configuration tab.
  3. Click on Security Profile.
  4. Click on Properties in the Services table.
  5. Start ESXi Shell and SSH services.
  6. Open a SSH session to the host.
  7. 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).
  8. Find the PID of the process by typing ps|grep “<VMName>”. The second number before the name of the VM is the PID.
  9. Kill the process by typing kill -9 <PID>.
  10. Go to /vmfs/volumes/<DataStoreName>/<VMName>.
  11. Delete the swap file by typing rm –r <SwappFileName.vswp>
  12. In vSphere Client right click the VM and select Remove From Inventory.
  13. Browse the data store, open the VM folder, right click on the .vmx file and select Add to Inventory.
  14. Power On the VM.

 Reference:http://www.konkotech.com/blog/?p=72 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 masterman 的頭像
    masterman

    Peter Lin-被動投資紀錄

    masterman 發表在 痞客邦 留言(1) 人氣()