Migrating virtual machines between vSwitch or PortGroups to vDS or dvPortgroups
search cancel

Migrating virtual machines between vSwitch or PortGroups to vDS or dvPortgroups


Article ID: 329120


Updated On:


VMware vSphere ESXi


This article provides steps for migrating virtual machines from vSwitch Portgroups to vNetwork Distributed Switch dvPortgroups.


vCenter Server introduces a new feature that allows you to mass-move virtual machines from one dvPortgroup to another.
To initiate a migration in VMware vSphere 6.7 , see  Migrate Virtual Machines to or from a vSphere Distributed Switch
Execute the above procedure with the following order:
  1. Create a Distributed Switch with at least as many Uplink Ports as physical NICs connected to the vSwitch.
  2. In the Distributed Switch, create as many Portgroups as you already have in the vSwitch.
  3. Assign uplinks to each Portgroup in the dvSwitch.
  4. Break each teaming and transfer NIC or NIC(s) from each vSwitch to a corresponding uplink group in dvSwitch.
  5. Migrate the Virtual Adapters and the virtual machines to the appropriate Portgroups.
  6. Transfer the remaining uplinks to the uplink groups associated with the appropriate Portgroups.
  7. Remove the vSwitches and their Portgroups.
Note: If the virtual machine contains virtual machine snapshots at the time of the networking migration, the networking is migrated, but the legacy portgroups continue to remain. To clear these legacy portgroups, you must delete all snapshots on the virtual machines, which automatically removes the legacy portgroups. For more information on deleting snapshots, see Consolidating snapshots (1007849).
Note: If the virtual machine you need to migrate to the vDS is the vCenter server itself then you should not use this feature. To migrate a vCenter server to the vDS:
  1. Right click on the vCenter virtual machine and select Edit Settings.
  2. Click on the network adapter and change the portgroup for the network adapter to one of the portgroups located on the vDS.
Using Migrate VMs to Another Network option can cause a virtual machine to briefly be disconnected from the network. This brief network disconnect may result in the vCenter server not being able to complete its own transition to the vDS.

Additional Information

For more information  on vSphere 6.7 Networking , see  About vSphere Networking
For information regarding the migration of Service Console or VMkernel ports, including management VMkernel ports, see Migrating Service Console and/or VMkernel port from Standard Switches to Distributed Switch (1010614).
How to migrate service console / VMkernel port from standard switches to VMware vSphere Distributed Switch
vSwitch または PortGroups と vDS または dvPortgroups の間での仮想マシンの移行
在 vSwitch 或端口组与 vDS 或 dvPortgroup 之间迁移虚拟机