When you have verified that the migration is successful, and have clicked Finish to finish the migration, you can uninstall your NSX-V environment.

The process for uninstalling NSX-V after migration to NSX is different from the standard uninstall for NSX-V.

Important: If you have vCenter Enhanced Linked Mode (ELM) configured, you must migrate all the NSX-V instances associated with the vCenter ELM chain before executing steps 6, 7, and 8 in the procedure below.

Prerequisites

  • Verify that the migration is successful, and all functionality is working in the NSX environment.
  • Verify that you have clicked Finish on the Migrate Hosts page.

Procedure

  1. In the vSphere client, navigate to Networking and Security > NSX Edges and delete all the NSX Edges.
  2. In the vSphere client, navigate to Networking and Security > Logical Switches and delete all the logical switches.
  3. In the vSphere client, navigate to Networking and Security > Installation and Upgrade > Logical Network Settings > Transport Zones and delete all the transport zones.
  4. In the vSphere client, navigate to Networking and Security > Installation and Upgrade > Management > NSX Controller Nodes and delete all the NSX Controllers.
  5. Clear all stale VTEPs that may remain in the NSX-V Manager database:
    1. SSH into NSX-V Manager as root.
    2. Run the following command to clear the database table:
      psql -U secureall -d secureall -c "delete from xvs_vmknic_info;"
    3. Run the following command to confirm that the output shows zero row:
      psql -U secureall -d secureall -c "select * from xvs_vmknic_info;"
  6. Delete the ESX Agent Manager agencies that are associated with the NSX-V environment.
    1. In the vSphere Client, navigate to Menu > Administration. Under Solutions, click vCenter Server Extensions. Double-click vSphere ESX Agent Manager and click the Configure tab.
    2. For each agency that has a name starting with _NSX_, select the agency, then click the three-dot menu icon ( Three-dot menu icon ) and select Delete Agency.
  7. Remove the NSX-V plug-in from VMware vCenter.
    1. Access the Extension Manager from the Managed Object Browser at https://<vcenter-ip>/mob/?moid=ExtensionManager.
    2. Click UnregisterExtension.
    3. In the UnregisterExtension dialog box, enter com.vmware.vShieldManager in the Value text box and click Invoke Method.
    4. In the UnregisterExtension dialog box, enter com.vmware.nsx.ui.h5 in the Value text box and click Invoke Method.
    5. You can verify that you unregistered the extensions by going to the Extension Manager page at https://<vcenter-ip>/mob/?moid=ExtensionManager and viewing the values for the extensionList property.
  8. Delete the vSphere Web Client directories and vSphere Client (HTML5) directories for NSX for vSphere and then restart the client services.
    1. Connect to the VMware vCenter system command line.
      • If you are using a VMware vCenter Appliance, log in as root using the console or SSH. You must log in as root and run the commands from the Bash shell. You can start the Bash shell using the following commands.
        > shell.set --enabled True
        > shell
      • If you are using VMware vCenter for Windows, log in as an administrator using the console or RDP.
    2. Delete all NSX for vSphere plug-in directories.
      Note: A plug-in directory might not be present if you have never launched the associated client.
      On VMware vCenter Appliance, delete the following directories:
      • To remove the vSphere Web Client plug-in, delete the /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity/com.vmware.vShieldManager-<version>-<build> directory.
      • To remove the vSphere Client plug-in, delete the /etc/vmware/vsphere-ui/vc-packages/vsphere-client-serenity/com.vmware.nsx.ui.h5-<version>-<build> directory.
      On VMware vCenter for Windows, delete the following directories:
      • To remove the vSphere Web Client plug-in, delete the C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client\vc-packages\vsphere-client-serenity\com.vmware.vShieldManager-<version>-<build> directory.
      • To remove the vSphere Client plug-in, delete the C:\ProgramData\VMware\vCenterServer\cfg\vsphere-ui\vc-packages\vsphere-client-serenity\com.vmware.nsx.ui.h5-<version>-<build> directory.
    3. Restart the client services on the VMware vCenter Appliance or VMware vCenter on Windows.
      Table 1. Client Service Commands
      Client Service vCenter Server Appliance vCenter Server for Windows
      Restart vSphere Web Client

      On vSphere 6.0, 6.5, and 6.7

      > shell.set --enabled True
      > shell
      # service-control --stop vsphere-client
      # service-control --start vsphere-client
      
      > cd C:\Program Files\VMware\vCenter Server\bin
      > service-control --stop vspherewebclientsvc
      > service-control --start vspherewebclientsvc
      
      Restart vSphere Client

      On vSphere 6.5, and 6.7

      > shell.set --enabled True
      > shell
      # service-control --stop vsphere-ui
      # service-control --start vsphere-ui
      
      > cd C:\Program Files\VMware\vCenter Server\bin
      > service-control --stop vsphere-ui
      > service-control --start vsphere-ui
      Restart vSphere Client

      On vSphere 7.0

      > shell.set --enabled True
      > shell
      # service-control --stop vsphere-ui
      # service-control --start vsphere-ui
      

      vSphere 7.0 does not support vCenter Server for Windows

  9. Power off and delete the NSX Manager VM.
    1. In vSphere client, navigate to Hosts and Clusters.
    2. Locate the NSX Manager VM. Right click and select Power Off then right click and select Delete from Disk.