共計 1738 個字符,預計需要花費 5 分鐘才能閱讀完成。
這篇文章主要為大家展示了“VM 虛機無法重啟關機如何強制處理”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓丸趣 TV 小編帶領大家一起研究并學習一下“VM 虛機無法重啟關機如何強制處理”這篇文章吧。
有一臺虛機無法正常網(wǎng)絡連接,通過 VSPHERE CLIENT 連接到 VC 中,也無法對其進行重啟和關機操作,具體報錯截圖
查看事件日志
原來是執(zhí)行 VMTOOLS 安裝程序時出現(xiàn)的問題,詢問實施工程師,原來是要進行 VMTOOLS 的升級未成功出現(xiàn)的問題,虛機現(xiàn)在掛死無任何響應。
對其進行重啟和關機均無任何響應,這臺虛機掛有很多 RDM 裸盤,是存儲監(jiān)控機。需要立即解決問題,刪除重建顯然來不及。
那么有沒有別的辦法可以強制讓虛機關機或重啟呢?
下面介紹一種方法。
首先打開虛機所在 ESXI 主機的 SSH 連接功能。
然后連接到命令行
執(zhí)行進程查看,可查看到每個虛機的進程
# esxcli vm process list|more
F9EMCSE01
World ID: 40008824
Process ID: 0
VMX Cartel ID: 40008821
UUID: 42 0a d0 01 38 68 b7 7d-61 5e 4c ab d5 5b f0 6c
Display Name: F9EMCSE01
Config File: /vmfs/volumes/55813f75-c661c1ac-dea8-6c0b8462a7e8/F9EMCSE01/F9EMCSE01.vmx
# esxcli vm process kill –type=
Error: Missing required parameter -w|–world-id
Usage: esxcli vm process kill [cmd options]
Description:
kill Used to forcibly kill Virtual Machines that are stuck
and not responding to normal stop operations.
Cmd options:
-t|–type= str The type of kill operation to attempt. There are three
types of VM kills that can be attempted: [soft,
hard, force]. Users should always attempt soft kills
first, which will give the VMX process a chance to
shutdown cleanly (like kill or kill -SIGTERM). If that
does not work move to hard kills which will shutdown
the process immediately (like kill -9 or kill
-SIGKILL). force should be used as a last resort
attempt to kill the VM. If all three fail then a
reboot is required. (required)
-w|–world-id= long The World ID of the Virtual Machine to kill. This can
be obtained from the vm process list command
(required)
有三種類型,SOFT 是殺死虛機進程。HARD 是強制殺死,類似 KILL -9. FORCE 是殺死整個虛機。
執(zhí)行語句
# esxcli vm process kill –type=hard –world-id=40008824
發(fā)現(xiàn)虛機已被強制關閉,再重啟就正常了,升級 VMTOOLS 成功。
以上是“VM 虛機無法重啟關機如何強制處理”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關注丸趣 TV 行業(yè)資訊頻道!