This article includes these sections:
- Verifying that the correct version of vCenter Server agents are installed on ESX
- Reinstalling the agents on ESX
- Reinstalling the VMware HA components on ESX
- Verifying that the correct version of vCenter Server agents are installed on ESXi
- Reinstalling the ESX host management agents and HA agents on ESXi
- Manually reinstalling the agents on ESX
- Manually installing the VirtualCenter Server agent
Note: Proceed directly to Reinstalling the agents on ESX if you see this error when you try to connect an ESX host to vCenter Server:
Unable to access the specified host, either it doesn't exist, the server software is not responding, or there is a network problem.
Verifying that the correct version of vCenter Server agents are installed on ESX
To verify that the correct version of vCenter Server is installed:
- Determine the version and build number of your vCenter Server installation.
Click Help > About from within vCenter Server.
- Right-click the ESX host and click Disconnect to disconnect the ESX host from vCenter Server.
- Log in as root to the ESX host using an SSH client.
- Run this command to determine the version of the vCenter Server agent (vpxa ) that is installed:
[root@esx-server /]# rpm -qa | grep vpxa
You see output similar to:
VMware-vpxa-2.5.0-64192
- Ensure that the output matches the information from step 1. If the versions do not match, reinstall the agents.
Reinstalling the agents on ESX
To reinstall the agents on ESX:
- Disconnect the ESX host in vCenter Server. Right-click the host and click Disconnect.
- Log in as root to the ESX host using an SSH client.
- Run this string of commands in the SSH session:
service mgmt-vmware stop && service vmware-vpxa stop && service vmware-vmkauthd stop && service xinetd restart && rpm -qa | grep -i vpxa | awk '{print $1}' | xargs rpm -ef $1 && userdel vpxuser && rpm -qa | grep -i aam | awk '{print $1}' | xargs rpm -ef $1 && service mgmt-vmware start && service vmware-vmkauthd start
Note: This is a concatenated list of commands strung together with the "&& " operator. This is useful in stringing together multiple commands as the next command does not start until the previous one has completed successfully.
These are the commands you are running:
service mgmt-vmware stop && service vmware-vpxa stop && service vmware-vmkauthd stop && service xinetd restart
stops the management services for the service console.
rpm -qa | grep -i vpxa | awk '{print $1}' | xargs rpm -ef $1
removes the vpxa agent.
userdel vpxuser
removes the vpxa user that is installed once you connect the host to vCenter Server.
rpm -qa | grep -i aam | awk '{print $1}' | xargs rpm -ef $1
removes the AAM RPM (HA) which is reinstalled when you configure HA.
service mgmt-vmware start && service vmware-vmkauthd start
restarts the services.
vmware-cmd -l
lets you know when hostd is up and running so that you can reattach it to vCenter Server.
Note: When you see a list of virtual machines output, the command sequence is complete.
- Log in to the vCenter Server using VMware Infrastructure/vSphere Client.
- Choose the ESX host from the Inventory.
- Right-click on the ESX host and click Connect. This step initiates a re-install of the agent.
Reinstalling the VMware HA components on ESX
To reinstall the VMware HA components:
- Remove the ESX host from the vCenter Server Inventory.
- Log in as root to the ESX service console.
- Run this command:
rpm -qa | grep -i aam
.
This returns two packages that are named similar to:
VMware-aam-haa-#.#.#-#
VMware-aam-vcint-#.#.#-#
- Run these commands to remove the packages returned by Step 3:
rpm -e VMware-aam-vcint-#.#.#-#
rpm -e VMware-aam-haa-#.#.#-#
Note: Ensure that you remove the VMware-aam-vcint-#.#.#-#
package first.
- Run this command:
rpm -qa | grep -i vpxa
A package named VMware-vpxa-#.#.#-#####
is returned.
- Run this command to remove the package returned by Step 5:
rpm -e VMware-vpxa-#.#.#-#####
- Try adding the host to the newly created cluster to see if this has resolved the issue.
Verifying that the correct version of vCenter Server agents are installed on ESXi 3.5 and ESXi 4.x
Note: vpxa cannot be uninstalled on an ESXi 5.0 host as it is now a part of the esxi-base package. Therefore, verifying the version and the uninstall/reinstall process does not apply to ESXi 5.0.
To verify that the correct version of vCenter Server agents are installed:
- Determine the version and build number of your vCenter Server installation.
Click Help > About from within vCenter Server.
- Right-click the ESXi host and click Disconnect to disconnect the ESXi host from vCenter Server.
- Log in to ESXi Shell. For more information, see Using ESXi Shell in ESXi (311213).
- Run this command to determine the version of the vCenter Server agent (vpxa ) that is installed:
For ESXi 3.5 and ESXi 4.x:
[root@esx-server /]# cat `ls -t /var/log/vmware/vpx/vpxa*` | head -1
You see output similar to:
Log for VMware VirtualCenter Agent, pid=1976, version=2.5.0, build=build-147633, option=Release, section=394
- Ensure that the output matches the information from step 1. If the versions do not match, reinstall the agents.
Reinstalling the ESX host management agents and HA agents on ESXi
To reinstall the ESX host management agents and HA agents:
- Right-click the ESXi host and click Disconnect. This disconnects the ESXi host from the vCenter Server Inventory.
- Log in to ESXi Troubleshooting Mode. For more information, see Using ESXi Shell in ESXi (311213).
- Uninstall the vpxa and aam components from the VMware ESXi host by running these commands:
For ESXi 3.5 and ESXi 4.x:
/opt/vmware/uninstallers/VMware-vpxa-uninstall.sh
/opt/vmware/uninstallers/VMware-aam-ha-uninstall.sh
Note: Run the cat /etc/shadow
command to verify if the vpxuser is removed by the uninstall script. If the vpxuser is not removed, run userdel vpxuser
.
For ESXi 5.0:
Note: This command uninstalls the HA agent (FDM) on ESXi 5.0 as aam functionality is no longer used for HA on vCenter Server 5.0. For more information on HA (Fault Domain Manager) troubleshooting steps, see Troubleshooting VMware High Availability (HA) issues in VMware vCenter Server 5.x and 6.0 (2004429).
cp /opt/vmware/uninstallers/VMware-fdm-uninstall.sh /tmp
chmod +x /tmp/VMware-fdm-uninstall.sh
/tmp/VMware-fdm-uninstall.sh
- Right-click the ESXi 3.5 /ESXi 4.x host and click Connect. This initiates a re-install of the vpxa agent.
Note: In ESXi 5.0, cannot re-install vpxa as it is now a part of esxi-base package.
- Add the host to the appropriate cluster. This initiates a re-install of the aam agent. If the agent fails to automatically install when connecting the ESX host in the vCenter Server:
- Verify that
/tmp/vmware-root
exists on the ESX host. vCenter stages the vpxa RPM in this folder. To add this directory, run the command:
mkdir -p /tmp/vmware-root
- For more information on investigating disk space problems on ESX hosts, see Investigating disk space on an ESX or ESXi host (1003564).
If you experience problems with this method, manually re-install the agents.
Manually reinstalling the agents on ESX
To manually reinstall the agents:
- Disconnect the ESX host in VirtualCenter. Right-click the Server and click Disconnect.
- Log in as root to the ESX host using an SSH client.
- Run these commands to get the names of the packages that need to be removed:
[root@esx-server /]# rpm -qa | grep vpxa
VMware-vpxa-2.5.0-64192
[root@esx-server /]# rpm -qa | grep aam
LGTOaama-5.1.2-1
LGTOaamvm-5.1.2-1
Note: The *aam * packages might not be installed.
- Run this command for each of the packages:
[root@esx-server /]# rpm -e PackageName
Where PackageName
is the name of the package that you are removing.
Note: If you remove the aam agent from a host, you need to also remove vpxa .
- Reconnect the ESX host in VirtualCenter. VirtualCenter automatically installs the required packages.
Manually installing the VirtualCenter Server agent
If the installation fails, it may be necessary to manually install the agent.
To manually install the agent:
- Disconnect the ESX host in VirtualCenter. Right-click the host and click Disconnect.
- Log in as root to the ESX host using an SSH client.
- Run these commands to get the names of the packages that need to be removed:
[root@esx-server /]# rpm -qa | grep vpxa
VMware-vpxa-2.5.0-64192
[root@esx-server /]# rpm -qa | grep aam
LGTOaama-5.1.2-1
LGTOaamvm-5.1.2-1
Note: The LGTOaam * packages might not be installed.
- Run this command for each package:
[root@esx-server /]# rpm -e PackageName
Where PackageName
is the name of the package that you are removing.
- Log in to the vCenter Server as Administrator.
- Open the folder for the VirtualCenter/vCenter Server installation.
- For VirtualCenter 2.0.x, the default folder is C:\Program Files\VMware\VMware VirtualCenter 2.0\upgrade
- For VirtualCenter 2.5.x, the default folder is C:\Program Files\VMware\Infrastructure\VirtualCenter Server\upgrade
- For vCenter Server 4.x, the default folder is C:\Program Files\VMware\Infrastructure\VirtualCenter Server\upgrade
- For vCenter Server 5.x, the default folder is C:\Program Files\VMware\Infrastructure\VirtualCenter Server\upgrade
- For vCenter Server 6.0, the default folder is C:\Program Files\VMware\vCenter Server\vpxd\upgrade
- For vCenter Server Appliance 5.x, the default folder is /usr/lib/vmware-vpx/upgrade
- Open the
upgrade
sub-folder and look for bundleversion.xml
file. This file lists the bundle name for the ESX server version installed on the ESX host. For example, if you are adding an ESX Server 2.5.2 host, you must use bundle 4. The bundle file is a self-extracting shell script.
- Using the bundle number, locate this file:
vpx-upgrade-esx-N-linux-version
Where N
is the bundle number and version
is the build number for VirtualCenter.
- Use a secure copy utility to copy this file to the ESX host.
Note: You do not need to copy the .sig
file.
- Log in as root to the ESX host using an SSH client.
- Make the script executable by running this command:
[root@esxhost root]# chmod +x vpx-upgrade-esx-N-linux-32042
- Run this script to install the appropriate RPM and start the vpxa daemons on the ESX host:
[root@esxhost root]# sh ./vpx-upgrade-esx-N-linux-32042
- Log in to the vCenter Server using the VI Client or the vSphere Client.
- Connect to the ESX host by selecting it from the Inventory. Right-click the host and click Connect.