net-dvs | grep "com.vmware.common.opaqueDvs.status.component.vswitch"
com.vmware.common.opaqueDvs.status.component.vswitch = down , propType = CONFIG
To return the host to a "Not Configured" state and allow for a clean re-preparation, a consolidated checklist of manual removal steps is required to purge these stale components from the ESXi host and the vCenter Server.
First, you need to move the host out of the vSphere cluster to isolate it from active workloads.
Place the ESXi host into Maintenance Mode.
Select the host in vCenter and drag it out of the cluster, placing it at the Datacenter level.
Verify the host's status in the NSX Manager UI and clean up any stale components.
In the NSX UI, navigate to System > Fabric > Hosts > Other Nodes. The host should appear here.
Ensure the host is in a Not Configured state.
If the host is in an Orphaned state:
Use the NSX global search to find the host.
Verify there are no associated components attached to the host (e.g., logical ports, vDS topologies), except for open alarms.
If you find associated logical ports, delete them.
If you find a stale vDS topology, locate it and rerun the precheck to clear out the stale host.
Verify the transport node state via API:
GET https://<nsxmanager>/api/v1/transport-nodes/<tn-id>/state (Note: Replace <Transport Node UUID> with the UUID reported in your error messages.)
Object Not found. If it returns anything else (for NSX-T 3.2.x and 4.x), force the removal by running HTTP:DELETE https:///<nsxmanager>/api/v1/transport-nodes/<tn-id>?force=true&unprepare_host=falseConnect to the ESXi host via SSH to manually verify and remove lingering NSX properties on the vDS.
Check if any of the following properties exist by running:
net-dvs -l | grep com.vmware.nsx.kcp
net-dvs -l | grep com.vmware.nsx.spf
net-dvs -l | grep com.vmware.nsx.vdl2
net-dvs -l | grep com.vmware.net.portset.fc.enabled
net-dvs -l | grep com.vmware.net.portset.fc.mcast
If any of these return a value of true, remove the property using:
net-dvs -u <property_name> -p hostPropList <vds_name> Verify the vSwitch component status:
net-dvs | grep "com.vmware.common.opaqueDvs.status.component.vswitch" Expected output: com.vmware.common.opaqueDvs.status.component.vswitch = up, propType = CONFIG
down or the propType is incorrect, fix it using:net-dvs -s com.vmware.common.opaqueDvs.status.component.vswitch=up -p hostPropList If you encounter the error Unable to clear DVS property com.vmware.nsx.vdl2.enabled: Status(bad0004)= Busy, follow these override steps. The below steps will also work in case unable to delete the VIBS.
Manually remove all VTEP VMkernel interfaces on the ESXi host:
esxcli network ip interface remove --interface-name=vmk10
esxcli network ip interface remove --interface-name=vmk11
esxcli network ip interface remove --interface-name=vmk50
Find the ports used for the VTEP, vdrPort, and spfPort:
net-dvs -l(Search the output for "VTEP". The port UUID will be listed just above it. Repeat this for all VTEPs.)
net-dvs -D -p <port_uuid> <switch_name>If it still fails, force a hot swap of the CVDS to DVS:
/usr/lib64/vmware/nsx-opsagent/bin/nsxcfg-vswitch -sesxcfg-vswitch -l You will see an error with DVSPortset-Xdel nsx one more time to complete the removal.nsxcli -c del nsxesxcli software vib list | grep nsx
NSX Uninstallation fails/stuck on ESX host and VIBs cannot be removed
ESX host loses network connectivity after running "esxcli software vib remove" on NSX VIBs
NSX VIBs are not removed from an ESXi host https://knowledge.broadcom.com/external/article/411940/