Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Migrating move back from Distributed virtual switch to Standard virtual switch - VMKernal Adapter - Part 2

November 20, 2017 08:03PM

In this article I will be migrating VMKernel virtual adpaters from distributed virtual switches to standard virtual switch, in earlier article I addressed Copy or clone distributed virtual switch portgroups to standard switch portgroups - Powercli, this helps automating, creating Portgroup. Here I am migrating esxi server from one vCenter to another vCenter, If you don't migrate ESXi servers from DVSwitch to SSwitch first, you will encounter with many problem and can cause unnecessary downtime and unrecoverable errors. So it always a best practice to follow correct steps. 

Earlier Parts
Part 1 - Copy or clone distributed virtual switch portgroups to standard switch portgroups - Powercli
Migrating move back from Distributed virtual switch to Standard virtual switch - VMKernal Adapter - Part 2
Migrating move back from Distributed virtual switch to Standard virtual switch - VMs (Virtual Machine) - Part 3
Part 4: Remove ESXi Host from Distributed switch and migrate to virtual switch completely

Here in the in the screenshot I selected ESXi001 server, go to configure tab, select verify you both the standard switch and DVswitch are visible with Portgroups, here I have only 2 vmnics physical adapter on my production servers and they are assigned to dvSwitch under DV uplink ports, and Newly created Standard switch doesn't have any physical vmnic adapter assigned. 

configure vmware vsphere web client esxi vcenter server virtual switches, uplink, vmnic, vmkernel migration distributed virtual switch,  dvswitch to standard virtual switch

Before starting this activity go to networking >> distributed virtual switch.

vmware vsphere web client, vcenter esxi, networking navigator, distributed virtual switch portgroup migration.png

Right click on dvSwitch, go to Settings and click Edit Health check, from the pop up box enable VLAN and MTU and Teaming and failover, These settings allow you to identifies common configuration errors that health check.

  • Mismatched MTU settings between physical network adapters, distributed switches, and physical switch ports.
  • Mismatched virtual switch teaming policies for the physical switch port-channel settings.
  • Mismatched VLAN trunks between a vSphere distributed switch and physical switch.

The network health check monitors the following three network parameters at regular intervals:

  • Network adapter teaming: Checks whether the physical access switch ports EtherChannel setting matches the distributed switch distributed port group IP Hash teaming policy settings.
  • VLAN: Checks whether vSphere distributed switch VLAN settings match trunk port configuration on the adjacent physical switch ports.
  • MTU: Checks whether the physical access switch port MTU setting based on per VLAN matches the vSphere distributed switch MTU setting.

vmware vsphere web client, dvswitch, distributed virtual switch settings, Edit Health check settings, VLAN and MTU enabled, Teaming and Failover enabled..png

Next Host and Clusters view.

     A. Select Esxi server from list which you want to migrate from DVSwitch to standard switch.
     B. Go to Configure tab on the right.
     C. In the Networking select Virtual switches 
     D. Select distributed vswitch, Note down the physical network adapter, I have 2 nics here and removing only one physical NIC.
     E. Click on the Manage the physical network adapters connected to the selected vswitch button,
     F. This opens a new popup box and lists uplink ports, select second physical vmNic adapter, from uplink 2 port.
     G. Click X red button to remove the one uplink - physical network adapter, make sure you are removing only one physical vmnic from list,

Once you remove one NIC from virtual switch it shows red alert icon on ESXi and alert message in triggered alarm network uplink redundancy lost, this can be ignore for now while migration. 

vmware vsphere web client, remove uplink port vmnic from dvswitch distributed virtual switches, manage physical network adapters virtual portgroup, vlanid

In next, attach removed empty vmnic adpater to standard virtual switch.

     A. Select standard virtual switch from list in virtual switches.
     B. Click on the Manage the physical network adapters connected to the selected vswitch button.
     C. On the popup box click + plus icon, In the failover order group by default the active adapters is selected and keep the same setting.
     D. Add unassigned vmnic1 network adpater from list. click Ok twice as shown.

vmware vsphere web client standard switch to distributed virtual switch movement, standard virtual switch active standby unused adpaters, migration portGroup

Here in the screenshot I can see one NIC adapter is successfully migrated and assigned to virtual standard switch. Both virtual switch has at least one network card now, and good for next step.

vmware vsphere web client virtual switches standard sswitch, vmnic1 manage physical network adapter, cdp lldp, migrate switch and create portgroup, networking virtualization

Next I will migrate VMkernel network adapter as first step from DVswitch to standard vswitch. Select SvSwitch and click button Migrate VMkernel network adapter to selected switch. This will start new wizard. Also note down vMotion vmkernel port group VLAN id, As I am migrating it first to see the impact.

vmware vsphere web client esxi vcneter distributed virtual switch vmotion vmkernel virtual portgroup, virtual switches, migrate a vmkernel network adapter to the selected switch

In the Migrate VMkernel network adapter to vswitch wizard box select VMkernel network adapter you want to migrate to the standard switch. I am selecting first vMotion port group to move to standard vSwitch. If there are any issue, this will give me idea before migrating Management Network.

dvSwitch, migrate vmkernel network adapters to standard switch select vmkernel network adapter vmk1 vmtion, vmware vsphere web client, vcenter esxi, tcp ip stack, ip settings, port properties

In the next screen of Configure settings, Provide vMotion adapter a Network label. and VLAN id, this can be taken from existing vMotion virtual distributed portgroup. 

vmware vsphere web client migrate vmkernel network adapter to vswitch standard, configure setting vlan id network label specify vcenter esxi

Next analyze impact page appears, Review the impact this migration might have on some network dependent services, one of the service is iSCSI, Overall impact status is no Impact and good to press next button. In the ready to complete page review your settings selections before finishing the wizard. This shows existing settings and new settings. If all looks good click finish button to proceed.

esxi migrate vmkernel network adapter to virtual standard switch from distributed virtual dvswitch vmkernel adapter, vlan id, network label, analyze

Here on distributed virtual switch I can verify vMotion vmkernel port group is migrated successfully as it is not visible. Assigned port groups shows only filtered ones those have VMs and VMkernel are assigned and not empty. 

vmware vsphere web client configure esxi vcenter distributed switch migrate to virtual standard switch, assigned port groups filter applied, Migrate VMs to another network screenshots

Using same wizard Migrate a Management VMkernel network adapter to selected standard virtual switch. Once its done my standard virtual switch is showing both vMotion and Management VMkerenl port group visible on it. If there are any issue while migrating for VMKernel port to stadard switch, dvSwitch health check will always be handy.

vmware vsphere web client, vcenter esxi, standard switch migrate vmotion and management network from distributed virtual switch, dvswitch

Useful Articles
VMWARE VCENTER 6.5 UPGRADATION ERROR
PART 2 : CONFIGURING ESXI ON VMWARE WORKSTATION HOME LAB
POWERCLI - CREATE DATACENTER AND ADD ESXI HOST IN VCENTER
PART 1 : BUILDING AND BUYING GUIDE IDEAS FOR VMWARE LAB
Copy or clone distributed virtual switch portgroups to standard switch portgroups - Powercli

Go Back

Hi,

I found this post really helpful. However I wanted to add something:

If you have configured a port-channel on your switch for the VMKernel port after removing the one port from the distributed switch you also need to remove it from the channel-group on the switch before you can use it as an interface on the standard switch. Otherwise you will lose connectivity. After migration of the VMKernel port and removal of the second NIC from the distributed switch you can add the first port to the port-channel again.

I hope this helps someone.
Daniel

Thanks Daniel for your valuable feedback, yes i am aware about port-channel on the switch and effect if it not configured on virtual switch or port group. I am working on to revisit and rewrite to get exact clone of the portgroups with settings.



Comment