Forcefully Removing the Cisco Nexus VEM on ESXi
I recently ran into an issue when trying to upgrade my ESXi hosts to 5.5 where the VUM upgrade would fail due to some inconsistent vibs for the Nexus vem (By default the 5.5 bundle includes the vem vib and will try to update).
After doing some searching I found the following method which will allow you to forcefully remove the vib (NOTE: don’t try to do this if your N1kv is running!)
## Get vem status and try to stop
# Get vem status
# Try to stop the vem
# Forcefull stop
# Find the vem pid
lsof | grep vem
# Forcefull kill the vem process
kill -9 "vem pid"
## Uninstall the vib
# Find correct vib name
esxcli software vib list | grep cisco-vem
# Remove vib
esxcli software vib remove --vibname=cisco-vem-v144-esx