Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

Products and Accounts

Support

Knowledge

Communities

Success

Learning

My Subscriptions

Loading

Knowledge Base

Restarting the Management agents in ESXi (1003490)

Last Updated: 3/12/2021Categories: TroubleshootingTotal Views: 386076Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglishGerman

170 like this article

Subscribe to get an email
newsletter with new updates

170 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Symptoms

Cannot connect directly to the ESXi host or manage under vCenter server.

vCenter Server displays the error:

Virtual machine creation may fail because agent is unable to retrieve VM creation options from the host.

Purpose

For troubleshooting ESXi connectivity issue, restart the management agents on your ESXi host.

Warning: If LACP is configured on the vSAN network, do not restart management agents on ESXi hosts running vSAN.

Restarting the management agents may impact any tasks that are running on the ESXi host at the time of the restart.

Check for any storage issues before restarting the Host deamon hostd service or services.sh

Resolution

Restart Management agents in ESXi Using Direct Console User Interface (DCUI):

Connect to the console of your ESXi host.

Press F2 to customize the system.

Log in as root.

Use the Up/Down arrows to navigate to Troubleshooting Options > Restart Management Agents.

Press Enter.

Press F11 to restart the services.

When the service restarts, press Enter.

Press Esc to log out.

Note: You can also restart services using the Host Client. In Host Client, select Host >> Manage >> Services and select the service to restart.

Restart Management agents in ESXi Using ESXi Shell or Secure Shell (SSH):

Log in to ESXi Shell or SSH as root.

For Enabling ESXi Shell or SSH, see Using ESXi Shell in ESXi 5.x and 6.x (2004746).

Restart the ESXi host daemon and vCenter Agent services using these commands:

/etc/init.d/hostd restart

/etc/init.d/vpxa restart

Alternatively:

To reset the management network on a specific VMkernel interface, by default vmk0, run the command:

esxcli network ip interface set -e false -i vmk0; esxcli network ip interface set -e true -i vmk0

Note: Using a semicolon (;) between the two commands ensures the VMkernel interface is disabled and then re-enabled in succession. If the management interface is not running on vmk0, change the above command according to the VMkernel interface used.

To restart all management agents on the host, run the command:

services.sh restart

Caution:

If LACP is enabled and configured, do not restart management services using services.sh command. Instead restart independent services using the /etc/init.d/module restart command.

If the issue is not resolved, and you are restarting all the services that are a part of the services.sh script, take a downtime before proceeding to the script.

If NSX is configured in the environment, do not run the /sbin/services.sh restart command because this will restart all services on the ESXi host. If you need to restart the management agents on the ESXi host, restart vpxa, host.d, and fdm individually. If you also need to run the /sbin/services.sh restart command because restarting each management agent does not work, then migrate all the VMs off the ESXi host and put the host in maintenance mode if possible.

If you are unsure that NSX for vSphere is installed on an ESXi host, run this command to verify:

esxcli software vib list --rebooting-image | grep esx-*

Look for the following VIBs to determine if NSX is installed on the ESX host:

vsip-esx

esx-vxlan

If using shared graphics in a View environment (VGPU, vDGA, vSGA), do not use services.sh. This will shut down the xorg service which is responsible for graphics at the guest OS level. By ripping the graphics out of the guest OS you will in term cause the crash of your VDI workload using the shared graphics. Ensure you are using shared graphics to only restart hostd, and vpxa if you are not in maintenance mode.

Related Information

For translated versions of this article, see:

Español: Reiniciando los agentes de administración en un Servidor ESX o ESXi (1029041)

Português: Como reiniciar os agentes de gerenciamento em um host ESXi ou ESX (2045125)

日本語: ESX および ESXi のマネジメント エージェントの再起動について (1037058)

Deutsch: Neustarten der Management Dienste auf einem ESX oder ESXi Server (2000987)

简体中文: 在 ESXi 或 ESX 主机上重新启动管理代理 (2048205)

VMware Skyline Health Diagnostics for vSphere - FAQ
Determining whether virtual machines are configured to autostart
Troubleshooting vmware-hostd service if it fails or stops responding on an ESX/ESXi host
Restarting hostd (mgmt-vmware) on ESX hosts restarts hosted virtual machines where virtual machine Startup/Shutdown is enabled
Service mgmt-vmware restart may not restart hostd in ESX/ESXi
Troubleshooting the vCenter Server Agent when it does not start
“vm-support” command in ESX/ESXi to collect diagnostic information
Collecting information about tasks in VMware ESXi/ESX
Reiniciar los agentes de administración en ESXi
ESXi の管理エージェントの再起動
Neustarten der Management Dienste auf einem ESX oder ESXi Server
Using ESXi Shell in ESXi 5.x and 6.x
Performing a Reconfigure for VMware HA operation on a master node causes an unexpected virtual machine failover
Reiniciando os agentes de gerenciamento em um ESXi
在 ESXi 中重新启动管理代理
NULL 値の serial0.fileName をマッピングを試みているときに ESXi hostd サービスが応答しなくなる
VMware vCenter Server 上でホストまたは仮想マシンにアラートアイコンがついているにもかかわらず、該当するアラームが発報されていない
iLO ファームウェアをアップデートすると HP Proliant Gen8 サーバから誤ったアラームが通知される
NFS データストアのアンマウントが次のエラーで失敗する： Sysinfo set operation VSI_MODULE_NODE_mnt_umount failed with error status Busy
Neustart der Management-Agents auf einem ESXi- oder ESX-Host
Collecting diagnostic information for VMware ESX/ESXi
Powering off an unresponsive virtual machine on an ESXi host

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglishGerman

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware vSphere ESXi

VMware ESXi

VMware ESX Server

Related Versions:

VMware vSphere ESXi 7.0.x

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

VMware ESXi 4.1.x Installable

VMware ESXi 4.1.x Embedded

VMware ESXi 4.0.x Installable

VMware ESXi 4.0.x Embedded

VMware ESXi 3.5.x Installable

VMware ESXi 3.5.x Embedded

VMware ESX Server 3.5.x

VMware ESX Server 3.0.x

VMware ESX 4.1.x

VMware ESX 4.0.x

view all

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant