Unable to remove the VMkernel port group after upgrading from ESX 3.0.x to 3.5 or 4.x
search cancel

Unable to remove the VMkernel port group after upgrading from ESX 3.0.x to 3.5 or 4.x

book

Article ID: 328990

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Cannot remove VMkernel port group after upgrading from ESX 3.0.x to 3.5 or 4.x
  • After upgrading an ESX 3.0.x host to ESX 3.5 or 4.x, a VMkernel port group may become a virtual machine port group


Environment

VMware ESXi 4.1.x Installable
VMware ESXi 4.0.x Embedded
VMware ESXi 3.5.x Embedded
VMware ESX Server 3.5.x
VMware ESXi 4.0.x Installable
VMware ESXi 4.1.x Embedded
VMware ESX 4.0.x
VMware ESXi 3.5.x Installable
VMware ESX 4.1.x

Resolution

In ESX 3.0.x, you can create multiple VMkernel port groups in the same subnet. However in ESX 3.5 and 4.x, multiple VMkernel port groups must be created in different subnets.
If you upgrade an ESX 3.0.x server with multiple VMkernel port groups in the same subnet, those port groups may show as virtual machine port groups in ESX 3.5 and 4.x.
The preferred solution is to have all VMkernel port groups on a ESX 3.0.x server configured to be in different subnets before upgrading to ESX 3.5 or 4.x. If you already upgraded to ESX 3.5 or 4.x, you may not be able to remove the VMkernel port group through the VMware Infrastructure Client. You may try to remove the VMkernel port group by running esxcfg-vmknic -d <port group name> . If that does not work, you have to backup the /etc/vmware/esx.conf file, remove references of the VMkernel port group in the file, and then reboot the ESX host.
Note: Any modifications to the /etc/vmware/esx.conf can affect system performance and stability. It is important to backup this file prior to making any changes.
To remove the VMkernel port group that is on a Distributed Virtual Switch (vDS):
  1. Run this command to list the vDS and vSwitch port groups:

    esxcfg-vswitch -l

  2. Identify the DVPort ID for VMkernel port group. For example, DVPort ID is 101 for vmk0.
  3. Run this command to delete the dvportgroup:

    esxcfg-vmknic -d vmkX -s <dvSwitch name> -v <dvportgroup_ID>

    For example:
    esxcfg-vmknic -d vmk0 -s dvSwitch -v 101