Removing ESXI host from vCenter from inventory throws the error " A general system error occurred: vDS host error: see faultCause"
VMware vSphere 7.0.x
VMware vSphere 8.0.x
Virtual machine or VM template configured with a vDS port group still residing on the disconnected ESXI
To remove the disconnected ESXI from vCenter server inventory:
service-control --stop vmware-vpxd
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
select ID from VPX_ENTITY where name ='<esxi host name>';
select id from vpx_vm where host_id = <esxi host id>;
Manually removing a stale VM from the vCenter Server vpostgres database
service-control --start vmware-vpxd