After applying a patch or upgrading VirtualCenter Server, I cannot connect to my ESX Server hosts from VirtualCenter. I also see the error message:
Failed to install the VirtualCenter agent service
Solution:
Solution:
Either:
- The VirtualCenter agent service was installed, but did not start properly, or
- The VirtualCenter agent service was not installed, as the error message states.
To resolve this issue:
- Disable VMware High Availability (HA). Otherwise, the virtual machines might be forcibly powered down by step 2.
- At the service console, issue the command:
service mgmt-vmware restart
- At the service console, runthe command:
service vmware-vpxa restart - Reconnect the virtual machines to VirtualCenter.
- Attempt to re-enable VMware High Availability (VMware HA) within VirtualCenter. If this doesn't work, this means that vpxa did not install properly.
- At the service console, run the command:
rpm -qa | grep vpxa - At the service console, run the "rpm -e" command on the rpm file that displayed in the previous command.
rpm -e
This uninstalls the agent from the ESX host. Reconnecting the host to VirtualCenter re-installs the agent. - Reconnect the virtual machines in the usual manner within VirtualCenter.
- Re-enable VMware HA.