Symptoms
- Cannot connect ESX to VirtualCenter/vCenter Server
- Cannot connect directly to ESX Server from the VMware Infrastructure Client/vSphere Client
- You cannot stop or start a virtual machine
- A virtual machine is shown as running in vCenter Server when it is not
- vCenter Server shows the error:
Virtual machine creation may fail because agent is unable to retrieve VM creation options from the host
Purpose
For troubleshooting purposes, it may be necessary to restart the management agents on your ESX host. This article provides you with the steps to restart the management agents (mgmt-vmware and vmware-vpxa) directly on ESX or ESXi.
This article applies ESX/ESXi 3.x and ESX/ESXi 4.x.
Caution: Restarting the management agents may impact any tasks that may be running on the ESX or ESXi host at the time of the restart. For more information about identifying tasks running on an ESX or ESXi host, see Collecting information about tasks in VMware ESX and ESXi (1013003).
Resolution
Restarting the Management agents on ESX
To restart the management agents on ESX host:
- Log in to your ESX host as root from either an SSH session or directly from the console.
- Type service mgmt-vmware restart.
Caution: Ensure Automatic Startup/Shutdown of virtual machines is disabled before running this command or you risk rebooting the virtual machines. For more information, see Restarting hostd (mgmt-vmware) on ESX Server Hosts Restarts Hosted Virtual Machines Where Virtual Machine Startup/Shutdown is Enabled (1003312) and Determining whether virtual machines are configured to autostart (1000163). - Press Enter.
- Type service vmware-vpxa restart.
- Press Enter.
- Type logout and press Enter to disconnect from the ESX host.
If this process is successful, it appears as:
[root@server]# service mgmt-vmware restart
Stopping VMware ESX Server Management services:
VMware ESX Server Host Agent Watchdog [ OK ]
VMware ESX Server Host Agent [ OK ]
Starting VMware ESX Server Management services:
VMware ESX Server Host Agent (background) [ OK ]
Availability report startup (background) [ OK ]
[root@server]# service vmware-vpxa restart
Stopping vmware-vpxa: [ OK ]
Starting vmware-vpxa: [ OK ]
[root@server]#
Stopping VMware ESX Server Management services:
VMware ESX Server Host Agent Watchdog [ OK ]
VMware ESX Server Host Agent [ OK ]
Starting VMware ESX Server Management services:
VMware ESX Server Host Agent (background) [ OK ]
Availability report startup (background) [ OK ]
[root@server]# service vmware-vpxa restart
Stopping vmware-vpxa: [ OK ]
Starting vmware-vpxa: [ OK ]
[root@server]#
Note: If there are failures listed:
- The most common reason for a stopping task to fail is that the service is not started.
- If a starting task fails for the mgmt-vmware service, see Troubleshooting vmware-hostd service if it fails or stops responding (1002849).
- If a starting task fails for the vmware-vpxa service, see Troubleshooting the vCenter Server Agent service when it does not start (1006128).
Restarting the Management agents on ESXi
To restart the management agents on ESXi:
- Connect to the console of your ESXi host.
- Press F2 to customize the system.
- Login as root.
- Using the Up/Down arrows navigate to Restart Management Agents.
Note: This option is available under Troubleshooting Options in ESXi 4.1. - Press Enter.
- Press F11 to restart the services.
- When the service has been restarted, press Enter.
- Press Esc to logout of the system.
No comments:
Post a Comment