This website use cookies to help you have a superior and more admissible browsing experience on the website.
Loading...
There is no single universal command since it depends on which service you need to restart. Here is a quick reference:
| Service | What It Does | Restart Command |
|---|---|---|
| hostd | Manages local VM and host operations | /etc/init.d/hostd restart |
| vpxa | Handles communication with vCenter | /etc/init.d/vpxa restart |
| fdm | Runs vSphere HA functions | /etc/init.d/vmware-fdm restart |
If you are unsure which service to target, or if the host is broadly unresponsive, you can restart all management agents at once:
services.sh restart
Not sure which method fits your situation? The next section helps you match your symptom to the right fix.
Management agents fail silently. Your VMs keep running, but the host becomes a black box as you can’t manage it, monitor it, or trust what vCenter is telling you. These are the signs that a restart is the right call.
hostd, not a network issue.vpxa has likely stopped sending heartbeats to vCenter.hostd is consuming excessive memory or is caught in a loop.Before running any command, take two minutes to check your environment. The restart itself is safe, but the timing and method matter, too.
No. Restarting hostd and vpxa only affects the management layer. Your VMs run independently of the management layer. They will stay powered on, and their network traffic will not be interrupted.
That said, any in-progress management task, such as a snapshot, a power operation, or a config change, may fail or hang until the agents are back online. Wait for active tasks to complete before proceeding.
Things to Check Before Running Any Command
services.sh restart, and it will restart all services and temporarily interrupt network connections. Restart hostd, vpxa, and fdm individually instead. To check whether NSX is installed, run:esxcli software vib list --rebooting-image | grep esx-*
If vsip-esx or esx-vxlan appear in the output, NSX is installed on the host.
services.sh restart for the same reason. Use individual service restarts only.This is the most common approach. It gives you precise control over which services to restart and provides immediate feedback.
Step 1: Enable SSH on the ESXi host
If SSH is not already running, enable it via the vSphere Host Client under Host > Manage > Services > TSM-SSH > Start. Alternatively, enable it through the DCUI under Troubleshooting Options.
Step 2: Connect via SSH
Use PuTTY (Windows) or your system Terminal (macOS/Linux) and log in as root.
Step 3: Restart hostd
/etc/init.d/hostd restart
Step 4: Restart vpxa
/etc/init.d/vpxa restart
hostd before vpxa. The vpxa agent depends on hostd being available to re-register with vCenter correctly.Step 5: Verify both services are running
/etc/init.d/hostd status
/etc/init.d/vpxa status
Both should return hostd is running and vpxa is running. If either shows stopped, wait 30 seconds and run the status check again and services can take a moment to fully initialize.
Step 6: Restart the management network interface (if the host is still unreachable)
If both services are confirmed running but the host is still not responding in vCenter, restart the management VMkernel interface. This may briefly drop the management connection but does not affect VM traffic.
esxcli network ip interface set -e false -i vmk0 ; esxcli network ip interface set -e true -i vmk0
vmk0 with your actual management VMkernel interface name if it differs. You can check with esxcli network ip interface list.The Direct Console User Interface (DCUI) is the yellow-and-grey text menu displayed on the physical monitor connected to your server. Use this method when SSH is disabled or the network is too unstable to establish a remote session.
When to choose DCUI over SSH
The DCUI runs directly on the host console and does not depend on network connectivity. If you cannot open an SSH session or the Host Client won’t load, this is your most reliable fallback.
Step-by-step: Restarting agents via DCUI
services.sh restart, which restarts all services at once. If NSX or LACP is configured on this host, use Method 1 instead and restart hostd and vpxa individually.If you can still access the vSphere Host Client directly but the host appears as “Disconnected” in vCenter, you can restart the agents through the browser without touching the command line.
When this method makes sense
This method only works if the Host Client can still load. If it can’t, hostd itself is the problem, you can go back to Method 1 or Method 2.
Step-by-step: Restarting via Host > Manage > Services
If restarting the agents hasn’t restored connectivity, the problem likely goes deeper than a hung service. At this stage, shift from trying fixes to finding the root cause.
ESXi stores management logs in /var/log/. If the agents are failing to start or crashing immediately after a restart, check these two files first:
Use tail via SSH to view recent entries without opening the full log file:
View the last 50 lines of hostd.log:
tail -n 50 /var/log/hostd.log
Search for errors in vpxa.log:
grep -i "error" /var/log/vpxa.log
Look for strings like Connection refused, Failed to discover, or Resource temporarily unavailable. If you see persistent I/O errors, the agents may be stuck waiting on a storage array that is no longer responding — check whether any datastores are in an All Paths Down (APD) or Permanent Device Loss (PDL) state.
vCenter does not always automatically detect that the agents are back online. If the host still shows as “Disconnected” or “Not Responding” after a confirmed restart, trigger a manual reconnection:
If the restart commands hang indefinitely or return a Device or resource busy error, a process may be stuck in an uninterruptible state — typically caused by a storage or kernel-level failure that the management layer cannot recover from on its own.
If services.sh restart does not complete within 10 minutes, or if logs show kernel-level errors that indicate the host is no longer stable, plan for a full reboot. Since the management agents are down, you will likely need to issue the reboot through your server’s hardware management interface (iDRAC, iLO, or IPMI).
Restarting management agents resolves the immediate problem. But it doesn’t protect you from what happens during the window when your host is unmanageable, a stranded snapshot, a failed backup job, or a VM that can’t be recovered because no clean restore point exists.
Manual intervention works once. A reliable backup strategy works every time.
i2Backup is an enterprise backup solution. It protects VMware VMs without installing any agents on the host or the guest, using native VMware APIs to back up at scale with zero impact on production workloads.
Management agent failures are rarely predictable. Having a clean, recent VM backup means that when something does go wrong, recovery is a matter of minutes, not hours of troubleshooting.
Q1: Does restarting hostd affect running VMs?
No. Management agents like hostd and vpxa operate independently of the layer that runs your virtual machines. The VMs will continue to run, process data, and maintain network connectivity throughout the restart. The only thing that becomes briefly unavailable is the management interface itself.
Q2: How do I verify the agents restarted successfully?
Run the status check command via SSH:
/etc/init.d/hostd status
/etc/init.d/vpxa status
Both should return a “running” status. Also check that the host returns to a Connected state in the vCenter inventory — that confirms vpxa has successfully re-established communication with vCenter.
Q3: What is the difference between hostd and vpxa?
hostd manages the host’s local resources and VM operations directly. vpxa is the vCenter communication agent — it receives instructions from vCenter Server and passes them to hostd for execution. If hostd is the engine, vpxa is the relay.
Q4: Can I restart management agents without SSH access?
Yes. Use the DCUI via a physical console or a remote hardware management tool like iDRAC or iLO. If the vSphere Host Client is still accessible, you can also restart services directly under Host > Manage > Services.
Q5: Do I need to restart management agents after a network config change?
Usually not. But if you have applied changes to a vSphere Distributed Switch and the host remains “Out of Sync” in vCenter, restarting the agents can force a configuration refresh and resync the host’s state with the vCenter database.
A management agent failure feels more serious than it is. In most cases, your VMs are still running, and the problem is isolated to the management layer, and a targeted service restart is all it takes to restore visibility and control.
The three methods covered in this guide give you a fix for every scenario: SSH for precise control, DCUI when the network is unreliable, and the Host Client when the issue is limited to vCenter connectivity. If none of those work, the log files will point you to the real cause — whether that’s a storage issue, a credential mismatch, or something that requires a full host reboot.
One thing a service restart can’t do is recover data. If an agent failure causes a backup job to fail or leaves a snapshot stranded, you need a clean restore point to fall back on. Setting up agentless VM backups with Info2soft’s i2Backup before the next failure, not after, is the simplest way to make sure recovery is always an option.