Tuesday, February 13, 2007

Failed to install VirtualCenter Agent service

Problem:

Upon upgrading VMware VirtualCenter 2.0.1 patch 33643, I was trying to connect to the VI3 host back to VirtualCenter, but one host keep giving an error "Failed to install VirtualCenter Agent service".

Solution:

VMware VirtualCenter is having problem to stop and uninstall the VirtuaCenter Agent service in the VI3 host. All we need to do is manually stop the service, uninstall the agent, and reconnect the host. A new VirtualCenter Agent would be able to install in the host upon reconnection.

___________________________________

To double check the version of the VirtualCenter Agent:

[root@ESX3 root]# rpm -qa grep vpxa

VMware-vpxa-2.0.1-32042

To stop mgmt-vmware:

[root@ESX3 root]# service mgmt-vmware stop

Stopping VMware ESX Server Management services:

VMware ESX Server Host Agent Services [ OK ]

VMware ESX Server Host Agent Watchdog [ OK ]

VMware ESX Server Host Agent [ OK ]

To stop vpxa:

[root@ESX3 root]# /etc/init.d/vmware-vpxa stop

Stopping vmware-vpxa: [ OK ]

Uninstall vpxa:

[root@ESX3 root]# rpm -e VMware-vpxa-2.0.1-32042

Stopping vmware-vpxa: [ OK ]

warning: /etc/vmware/vpxa.cfg saved as /etc/vmware/vpxa.cfg.rpmsave

To make sure vpxa is no longer there:

[root@ESX3 root]# rpm -qa grep vpxa

[root@ESX3 root]# rpm -qa grep vpx

Restart up mgmt-vmware service:

[root@ESX3 root]# service mgmt-vmware start

Starting VMware ESX Server Management services:

VMware ESX Server Host Agent (background) [ OK ]

Availability report startup (background) [ OK ]

After reconnecting to the VI3 host from VirtualCenter, double check to make sure the version of the VirtualCenter Agent is right:

[root@ESX3 root]# rpm -qa grep vpxa

VMware-vpxa-2.0.1-33643

3 comments:

elshadii said...
This comment has been removed by the author.
P.Swiderski said...

if this not help check disk space - i had same error if no space left on /var partition

Byron Zhao said...

It is true. And it seems that everytime I upgrade VC, it always have some problems.