/var/log/esxupdate.log
:Unable to remove vib on host. java.rmi.RemoteException: [LiveInstallationError] VMware_bootbank_nsx-esx-datapath_4.1.0.0.0-7.0.21236273: Error in running [/etc/init.d/nsx-datapath stop remove]: Return code: 1 Output: stop remove begin Exception:Traceback (most recent call last): File "/etc/init.d/nsx-datapath", line 1995, in <module> UnloadKernelModules(False, True) File "/etc/init.d/nsx-datapath", line 1681, in UnloadKernelModules unloadModule(modName, 'nsxt-vsip' in modName) File "/etc/init.d/nsx-datapath", line 1638, in unloadModule (moduleName, out.decode())) KernelModulesException: Failed to unload module nsxt-kcp-21####73: vmkmod: VMKMod_UnloadModule: Unloading module nsxt-kcp-21236273 failed: Busy (bad0004) Cannot remove module nsxt-kcp-21236273"
The above unloading error may also be seen for other modules such as:
Unloading module nsxt-sfp-21####73 failed: Busy (bad0004) Cannot remove module nsxt-kcp-21####73
Unloading module nsxt-vdl2-21####73 failed: Busy (bad0004) Cannot remove module nsxt-kcp-21####73
del nsx
' on the ESXi host in the nsxcli
shell does not remove the VIB's.net-dvs -l | grep com.vmware.nsx
com.vmware.nsx.kcp.enable = true , propType = CONFIG
com.vmware.nsx.spf.enabled = true , propType = CONFIG
com.vmware.nsx.vdl2.enabled = true , propType = CONFIG
VMware NSX
VMware NSX-T Data Center
The issue is caused when one or more of the modules com.vmware.nsx.spf
, com.vmware.nsx.vdl2
, com.vmware.nsx.kcp
are loaded and enabled and preventing the NSX VIB's from being removed.
This is a known issue impacting VMware NSX and VMware NSX-T Data Center.
Workaround:
net-dvs -l | grep com.vmware.nsx
Note: You will see output similar to the following:
com.vmware.nsx.kcp.enable = true , propType = CONFIG
com.vmware.nsx.spf.enabled = true , propType = CONFIG
com.vmware.nsx.vdl2.enabled = true , propType = CONFIG
Note: Any entries without CONFIG at the end can be ignored.
esxcfg-vswitch -l
command.Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch0 8960 1 128 1500
PortGroup Name VLAN ID Used Ports Uplinks
VM Network 0 0
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch1 8960 5 128 1500 vmnic2,vmnic3
PortGroup Name VLAN ID Used Ports Uplinks
PG_1 1111 0 vmnic2,vmnic3
PG_2 1112 0 vmnic2,vmnic3
PG_3 1113 0 vmnic2,vmnic3
DVS Name Num Ports Used Ports Configured Ports MTU Uplinks
NSX_VDS 8960 58 1024 9000 vmnic8,vmnic9
DVPort ID In Use Client
40 1 vmnic2
52 1 vmnic3
1 1 vmk1
7 1 vmk2
Note: NSX_VDS
is the name of the vDS to be modified. There might be more than one vDS that needs to be modified.
net-dvs -u com.vmware.nsx.kcp.enable -p hostPropList NSX_VDS
nsxcli -c del nsx
command to remove the NSX VIBs.esxcli software vib list | grep -E 'nsx|vsipfwlib'
command to validate that no NSX VIBs are installed on the host. There should be no output.
If the host is rebooted, you may see the NSX kernel modules activated again. This is expected behavior and should not affect the host once the NSX VIBs are removed.