Baking Clouds Ltd

Baking Clouds provide tailored IT consultancy services to small and medium-sized companies; we cover all aspects of IT without any hidden costs.

Removing missing ESXi host from VMware Cloud Director

Working with VMware Cloud Director for traditional vSphere administrator teams could generate the need of doing a re-cap of how to perform maintenance of hosts.

We have seen on different environments that engineers performing ESXi host patching, updates and other lifecycle management including adding and removing hosts they tent to miss checking the host health in Cloud Director resulting on tasks failing for NSX and vCloud Director

Some of this was covered on this post related to performing vCD updates

You could also have the scenario of hosts removed from vCenter server as part of lifecycle management resulting on vCloud Director showing system alerts for missing hosts

Note: Screenshots are from older versions of vCloud Director where hosts management was needed. Currently deprecated with latest versions. Refer to documentation for details

host cannot be found in vcenter server vcloud director error

When tasks are executed on “missing hosts”, you get errors as follow:

host cannot be found in vcenter server vcloud director error unprepare host
vcloud director uninstall agent error
host cannot be found in vcenter server vcloud director error

Removing host from vCD GUI or API is not possible without communication with host to uninstall the agent

Workaround is deleting the host entry in vCloud Director database.

Below query shows missing host exist in the DB

sql query to find esxi host by name
host cannot be found in vcenter server vcloud director error

To delete the host entry from the database below query can be executed

Disclaimer: Use this post at your own risk. You should contact support for DB modifications
This post is informational only with they purpose to show the workaround experienced in our scenario
We don’t take responsibility and/or give any warranty if you reuse this content

delete from managed_server where vc_id like '%my-host-vc-id%';

Removing missing ESXi host from VMware Cloud Director
Scroll to top