Cisco Nexus 1000v and vSphere VEM Manual Uninstall
I found the need when troubleshooting a few days ago to manually remove the Cisco 1000v VEM from a host. The distributed virtual switch (1000v) was not functioning correctly on this individal machine. Here I will go through the process of doing so form the command line
Fist, SSH to the ESX (vSphere) host.
Make sure that the VEM is listed on this server.
[root@vm09 ~]# esxupdate --vib-view query | grep cisco cross_cisco-vem-v121-esx_184.108.40.206.3.1.0-1.20.2 installed 2010-08-10T15:41:37.946711-04:00
Next, the server will have to be removed from the 1000v switch in Virtual Center. To do this, all VMs that has a nic on the 1000v switch will have to be migrated off.
To remove the host from the switch, navigate to the following.
Home -> Inventory -> Networking -> select your 1000v switch -> Host tab
From there, right-click the ESX host and tell it to “Remove from Distributed Virtual Switch”
Go back to the CLI. This is actually easy enough, just use the vem-remove command. Below is the help information from the command.
[root@vm09 ~]# vem-remove -h vem-remove [options] Options: -c Remove /usr/lib/ext/cisco and modules from visor system -d Developer removal option -h Help -r Remove VIBs -s Stop DPA and unload modules before removing -v Verbose -u Cleanup stale dvs information -z Dry run (don't really remove)
Per the cisco documentation, the “-d” option was used.
[root@vm09 ~]# vem-remove -d watchdog-vemdpa: Terminating watchdog with PID 1551 Removing CIsco VEM VIB from COS system Removing VIB cross_cisco-vem-v121-esx_220.127.116.11.3.1.0-1.20.2 Removing cisco-vem-v121-esx ############## [100%] Running [/usr/sbin/vmkmod-install.sh]... ok.
Re-query esxupdate and the VEM should now be in the “retired” status.
[root@vm09 ~]# esxupdate --vib-view query | grep cisco cross_cisco-vem-v121-esx_18.104.22.168.3.1.0-1.20.2 retired 2010-08-10T15:41:37.946711-04:00
The re-install of the VEM is easy enough through Virtual Center. I always reboot the host before, then once it is back in Virtual Center, add the host back to the 1000v Distributed Virtual Switch. In the proccess of adding it back, VC will re-load the VEM and reconfigure the networking on the host. Once done, you now have 1000v VEM re-installed on the host.