We recently ran into an issue within our NSX lab whereby we were tearing down the environment to reinstall it. The area that gave us some grief was with the host preparation uninstall.

It appeared to be uninstalling, but when refreshing the Web client the uninstalls failed across all three of our hosts.

Host preparation errors within Web client

In this situation you can attempt to uninstall the NSX vibs manually on each host.

The three NSX vibs involved are;

  1. esx-vxlan
  2. esx-vsip
  3. esx-dvfilter-switch-security

The steps to manual removal are listed below;

  1. ssh to host
  2. esxcli software vib list (just to list the vibs)

ESXi host vib listing

Note: That the esx-dvfilter-switch-security vib was not listed in our scenario and your mileage may vary.

  1. esxcli software vib remove -n esx-vxlan
  2. esxcli software vib remove -n esx-vsip
  3. esxcli software vib remove -n esx-dvfilter-switch-security

In our scenario, the removal of all vibs failed.

ESXi hist vib removal error

The solution to this was to reboot the host(s)! It appears that the modules were removed, but were still running in memory. This correlates with the guidance from VMware that vib removal sometimes requires a host reboot.

Once the hosts are rebooted, you can see in the NSX host preparation tab that the cluster is now ready for host preparation once more.

Host preparation corrected

At this point we were able to continue with the NSX deployment.