VMware Cloud Community
mike_caddy
Enthusiast
Enthusiast

Removing a Dead ESX Host from Virtual Center

I have an Expired (as in dead!) host in my virtual center system, I want to remove it, however, when I try to remove I get an error

"Unable to contact the specified host ....."

0 Kudos
10 Replies
ShanVMLand
Expert
Expert

Try to restart the License Server if that dead ESX used this License server.

Shan

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
0 Kudos
mike_caddy
Enthusiast
Enthusiast

We have tried that, the host has been on the list for a couple of weeks, during which time both Virtual Center and the Licence manager service have been restarted.

0 Kudos
AndreTheGiant
Immortal
Immortal

Create an empty cluster, move ESX to that cluster and remove the cluster.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
mike_caddy
Enthusiast
Enthusiast

Tried that, Same error.

0 Kudos
AndreTheGiant
Immortal
Immortal

The host is in disconnected state?

If you have a spare hardware you can install a ESX with the same name, add and then remove.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
lamw
Community Manager
Community Manager

Do you have VI Perl Toolkit or vCLI or VIMA by any chance?

You can try this Perl script to see if it does the job, it'll prompt you to confirm the removal of your ESX(i) host and provide some information such as the current connectionState seen by vCenter.

Here is a sample execution:

--server =

[vi-admin@vima ~]$ ./removeHostFromvCenterByForce.pl --server reflex.primp-industries.com --username primp --host kang.primp-industries.com
Enter password:

Found Host: kang.primp-industries.com with state: notResponding
Would you like to remove this host from vCenter? y|n
y
Destroying host "kang.primp-industries.com"
Successfully removed "kang.primp-industries.com"!

You should see a task to remove the host from vCenter and that'll take maybe 30seconds or so....

Attached to this reply is removeHostFromvCenterByForce.pl

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

If you find this information useful, please award points for "correct" or "helpful".

bulletprooffool
Champion
Champion

Nice lamw - one for the toolkit!

One day I will virtualise myself . . .
0 Kudos
goudreal
Contributor
Contributor

I'm having the same problem (retired ESX) but when I ran the script, it gave me the following error:

Fault string: 'the operation is not supported on the object'

Fault detail: 'NotSupported'

0 Kudos
mike_caddy
Enthusiast
Enthusiast

Thanks,

I took an alternative route in the end, I created a new vSphere vCenter server and migrated each of my hosts over one by one as we where readly for esx 4.0

I now have my old vCenter server with one datacenter left to move and three broken Datacenters which will not delete

0 Kudos
loriwmg1
Contributor
Contributor

THAT WORKED  ~~~  THANK YOU!!!  

0 Kudos