Badges

gestaltitbadge

follow-me-twitter

Subscribe to me on FriendFeed

Comments / DISQUS
Feedjit.com

Failed to install the virtualcenter agent service

After upgrading Virtual Center from 2.0.1 to 2.5, all of the ESX 3.0.1 hosts were disconnected. Right clicking a host and selecting connect failed after about 5 minutes with an error that started with “failed to install the virtualcenter service.” Turns out the resolution is to manually create a missing directory on each of the affected ESX servers. Without this directory the agent install process will fail. The issue is not related to VC 2.5, but occurs when upgrading to earlier versions of VC 2.x as well.

The directory in question is /tmp/vmware-root. If it does not exist then follow these steps from VMwarewolf to reconnect your ESX hosts to VC again:

  1. Login to ESX Server via ssh client as root user
  2. cd /tmp
  3. mkdir vmware-root
  4. Try re-connecting the host to Virtual Center

Apparently there is a cron job that is removing this directory whenever it runs.

Here is another method:

  1. Disable HA. Otherwise, the virtual machines might be forcibly powered down by step 2.
  2. At the service console, issue
    service mgmt-vmware restart
  3. At the service console, issue
    service vmware-vpxa restart
  4. Reconnect the virtual machines to VirtualCenter.
  5. Attempt to re-enable HA within VirtualCenter. If this doesn’t work, this means that vpxa did not install properly.
  6. At the service console, issue
    rpm -qa | grep vpxa
  7. At the service console, issue “rpm -e” on the rpm file that displayed in the previous command.
    rpm -e <rpm from step 6>
  8. Reconnect the virtual machines in the usual manner within VirtualCenter.
  9. Re-enable HA.

At least I did not have a VMs reboot unexpectedly this time.

VMware Communities: Failed to install the virtualcenter … is a thread containing more great troubleshooting for this problem.

Related Posts

  • http://seanclark.us vseanclark

    Thanks, Rich! This helped me connect two 3.0.1 ESX hosts to Virtual Center 2.5 Update 3.

    “When in doubt run, ‘service mgmt-vmware restart; service vmware-vpxa restart’.”

  • http://seanclark.us Sean Clark

    Thanks, Rich! This helped me connect two 3.0.1 ESX hosts to Virtual Center 2.5 Update 3.

    “When in doubt run, ‘service mgmt-vmware restart; service vmware-vpxa restart’.”

Get My Podcast On iTunes!
Support VM /ETC
Support VMETC.com

Support VMETC.com

Free Business and Tech Magazines and eBooks
@rbrambley tweets
VMTN Roundtable Podcasts
Subscribe



Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to netvibes
Add to Plusmo