VMware Cloud Community
curioso
Contributor
Contributor

Failed to install virtualcenter agent service

Hi,

I have a two host ESXi Installable version. I created a cluster and was successfully added the first host into the cluster. But when I tried to add the second host into the cluster, I got this message, error: "failed to install virtualcenter agent service".

Does anybody know what causing the problem and how to fix it?

Your help would be greatly appreciated.

Thanks,

0 Kudos
15 Replies
Karunakar
Hot Shot
Hot Shot

Hi,

This error occurs when the VC application is not able to install in the ESX.

Can you try to follow the below steps, might be of some help to you.

From the machine where VC is installed,

> Copy the vpx-upgrade-esx-7 or 6****** from the upgrade folder in the VC folder to /tmp on the ESX server

(By default the script is located in C:\program files\vmware\vmware virtualcenter\upgrade )

In the ESX server

> run the command " sh vpx-upgrade-esx-7 or 6****** " in ESX

And then try to stop the hostd process, and start it again.

Now from VC try to connect to the ESX server.

-Karunakar

0 Kudos
curioso
Contributor
Contributor

Is this applicable to ESXi?

0 Kudos
Karunakar
Hot Shot
Hot Shot

Yes, this can be tried on ESXi as well, let me know if you need any more information on this.

Karunakar

0 Kudos
singh_padam123
Enthusiast
Enthusiast

Can you jsut check if both the ESX have the same credentials .

and that tried to login.

For me it was helpful..

0 Kudos
singh_padam123
Enthusiast
Enthusiast

Tried to have similar credentials on both the ESX servers with admin priviledges.

and than add both the ESX on VIC.

Hope this helps you..

0 Kudos
PaulEJones
Contributor
Contributor

Karunakar,

Perhaps I am missing something, but since ESXi does not have a console, how can you copy the update to the /tmp folder or run the update command on the host?

Thanks,

Paul

0 Kudos
Dave_Mishchenko
Immortal
Immortal

See this link on how to access the console and / or enable SSH. If you don't want to enable SSH, you can copy the install to one of your ESXi datastores and then copy it to tmp from the console. You can also use vifs.pl from the RCLI to copy files to /tmp.

0 Kudos
PaulEJones
Contributor
Contributor

Dave,

Thanks for the reply, but the link seems to have gotten lost somewhere in the ether. :smileygrin:

Paul

0 Kudos
Dave_Mishchenko
Immortal
Immortal

Here you go - http://www.vm-help.com/esx/esx3i/ESXi_enable_SSH.php

Note to self - CTRL-C and then CTRL-V Smiley Happy

0 Kudos
PaulEJones
Contributor
Contributor

Thanks for the reply, Dave. I had no idea there really was a command line behind the yellow curtain, but I guess it shouldn't surprise me.

Paul

0 Kudos
mike_laspina
Champion
Champion

Hi,

The last time I ran into that issue I simply removed the ESXi host from VC, Rebooted the host and added it back.

http://blog.laspina.ca/ vExpert 2009
0 Kudos
PaulEJones
Contributor
Contributor

Mike,

I tried that, but to no avail. This is one of three hosts i'm trying to put in a cluster. Looking at the config log, the failing host has two error messages:

- mkdir: Cannot create directory '/store/var/opt': No such file or directory

- mkdir: Cannot create directory '/store/var/core': No such file or directory

Now that I can get into the command line, i can see that the var folder appears to be corrupt. I don;t know if this is causing the issue stated by the original poster (which i am also experiencing), but it is the only difference between the hosts that i can find.

BTW, these are ESXi embedded running off of internal USB keys in HP DL380 G5 servers.

Thanks,

Paul

0 Kudos
mike_laspina
Champion
Champion

I have heard of a few issues in the forum about HP internal flash drives going corrupt.

They needed an HP recovery CD to fix it.

http://blog.laspina.ca/ vExpert 2009
0 Kudos
Dave_Mishchenko
Immortal
Immortal

0 Kudos
PaulEJones
Contributor
Contributor

Bingo! That was it! I checked the USB, and it is the one with the green case. I also began checking more folders, and a lot of them are corrupt, including the AAM folder (which, if I recall, is HA, which is where the problem originated).

TIme to call HP.

Thanks to everyone for their help.

Paul

0 Kudos