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

My Subscriptions

Loading

Knowledge Base

VMware ESX Server Host Agent is already running (1005289)

Last Updated: 3/20/2024Categories: Total Views: 16958Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

The mgmt-vmware service does not start because it incorrectly thinks that the Host Agent (hostd) is already running.

The following dialog appears when trying to start mgmt-vmware:

VMware ESX Server Host Agent is already running

Listing the running processes (ps aux) shows that hostd is not running.

Purpose

The mgmt-vmware service is the service that starts hostd. Instead of starting hostd directly, mgmt-vmware runs a script called vmware-watchdog which in turn starts hostd as a child process. After vmware-watchdog starts hostd, it waits for (monitors) it and restarts hostd if hostd fails or generates debug/support info after a number of failures.

When mgmt-vmware starts successfully and hostd is running normally, ps shows the following processes:

The watchdog (parent process):

/bin/sh /usr/bin/vmware-watchdog -s hostd -u 60 -q 5 -c /usr/sbin/vmware-hostd-support /usr/sbin/vmware-hostd -u

The hostd (child process):

/usr/lib/vmware/hostd/vmware-hostd /etc/vmware/hostd/config.xml -u

Before mgmt-vmware tells vmware-watchdog to start hostd, it first tells vmware-watchdog to check if hostd is already running. mgmt-vmware does not tell vmware-watchdog to start hostd if vmware-watchdog reports that hostd is already running.

vmware-watchdog performs the following checks to see if hostd is already running:

Is there something in the /var/run/vmware/watchdog-hostd.PID file? When vmware-watchdog starts hostd, it writes the PID of the watchdog process to this file.

Is there a vmware-watchdog hostd monitoring process already running? It checks the ps output.

When mgmt-vmware service or hostd is stopped, vmware-watchdog deletes the watchdog-hostd.PID file and exits. Sometimes, if hostd or vmware-watchdog fails to exit cleanly, hostd terminates but vmware-watchdog may still be running or may not delete the watchdog-hostd.PID, therefore preventing the mgmt-vmware service from starting again.

Resolution

Note: Before you begin, refer to Restarting the Management agents on an ESX Server (1003490) for important information on restarting the mgmt-vmware service.

This fix only applies if hostd is not running.

Run the following command to confirm that hostd is not running:

ps -auxwww | grep vmware-hostd | egrep -v "watchdog|grep"

If hostd is not running, but mgmt-vmware (vmware-watchdog) thinks it is running:

Run the following commands to stop the vmware-watchdog hostd monitoring process:

ps -auxwww | grep "watchdog -s hostd" | grep -v grep

kill <PID returned from above command>

Run the following command to delete the watchdog-hostd.PID file:

rm /var/run/vmware/watchdog-hostd.PID

Run the following command to start hostd:

service mgmt-vmware start

Related Information

To check if vmware-watchdog is monitoring a process you can use a command of the form: vmware-watchdog -r <tag>

# vmware-watchdog -r hostd

To stop a vmware-watchdog monitor process (does not stop the process being monitored) use a command of the form: vmware-watchdog -k <tag>

# vmware-watchdog -k hostd

Note: If the PID number stored in /var/run/vmware/watchdog-hostd.PID is not running, this command fails and does not delete the PID file. The file must then be deleted manually.

Note: This information can be applied to any process started by vmware-watchdog, including VPXA (vmware-vpxa service).

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
VMware Infrastructure Client 中无法提供性能数据 (5296658)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware ESX Server

Related Versions:

VMware ESX Server 3.5.x

VMware ESX Server 3.0.x

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