Restarting Management Agents ESXi: Every Method, Every Warning, and When Restart ESXi Management Agents Is the Right Move
In VMware ESXi, the management agents (hostd and vpxa) are the critical background services that allow administrators to interact with the host through the vSphere Client, vCenter Server, and APIs. When these agents become unresponsive, symptoms include hosts appearing as “disconnected” in vCenter, failed vMotion operations, or inability to manage VMs through the GUI. Restarting the agents is often the safest and fastest way to restore functionality without rebooting the entire host.
This guide covers all supported methods — from GUI options in the Host Client, to CLI commands via ESXi Shell and SSH, to DCUI (Direct Console User Interface) workflows. It also explains when each method is appropriate, how to avoid disrupting running workloads, and what precautions to take before restarting. By the end, you’ll have a safe, step‑by‑step reference for recovering ESXi management connectivity while keeping VM uptime intact.
What Are ESXi Management Agents?
hostd: The Core Host Management Daemon
- ⚙️ hostd is the primary management daemon running on every ESXi host.
- 🖥️ Handles local host operations: VM power on/off, hardware configuration changes, storage management, snapshots, and VMware Host Client communication.
- ❌ If hostd hangs or crashes, the host becomes unresponsive to vSphere Client, vCenter, and web browser connections.
- ✅ Important: The VMkernel and all running workloads continue unaffected — only management access is lost.
vpxa: The vCenter Agent
- 🔗 vpxa (vCenter Proxy Agent) bridges communication between ESXi hosts and vCenter Server.
- 📡 Relays commands from the vpxd service in vCenter down to hostd.
- ❌ If vpxa fails, the host shows as “Not Responding” or “Disconnected” in vCenter.
- ✅ Direct connections via VMware Host Client may still work. Restarting vpxa restores vCenter connectivity without impacting hostd or running VMs.
Other Management Services
- 🛡️ fdm → vSphere HA agent, manages VM restart after host failure in HA clusters.
- 🔍 sfcbd → CIM/WBEM broker for hardware monitoring.
- 🌐 slpd → Service Location Protocol daemon for discovery.
- 📊 SNMP → Network monitoring agent.
- ⚠️ Best practice: Restart these individually using the init.d mechanism — never use
services.sh restartin production, as it disrupts all services at once.
📊 ESXi Management Agent Reference Table
| Service | Binary / Command | Role | Restart Impact on VMs |
|---|---|---|---|
| hostd | /etc/init.d/hostd restart | Local host management, VM operations | None — VMs continue running |
| vpxa | /etc/init.d/vpxa restart | vCenter Server communication | None — vCenter reconnects after restart |
| fdm | /etc/init.d/fdm restart | vSphere HA failover management | None — HA briefly unavailable |
| sfcbd | /etc/init.d/sfcbd restart | CIM hardware monitoring | None |
| slpd | /etc/init.d/slpd restart | SLP service discovery | None |
When to Restart Management Agents on ESXi
Symptoms That Indicate a Management Agent Restart Is Needed
- 🖥️ ESXi host shows “Not Responding” or “Disconnected” in vCenter while VMs continue running → definitive sign of a vpxa failure or lost connectivity between host and vCenter.
- ❌ vSphere Client cannot connect directly to the host (timeout / “unable to connect” error) → indicates a hostd failure.
- ⚡ VM actions (power on/off, snapshot, vMotion) fail or hang in vCenter → hostd is stuck processing requests.
- 📌 Error: “Virtual machine creation may fail because the agent is unable to retrieve VM creation options from the host” → resolved by restarting hostd.
- 👀 VMs appear inaccessible in vCenter but are visible/running when connected directly to the host → hostd/vpxa desynchronization.
- 🔄 vCenter reports host entering/exiting maintenance mode without admin action → vpxa communication loop error.
When NOT to Restart Management Agents
⚠️ Broadcom KB 320280 explicitly warns against using services.sh restart or the DCUI Restart Management Agents option in certain environments. Doing so can cause immediate outages:
- 📦 vSAN environments → Restarting all services disrupts the vSAN storage layer. Restart hostd and vpxa individually only.
- 🔗 LACP (Link Aggregation Control Protocol) →
services.sh restartresets networking stack, breaking LACP uplinks. Restart individual services only. - 🛡️ NSX configured hosts → Restarting all services also restarts NSX VIBs, disrupting firewall and overlay networking. Check with:
esxcli software vib list | grep -E 'nsx|vsipfwlib'If NSX is present → restart vpxa, hostd, fdm individually only.
- 🎨 Shared graphics (VMware View with vGPU, vDGA, vSGA) →
services.sh restartstops xorg, crashing all VDI sessions. Restart hostd and vpxa manually, and only when host is not in maintenance mode.
Method 1: Restart ESXi Management Agents via DCUI
When to Use DCUI
- 🖥️ The Direct Console User Interface (DCUI) is the safest option when network connectivity is unstable or SSH is disabled.
- 🔌 Requires physical console access (monitor + keyboard) or remote console via iDRAC, iLO, or IPMI.
- ⚙️ The DCUI Restart Management Agents option restarts hostd and vpxa sequentially.
Step‑by‑Step: DCUI Restart
- 1. 💻 Connect to the ESXi host console — either physically or via remote console (iDRAC/iLO/IPMI).
- 2. ⌨️ Press F2 to enter Customize System / View Logs. Enter root credentials when prompted.
- 3. 🔍 Use arrow keys to navigate to Troubleshooting Options → press Enter.
- 4. 🔧 Select Restart Management Agents → press Enter.
- 5. ⚡ Press F11 to confirm. Console shows:
- 6. ✅ Press Enter after completion, then Esc to return to the DCUI main screen.
- 7. 🔄 Verify the host reconnects to vCenter within 1–2 minutes. Check the vCenter events log for reconnection.
⚠️ Warning: Do not use this method if the host is part of:
- 📦 vSAN clusters → disrupts storage layer.
- 🔗 LACP uplinks → breaks teamed NICs.
- 🛡️ NSX deployments → restarts NSX VIBs, disrupting firewall/overlay networking.
- 🎨 Shared graphics (VDI with vGPU/vDGA/vSGA) → stops xorg, crashing VDI sessions.
👉 In these environments, use individual service restarts (Method 2) instead.
Method 2: Restart ESXi Management Agents via SSH
(Keywords: esxi restart management agents, restart esxi management agents)
Enable SSH on the ESXi Host
SSH is disabled by default. Enable it using one of these methods:
- 🖥️ DCUI → Troubleshooting Options → Enable SSH → Press Enter.
- 🌐 vSphere Client → Host → Actions → Services → Enable Secure Shell (SSH).
- ⚙️ VMware Host Client → Host → Manage → Services →
TSM-SSH→ Start.
Restart Individual Management Agents via SSH (Recommended for All Environments)
- 1. 🔑 Connect to the ESXi host with an SSH client (PuTTY, OpenSSH, Windows Terminal) using root credentials.
- 2. Run the following commands depending on the issue:
/etc/init.d/hostd restart/etc/init.d/vpxa restart/etc/init.d/vpxa restart/etc/init.d/fdm restart- 3. ✅ Verify services are running:
chkconfig --list | grep -E 'hostd|vpxa|fdm'- 4. 🔍 Check process status:
esxcli system process list | grep -E 'hostd|vpxa'services.sh restart: When It Is Safe and When It Is Not
- ⚡
/sbin/services.sh restartrestarts all management services at once. Faster, but riskier.
Safe to use:
- Standalone ESXi hosts.
- No vSAN, no LACP, no NSX, no VMware View shared graphics.
Never use:
- 📦 vSAN → disrupts storage.
- 🔗 LACP → breaks uplinks.
- 🛡️ NSX → restarts firewall/overlay VIBs.
- 🎨 Shared graphics (VDI) → stops xorg, crashes sessions.
👉 If unsure whether NSX is installed, check first:
esxcli software vib list | grep -E 'nsx|vsipfwlib'⚠️ If NSX VIBs are present → restart hostd, vpxa, fdm individually only. If services.sh restart is unavoidable, migrate all VMs off the host and place it in maintenance mode before running the command.
Method 3: Restart Management Agents ESXi via VMware Host Client
Step‑by‑Step: ESXi Host Client Service Restart
The VMware Host Client provides a GUI‑based way to restart individual services — ideal when SSH is disabled and DCUI access is unavailable.
- 1. 🌐 Open a web browser → navigate to:
https://[ESXi-host-IP-address]Enter root credentials to log in.
- 2. 📂 In the left navigation pane, click Host → Manage.
- 3. ⚙️ Select the Services tab. A full list of ESXi services appears with their current status.
- 4. 🔗 Locate vpxa (VMware vCenter Agent) → click the service name → click Restart in the Actions toolbar.
- 5. 🔧 Repeat for hostd (VMware ESXi Daemon / Host Agent) if direct connection issues persist.
- 6. ✅ Monitor the service status column — it should transition from Stopped → Running within seconds.
📌 Note: Service names differ between Host Client and SSH:
- In SSH →
vpxaandhostd. - In Host Client → VMware vCenter Agent and VMware ESXi Daemon.
Method 4: Restart ESXi Management Agents via PowerCLI
Restart vpxa via PowerCLI for Multi‑Host Environments
PowerCLI enables scripted agent restarts across multiple hosts — essential in environments with 10+ ESXi hosts, where per‑host DCUI or SSH access is impractical.
Step 1. Connect to vCenter or ESXi Host
Connect-VIServer -Server 192.168.1.10Step 2. List Services on Target Host (refresh data first)
Get-VMHostService -VMHost 192.168.1.100 -RefreshStep 3. Restart vpxa on a Single Host
$vpxa = Get-VMHostService -VMHost 192.168.1.100 -Refresh | Where-Object { $_.Key -eq "vpxa" }
Restart-VMHostService -HostService $vpxa -Confirm:$falseStep 4. Restart hostd on a Single Host
$hostd = Get-VMHostService -VMHost 192.168.1.100 -Refresh | Where-Object { $_.Key -eq "hostd" }
Restart-VMHostService -HostService $hostd -Confirm:$falseStep 5. Restart vpxa Across All Disconnected Hosts in a Cluster
Get-Cluster "ClusterName" | Get-VMHost | Where-Object { $_.ConnectionState -eq "NotResponding" } | ForEach-Object {
$vpxa = Get-VMHostService -VMHost $_ -Refresh | Where-Object { $_.Key -eq "vpxa" }
Restart-VMHostService -HostService $vpxa -Confirm:$false
Write-Host "Restarted vpxa on: $($_.Name)"
}⚠️ Best Practice Notes:
- 🛡️ Use PowerCLI for bulk operations only when you’re confident in service dependencies.
- ✅ Always refresh service data before restart.
- 🔍 Monitor vCenter events after execution to confirm host reconnections.
After the Restart: Verification and Log Review
Verify Host Reconnects to vCenter
- ⏱️ After restarting management agents, the host should reconnect within 2–3 minutes.
- 📊 In vCenter → Monitor → Events → look for:
- “ESXi host connected”
- “vSphere HA agent on [host] completed reconfiguration”
- 💻 Via PowerCLI:
Get-VMHost 192.168.1.100 | Select-Object Name, ConnectionState, PowerStateExpected output:
ConnectionState: ConnectedPowerState: PoweredOnping [vCenter-IP](Run from ESXi SSH shell).
Review Management Agent Logs After Restart
If the restart fixes the immediate issue but it recurs later, investigate logs for root cause:
- 📖 hostd log (local management activity):
tail -f /var/log/hostd.log- 🔗 vpxa log (vCenter communication):
tail -f /var/log/vpxa.log- 🔍 Search for errors before restart:
grep -i "error\|fatal\|warn" /var/log/hostd.log | tail -100Common root causes found in logs:
- 📦 Storage I/O latency → hostd queues fill.
- 🧠 Memory exhaustion → ESXi kernel OOM killer terminates hostd/vpxa.
- 🌐 NFC (Network File Copy) overload → backup operations exhaust hostd connection pool.
Escalation Path When Management Agent Restart Does Not Resolve the Issue
If agents crash repeatedly:
- 🧠 Check host memory → If over‑committed, increase RAM or reduce VM consolidation ratio.
- 📦 Check storage latency → VMFS datastore latency >20 ms overloads hostd queues. Investigate HBAs, drivers, datastore health.
- 🛠️ Check ESXi patch level → Some builds have known hostd memory leaks/crash bugs. Review Broadcom release notes.
- 🔄 Final step → If unresolved, schedule a host maintenance window and reboot the ESXi host. A full reboot reinitializes kernel state and clears conditions that agent restarts cannot fix.
Management Agent Restarts and VMFS Data Integrity
Do Management Agent Restarts Affect Running VMs?
- ✅ Running VMs are not impacted by restarting hostd or vpxa.
- ⚙️ The VMkernel continues scheduling VM execution independently of management agents.
- 🌐 Network traffic and storage I/O remain uninterrupted.
- ⏱️ Temporary impact → management connectivity (vSphere Client, vCenter visibility, remote console) drops briefly and restores once agents restart.
- ⚠️ Operational caveat → any in‑progress tasks (snapshots, disk provisioning, vMotion) fail if they were mid‑operation during the restart.
When Management Agent Issues Precede or Accompany VMFS Failures
- 📦 Management agent crashes often correlate with storage I/O degradation.
- 🛑 If hostd is overwhelmed by latency, snapshot consolidation may be interrupted → leaving orphaned delta VMDK files.
- ⚠️ Severe storage events can interrupt VMFS metadata writes, leaving the datastore partially consistent.
- 🔄 A forced host reboot after persistent hostd crashes may interrupt in‑flight VMFS operations → risking metadata corruption.
Recovering VMFS and VMDK Data After Management Agent‑Related Storage Failures with DiskInternals VMFS Recovery™
When VMFS datastores become inaccessible due to agent crashes or storage events, standard ESXi tools cannot repair VMFS‑level damage.
🛡️ DiskInternals VMFS Recovery™ provides:
- 💾 VMDK mounting without a running ESXi host.
- 🔧 VMFS volume reconstruction from damaged or partially overwritten metadata.
- 📂 VMX configuration file recovery from datastores that went offline during hostd crashes.
- 🌐 Remote ESXi server connections via IP + credentials for direct datastore scanning once management connectivity is restored.
Workflow:
- 1. Connect to the affected VMFS volume.
- 2. Run a full scan.
- 3. Locate VMX and VMDK files in the recovery browser.
- 4. 👀 Preview file integrity in read‑only mode.
- 5. 📤 Extract recovered files to a safe destination (local drive, network share, or FTP).
Ready to get your data back?
To start recovering your data, documents, databases, images, videos, and other files, press the FREE DOWNLOAD button below to get the latest version of DiskInternals VMFS Recovery® and begin the step-by-step recovery process. You can preview all recovered files absolutely for FREE. To check the current prices, please press the Get Prices button. If you need any assistance, please feel free to contact Technical Support. The team is here to help you get your data back!
FAQ
Does restarting ESXi management agents affect running VMs?
No. Running VMs continue operating without interruption. Management connectivity (vSphere Client, vCenter visibility) drops temporarily and restores within minutes. Any tasks running through hostd at the moment of restart — snapshots, vMotion, disk provisioning — will fail and must be restarted manually.What is the difference between restarting hostd and vpxa?
Restarting hostd restores local host management — direct vSphere Client and VMware Host Client connectivity. Restarting vpxa restores vCenter communication — fixes the "Not Responding" or "Disconnected" status in vCenter. In most cases, restart vpxa first; if the issue persists, restart hostd as well.When should I not use services.sh restart?
Never use services.sh restart on hosts running vSAN, LACP link aggregation, NSX, or VMware View shared graphics (vGPU/vDGA/vSGA). Use individual service restarts (/etc/init.d/hostd restart and /etc/init.d/vpxa restart) exclusively on these hosts.
