Posted at

How to clean up orphanedVM host with status = Invalid in ESXi

More than 1 year has passed since last update.


How to fix

/etc/vmware/hostd/vmInventory.xml

vi /etc/vmware/hostd/vmInventory.xml

(remove the lines for the virrtual machine)

/etc/init.d/hostd restart


References

Inaccessible virtual machines are named as Unknown VM (2172)

https://kb.vmware.com/s/article/2172

Restarting the Management agents in ESXi (1003490)

https://kb.vmware.com/s/article/1003490