Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active January 11, 2024 17:27
Show Gist options
  • Save dwallraff/f0b928ab26c158f3bfe98388ef5d62aa to your computer and use it in GitHub Desktop.
Save dwallraff/f0b928ab26c158f3bfe98388ef5d62aa to your computer and use it in GitHub Desktop.
Remove NSX after a failed uninstall
  1. Put your ESXi hosts into maintenance mode

  2. Log into your ESXi host

  3. Check to see what got left behind

# Check for vmknic's
esxcfg-vmknic -l 

# Check for vswitches
esxcfg-vswitch -l

nsxdp-cli vswitch instance list
  1. Remove all filters
vsipioctl clearallfilters -Override
  1. Stop netcpad
/etc/init.d/netcpad stop
  1. Use the NSX cli to uninstall NSX
$> nsxcli
nsxcli> del nsx
nsxcli> exit
  1. If you there are still vmk interfaces, remove them manually
esxcli network ip interface remove --interface-name=<VMKID#>
  1. Verify all NSX traces have been removed
esxcli software vib list | grep -i nsx
  1. Repeat on all ESXi hosts

  2. Take hosts out of maintenance mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment