How do I mass move VMs to a different network?
search cancel

How do I mass move VMs to a different network?

book

Article ID: 449021

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Switching one VM from the network it's connected to (DVPortGroup), to a different network is simple - Edit Settings and change the network. 

However, when many VMs from a network need to be switched to a different network, and they are all connected to a DVSwitch (Distributed Virtual Switch), this KB can provide a way. This applies to both situations where NSX-backed DVPortGroups are in use or non-NSX-backed-DVPortGroups are in use (regular VLAN-backed DVPortGroups). This does not apply to the standard vSwitch (VSS). 

Environment

VMware ESXi 8.x
VMware vCenter Server 8.x
Distributed Virtual Switch (VDS) 8.x

Resolution

To mass move several VMs from one network (DVPortGroup) to a different network (a different DVPortGroup) follow the steps below:

  1. Right-click on the source DVPortGroup
  2. Select the option Migrate VMs to another network.
  3. Select which VMs need to be re-connected to a different network
  4. Finally select the destination portgroup to which these VMs will be connected. 



Note: this may cause a brief interruption in network connectivity especially for VMs that have a high volume of network I/O.

Additional Information

Additional documentation link:
vSphere Networking Best Practices

Additional KB link:
Migrating virtual machines between vSwitch or PortGroups to vDS or dvPortgroups