Manually Remove NSX-T Components from Isolated ESXi Hosts

Handling Orphaned ESXi Hosts with NSX-T Preparation

As a VMware administrator, you may encounter situations where an ESXi host becomes orphaned, and the only option left is to manually remove the NSX-T components. This can happen due to various reasons such as a corrupted NSX-T Manager or a misconfigured environment. In this blog post, we will discuss how to manually remove NSX-T components from an orphaned ESXi host and clean up the environment.

Before we begin, it’s essential to understand that manually removing NSX-T components can be risky and may lead to unexpected results. Therefore, we strongly recommend taking a backup of your environment before attempting any manual removal. Additionally, make sure you have a clear understanding of the ESXi host’s current configuration and the implications of removing NSX-T components.

Step 1: Confirm ESXi Host’s Current Configuration

Before we dive into the manual removal process, it’s crucial to confirm the ESXi host’s current configuration. You can do this by executing a few commands using SSH:

1. Execute the following command to check for any virtual machines running on the ESXi host:

“`

vsipioctl clearallfilters -Override

“`

2. Stop the netopad service using the following command:

“`

/etc/init.d/netopad stop

“`

3. Execute the following command to enter NSX-T command mode:

“`

nsxcli

“`

Step 2: Remove NSX-T Components

Now that we have confirmed the ESXi host’s current configuration, we can proceed with manually removing the NSX-T components. The steps to do this are as follows:

1. Execute the following command to remove all NSX-T filters:

“`

vsipioctl clearallfilters -Override

“`

2. Remove the NSX-T software using the following command:

“`

del nsx

“`

This command will remove all NSX-T-related settings and modules from the ESXi host.

Step 3: Verify Removal of NSX-T Components

After removing the NSX-T components, it’s essential to verify that they have been successfully removed. You can do this by executing a few commands using SSH:

1. Check for any remaining NSX-T modules using the following command:

“`

esxcli software vib list | grep -i nsx

“`

2. Check for any remaining NSX-T configuration files using the following command:

“`

esxcfg-vmknic -l

“`

3. Check for any remaining NSX-T virtual switches using the following command:

“`

esxcfg-vswitch -l

“`

If any of these commands return results, it means that some NSX-T components are still present on the ESXi host. In such cases, you may need to repeat the manual removal process until all NSX-T components have been removed.

Conclusion

Manually removing NSX-T components from an orphaned ESXi host can be a complex and risky process. Therefore, it’s essential to approach this task with caution and a clear understanding of the implications. Before attempting any manual removal, ensure that you have taken a backup of your environment and have a clear understanding of the ESXi host’s current configuration. Additionally, carefully verify the removal of NSX-T components to avoid any unexpected issues.