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 中重新启动管理代理以解决虚拟机创建可能失败,因为代理无法从主机检索虚拟机创建选项

Summary: 关于当管理员无法直接连接到 ESXi 主机或在 vCenter Server 下进行管理时,解决“VMware ESXi 解决虚拟机创建可能失败,因为代理无法从主机检索虚拟机创建选项”的分步指南。

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. 使用向上和向下箭头转至 Troubleshooting Options,然后选择 Restart Management Agents
  5. Enter 键。
  6. F11 键重新启动服务。
  7. 当服务重新启动时,按 Enter 键。
  8. Esc 键退出登录。
提醒:您还可以使用 Host Client 来重新启动服务。在 Host Client 中,依次选择 HostManageServices,然后选择要重新启动的服务。


使用 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 Agent 服务:
/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 主机迁出,并将主机置于维护模式(如果可能的话)。
  • 如果您不确定 ESXi 主机上是否已安装 NSX for vSphere,请运行以下命令进行验证:
    • esxcli software vib list --rebooting-image | grep esx-*
  • 查找以下 VIB 以确定 ESXi 主机上是否安装了 NSX:
vsip-esx
esx-vxlan
  • 如果在 View 环境中使用共享显卡(VGPU、vDGA、vSGA),请勿使用 services.sh。这会关闭 xorg 服务,该服务负责来宾操作系统级别的显卡。将显卡从来宾操作系统中移除会导致使用共享显卡的 VDI 工作负载崩溃。如果您未处于维护模式,验证您仅将共享显卡用于重新启动 hostdvpxa

有关其他信息,请参阅 VMware 知识库文章:在 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