VMware:判斷虛擬機器關閉電源或重新啟動的原因
Summary: 本文提供故障診斷步驟,協助您判斷 VMware 虛擬機器關閉電源或重新開機的原因。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
目標
確定在以下情況之一中關閉或重新啟動虛擬機的原因:
- 無法再存取連線到虛擬機器中執行服務的用戶端
- 相依於虛擬機器中執行之服務的應用程式會報告錯誤
- 虛擬機器不再回應網路連線
- 虛擬機器不再回應主控台上的使用者互動
- 虛擬機器意外關閉
- 虛擬機器意外重新開機
- 在虛擬機日誌中,您會看到類似於以下內容的錯誤:
PIIX4: PM Soft Off. Good-bye - 在 Windows 事件檢視器中,您會看到訊息:
User sent the guest OS shutdown
溶液
若要判斷虛擬機器關閉電源或重新開機的原因:
- 確認虛擬機器記錄檔的位置:
- 開啟 vSphere 用戶端 並連線至 vCenter Server。
- 出現提示時提供管理憑據。
- 請確定您處於主機和叢集檢視中。
- 在 清單中選擇虛擬機。
- 按一下摘要標籤。
- 按一下編輯設定。
- 按一下選項標籤。
- 選取一般選項。
- 在右側記錄虛擬機器工作位置。
- 開啟虛擬機器記錄檔:
- 開啟瀏覽器並輸入 URL
http://<vCenter hostname>哪裡<vCenter hostname>是 vCenter Server 的 IP 或完整網域名稱。 - 出現提示時提供管理憑據。
- 按一下瀏覽在 vCenter 清查中的資料存放 區連結。
- 如 步驟 1 所述,瀏覽網頁,直到您到達適當的資料中心、資料存放區和資料夾。
- 按一下適當記錄檔的連結,並使用您偏好的編輯器開啟。
注意:在虛擬機器進行強制重設、開啟電源或執行 vMotion 時,會建立新的vmware-#.log檔案。使用「上次修改時間」列中的日期來確定記錄中斷的日誌。
- 開啟瀏覽器並輸入 URL
- 記錄虛擬機器突然重新開機或關機時執行虛擬機器的 VMware ESXi 主機名稱。日誌檔的第二行包含標識主機的條目。例如:
Mar 04 17:27:17.648: vmx| Hostname=esx02.domain.com - 確定虛擬機器是否已由客戶機作業系統關閉或重新啟動:
- 客體作業系統啟動的重設會在虛擬機器記錄中產生此事件:
Mar 04 17:04:29.638: vcpu-0| CPU reset: soft
若要繼續進行故障診斷,請與作業系統廠商接洽,以確定客體作業系統啟動重設的原因。如果作業系統廠商懷疑服務中斷是由 VMware Tools 或虛擬硬體所造成,請聯絡 VMware 支援。如果您判斷虛擬機器內的作業系統回報藍色畫面、核心錯誤或同等問題,請參閱 VMware KB 識別虛擬機器內嚴重的客體作業系統故障 (1003999)。 - 客體作業系統啟動的暫停會在虛擬機器記錄中產生此事件:
Mar 04 17:28:58.849: vcpu-0| PIIX4: PM Soft Off. Good-bye.
若要繼續進行故障排除,請與操作系統供應商聯繫,以確定來賓操作系統啟動暫停的原因。如果作業系統廠商懷疑服務中斷是由 VMware Tools 或虛擬硬體所造成,請聯絡 VMware 支援。如果您判斷虛擬機器內的作業系統回報藍色畫面、核心錯誤或同等問題,請參閱 VMware KB 識別虛擬機器內嚴重的客體作業系統故障 (1003999)。
- 客體作業系統啟動的重設會在虛擬機器記錄中產生此事件:
- 判斷虛擬機器是否已由使用者或 vSphere API 呼叫關閉或重新啟動:
- 使用者或 API 發起的重置虛擬機的請求會在虛擬機日誌檔中產生以下事件:
Mar 04 17:07:38.588: vcpu-0| CPU reset: hard
- 使用者或 API 發起的關閉虛擬機器電源要求會在虛擬機器紀錄檔中產生以下事件:
Mar 04 09:45:18.324: vmx| MKS local poweroff
- 使用者或 API 啟動的關閉虛擬機器的請求會在虛擬機器紀錄檔中產生以下事件:
2015-04-09T18:13:10.244Z| vmx| I120: Tools: sending 'OS_Halt' (state = 1) state change request
和:
2015-04-09T18:13:19.897Z| vcpu-0| I120: PIIX4: PM Soft Off. Good-bye.
- 在虛擬機器中重新啟動來賓作業系統的使用者或 API 啟動的請求會在虛擬機器紀錄檔中產生以下事件:
2015-04-09T18:09:12.346Z| vmx| I120: Tools: sending 'OS_Reboot' (state = 2) state change request
和:2015-04-09T18:09:22.238Z| vcpu-0| I120: CPU reset: soft (mode 1)
- 使用者或 API 發起的重置虛擬機的請求會在虛擬機日誌檔中產生以下事件:
- 確定虛擬機是否報告了回溯跟蹤。回溯會在虛擬機器紀錄檔中產生類似於以下內容的事件:
Mar 04 09:42:33.315: vmx| Caught signal 6 -- tid 101087 Mar 04 09:42:33.315: vmx| SIGNAL: eip 0x1019e731 esp 0xbf5ffa9c ebp 0xbf5ffac8 Mar 04 09:42:33.315: vmx| SIGNAL: eax 0x0 ebx 0x18adf ecx 0x6 edx 0x10054a00 esi 0x18adf edi 0x6 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffa9c : 0x10048dab 0x00018adf 0x00000006 0xbf5ffac8 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffaac : 0x10048d63 0xbf5ffae8 0x1000b8a0 0xbf5ffac8 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffabc : 0x10054a00 0x00000006 0x0861e1a0 0xbf5ffae8 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffacc : 0x100492c7 0x00000400 0x00000006 0x00000001 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffadc : 0x100492aa 0x1029e5a8 0x00000001 0xbf5ffc18 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffaec : 0x1019fc82 0x00000006 0xbf5ffb00 0x00000000 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffafc : 0x1019fb30 0x00000020 0x00000000 0x00000000 Mar 04 09:42:33.315: vmx| SIGNAL: stack 0xbf5ffb0c : 0x00000000 0x00000000 0x00000000 0x00000000 Mar 04 09:42:33.315: vmx| Backtrace: Mar 04 09:42:33.315: vmx| Backtrace[0] 0xbf5ff858 eip 0x805ae40 Mar 04 09:42:33.315: vmx| Backtrace[1] 0xbf5ff928 eip 0x80f735a Mar 04 09:42:33.315: vmx| Backtrace[2] 0xbf5ff9a8 eip 0x80f70e8 Mar 04 09:42:33.315: vmx| Backtrace[3] 0xbf5ffa28 eip 0x10048e5b Mar 04 09:42:33.315: vmx| Backtrace[4] 0xbf5ffa94 eip 0x7d0004f Mar 04 09:42:33.315: vmx| Backtrace[5] 0xbf5ffac8 eip 0x1019e731 Mar 04 09:42:33.315: vmx| Backtrace[6] 0xbf5ffae8 eip 0x100492c7 Mar 04 09:42:33.315: vmx| Backtrace[7] 0xbf5ffc18 eip 0x1019fc82 Mar 04 09:42:33.315: vmx| Backtrace[8] 0xbf5ffc38 eip 0x101eed95 Mar 04 09:42:33.315: vmx| Backtrace[9] 0xbf5ffc68 eip 0x101eca2d Mar 04 09:42:33.315: vmx| Backtrace[10] 0xbf5ffc78 eip 0x818e87c Mar 04 09:42:33.315: vmx| Backtrace[11] 0xbf5ffc98 eip 0x81895e7 Mar 04 09:42:33.315: vmx| Backtrace[12] 0xbf5ffcb8 eip 0x80cd940 Mar 04 09:42:33.315: vmx| Backtrace[13] 0xbf5ffcc8 eip 0x80c4f08 Mar 04 09:42:33.315: vmx| Backtrace[14] 0xbf5ffcf8 eip 0x80c4b15 Mar 04 09:42:33.315: vmx| Backtrace[15] 0xbf5ffd48 eip 0x804fd18 Mar 04 09:42:33.315: vmx| Backtrace[16] 0xbf5ffd68 eip 0x804ec14 Mar 04 09:42:33.315: vmx| Backtrace[17] 0xbf5ffda8 eip 0x1018c853 Mar 04 09:42:33.315: vmx| Backtrace[18] 00000000 eip 0x804de11 Mar 04 09:42:33.315: vmx| Unexpected signal: 6.
若要繼續故障診斷回溯,請參閱 VMware KB 解釋虛擬機器監視器和可執行檔故障 (1019471)。 - 判斷虛擬機器作業系統是否發生系統故障。 記錄包含類似以下的內容:
svga| I120: WinBSOD: ( 1) `A problem has been detected and Windows has been shut down to prevent damage ' svga| I120: WinBSOD: ( 2) `to your computer.' svga| I120: WinBSOD: ( 4) `If this is the first time you've seen this Stop error screen,' svga| I120: WinBSOD: ( 5) `restart your computer. If this screen appears again, follow' svga| I120: WinBSOD: ( 6) `these steps:' svga| I120: WinBSOD: ( 8) `Disable or uninstall any anti-virus, disk defragmentation' svga| I120: WinBSOD: ( 9) `or backup utilities. Check your hard drive configuration, ' svga| I120: WinBSOD: (10) `and check for any updated drivers. Run CHKDSK /F to check ' svga| I120: WinBSOD: (11) `for hard drive corruption, and then restart your computer. ' svga| I120: WinBSOD: (13) `Technical information: ' svga| I120: WinBSOD: (15) `*** STOP: 0x00000024 (0x00000000001904FB,0xFFFFF880069B2CE8,0xFFFFF880069B2540,0' svga| I120: WinBSOD: (16) `xFFFFF880014F5FA2)
- 請確保您沒有因為共用資源不可用而發生中斷。
- 確定虛擬機是否已由高可用性重新啟動 虛擬機監控:
vmware.log查看受影響虛擬機 (/vmfs/volumes/<datastore>/<VM directory>/vmware.log),您會看到類似於以下內容的項目:vmx| Vix: [104333 vmxCommands.c:457]: VMAutomation_Reset. Trying hard reset
相關文章:
VMware KB 判斷虛擬機器電源關閉或重新啟動的原因 (1019064)
另請參閱:
VMware KB 識別虛擬機器內的關鍵客體作業系統故障 (1003999)
VMware KB 解釋虛擬機器監視器和可執行檔故障 (1019471)
Additional Information
| VCE 系統 | 全部 |
| 元件 | vSphere |
Affected Products
VMware ESXi 7.x, VMware ESXi 8.xProducts
VxRail, C Series, Modular Infrastructure, Rack Servers, Tower Servers, XR Servers, OEM Server Solutions, ScaleIOArticle Properties
Article Number: 000205778
Article Type: How To
Last Modified: 17 Apr 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.