Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

在 VMware ESXi 中透過重新啟動管理代理程式以解決建立虛擬機器問題時可能會失敗,因為代理程式無法從主機擷取 VM 建立選項

Summary: 解決「VMware ESXi to resolve Virtual machine creation may fail because agent is unable to retrieve VM creation options from the host」的逐步指南,這會導致系統管理員無法直接連線至 ESXi 主機或在 vCenter Server 下進行管理。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

vCenter Server 顯示錯誤:

Virtual machine creation may fail because agent is unable to retrieve VM creation options from the host.
警告:如果已在 vSAN 網路上設定 LACP,請勿在執行 vSAN 的 ESXi 主機上重新啟動管理代理程式。
  • 若重新啟動管理代理程式,可能會影響重新啟動時正在 ESXi 主機上執行的所有工作。
  • 重新啟動主機 daemon hostd 服務或 services.sh 前,請檢查是否有任何儲存裝置問題。

Cause

ESXi 主機上的代理程式或服務可能已停止。

Resolution

使用 Direct Console User Interface (DCUI) 在 ESXi 中重新啟動管理代理程式

  1. 連線至 ESXi 主機的主控台。
  2. F2 以自訂系統。
  3. 以 root 登入
  4. 使用向上和向下箭頭移至故障診斷選項,然後選取重新啟動管理代理程式
  5. Enter 鍵。
  6. F11 重新啟動服務。
  7. 當服務重新啟動時,請按 Enter
  8. Esc 登出。
注意:您也可以使用主機用戶端重新啟動服務。在主機用戶端中,選取主機管理,然後選取服務,接著選取要重新啟動的服務。


使用 ESXi Shell 或 SSH,在 ESXi 中重新啟動管理代理程式

  1. 以 root 登入 ESXi Shell 或 SSH。若要啟用 ESXi Shell 或 SSH,請參閱在 ESXi 6.x、7.x 和 8.x 中啟用 ESXi Shell (2004746) 此超連結會帶您前往 Dell Technologies 以外的網站。
  2. 使用下列命令重新啟動 ESXi 主機精靈和 vCenter 代理程式服務:
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
警示
  • 如果 LACP 已啟用並設定,請勿使用 services.sh 命令重新啟動管理服務。請使用 /etc/init.d/module restart 命令重新啟動獨立服務。
  • 如果問題未解決,且您正在重新啟動 services.sh 指令檔一部分的所有服務,請先停機,再繼續執行指令檔。
  • 如果已在環境中設定 NSX,請勿執行 /sbin/services.sh restart 命令,因為這會重新啟動 ESXi 主機上的所有服務。
  • 如果您必須在 ESXi 主機上重新啟動管理代理程式,請個別重新啟動 vpxahost.dfdm
  • 如果重新啟動個別管理代理程式無法運作,導致您還是必須執行 /sbin/services.sh restart 命令,請將所有虛擬機器從 ESXi 主機移轉出,並盡可能讓主機處於維護模式。
  • 如果您不確定 vSphere 的 NSX 是否已安裝在 ESXi 主機上,請執行此命令加以驗證:
    • esxcli software vib list --rebooting-image | grep esx-*
  • 尋找下列 VIB 以判斷 NSX 是否已安裝在 ESXi 主機上:
vsip-esx
esx-vxlan
  • 如果在檢視環境中使用共用圖形 (VGPU、vDGA、vSGA),請勿使用 services.sh。這會關閉 xorg,這是在客體作業系統層級負責處理圖形的服務。從客體作業系統中斷圖形處理,會導致使用共用圖形處理器的 VDI 工作負載當機。若確認您使用共用圖形,且未處於維護模式時,請僅重新啟動 hostdvpxa

請參閱 VMware KB 文章,以取得更多資訊:在 ESXi 中重新啟動管理代理程式 (1003490) 此超連結會帶您前往 Dell Technologies 以外的網站。

Additional Information

Article Properties


Affected Product

VxRail, VxRail Appliance Family

Product
VxRail 460 and 470 Nodes, VxRail G410, VxRail G Series Nodes, VxRail E Series Nodes, VxRail E560, VxRail E560F, VxRail G560, VxRail G560F, VxRail Gen2 Hardware, VxRail P Series Nodes, VxRail P470, VxRail P570, VxRail P570F, VxRail S Series Nodes , VxRail S470, VxRail S570, VxRail Software, VxRail V Series Nodes, VxRail V470, VxRail V570, VxRail V570F ...
Last Published Date

16 Feb 2024

Version

9

Article Type

Solution