The following resolution is to be completed on the Cisco side to remove a Nexus 1000V from VMware's vCenter. None of the following can be done on the vCenter side. For more information, see
Cisco's Nexus 1000V Switch for VMware vSphere documentation.
Run the command
no vmware dvs from an svs connection to remove a Cisco Nexus 1000V VSM from the vCenter Server. You cannot remove the VSM from within vCenter Server. For more information, see
Removing the Cisco Nexus 1000V from the vCenter Server in the
Cisco Nexus 1000V Troubleshooting Guide.
If you have removed the VSM without running the no vmware dvs command, the old VSM remains in vCenter Server. You have to manually delete the VSM entries.
To delete the remaining VSM:
- Reconnect the VSM to vCenter Server, or create a new VSM with the same extension key (either from ISO or OVF).
- Ensure the hostname of the VSM matches with the name of the N1KV vDS as seen in vCenter Server. To modify hostname, log in to VSM and run these commands:
n1000v # conf t
n1000v(config)# hostname Oldhostname
n1000v(config)# exit
n1000v # copy run start
- Find the extension key tied to the old VSM.
To find the extension key tied to a VSM:
- Log in to vCenter Server using the vSphere Client.
- Go to Home > Networking.
- Click N1KV DVS.
- Click the Summary tab. The extension key string is listed in the Notes field.
For more information, see the Finding the Extension Key on the Cisco Nexus 1000V section in the Cisco Nexus 1000V Troubleshooting Guide.
- Configure the extension key on the new VSM with the command:
n1000v(config)# vmware vc extension-key key
- Unregister the related extension key on vCenter Server. For more information, see the Unregistering the Extension Key in the vCenter Server section in the Cisco Nexus 1000V Troubleshooting Guide.
- Open a browser, browse to the VSM, and download the extension.xml file. Refresh the browser page to get the current extension key.
- Register the new extension.xml file in vCenter Server:
- In vCenter Client, click the Plug-ins menu.
- Click Manage Plug-ins.
- Right-click the white space within the dialog and click New Plug-In.
- Click Browse and choose the cisco_nexus1000v_extension.xml file that you downloaded from the VSM home page.
- Click Register Plug-In.
For more information, see Creating a Cisco Nexus 1000V Plug-In on the vCenter Server in the Cisco Nexus 1000V Software Installation Guide.
Note: Ensure that the switch name of the VSM is the same as one you are trying to delete.
- Reconnect the VSM to vCenter Server using these commands:
n1000v# conf t
n1000v(config)# svs conn VC
n1000v(config-svs-conn)# protocol vmware-vim
n1000v(config-svs-conn)# remote ip address [IP_address of VC]
n1000v(config-svs-conn)# vmware dvs datacenter-name [DC_name]
n1000v(config-svs-conn)# connect
Note: You must be connected to vCenter Server before you remove the DVS.
- When it connects to vCenter Server, delete the VSM using the no vmware dvs command under an svs connection.
THE CONTENT OF THIS ARTICLE IS PROVIDED "AS-IS," AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, VMWARE DISCLAIMS ALL OTHER REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS CONTENT, INCLUDING THEIR FITNESS FOR A PARTICULAR PURPOSE, THEIR MERCHANTABILITY, OR THEIR NONINFRINGEMENT. VMWARE SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF THIS CONTENT, INCLUDING DIRECT, INDIRECT, CONSEQUENTIAL DAMAGES, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF VMWARE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Note: The links in this article were correct as of February 17, 2021. If you find a broken link, please provide feedback and a VMware employee will update the link.
Workaround:
If the Cisco documentation above does not work in removing the Nexus 1000V, the user would need to install a new vCenter. See the
About vCenter Server Installation and Setup guide.