My first walkthrough is for a cluster migrating to a different vCenter Server. This is the traditional vDS to standard switch to vDS. The reason for this way is to maintain up time for my VMs and supportability. Moving a host to a new vCenter Server without first going to a standard switch is not supported. I will go over each step. In my case, management and vMotion VMkernel ports are already on dedicated standard switches. Though, there is also a method to migrate the VMkernel ports with no downtime that is very similar. Only VM network traffic is on my vDS.
Each host needs to already have at least two physical NICs to avoid downtime for VMs and VM traffic. If you keep a continuous ping on a few VMs during this process, you will only see one ping drop during each major step. Make sure you verify the root password before removing hosts from vCenter.
Source vCenter Server
- Export the vDS configuration
- Go to the vDS -> Right click the vDS
- Export Configuration
- Select the Export the distributed switch configuration and all port groups option
- Create a Standard Switch and the virtual machine port groups
- No physical uplinks on every host at this moment
- A new port group that matches every port group that’s on the vDS
- Remove one of the physical NICs from all hosts
- Go to the vDS -> Manage Hosts
- Select all of the hosts
- Remove one of the two physical NICs
- Next -> Next -> Finish
- Add the physical NIC that was removed to the new standard switch on each host
- Migrate VMs in bulk in each port group
- Go to the vDS -> Migrate Virtual Machine Networking
- Select the source vDS port group
- Select the destination standard switch port group
- Select all VMs
- Finish
- Repeat these steps for each port group
- Remove the last physical NIC on the vDS
- Ensure no VM is connected to the vDS
- Go to the vDS -> Manage Hosts
- Select all of the hosts
- Remove the last physical NICs
- Next -> Next -> Finish
- Remove the hosts from the vDS
- Go to the vDS -> Click the host tab
- Right click each host and click remove
- Remove the hosts from the vCenter Server
- Right click a host -> Disconnect
- Right click a host -> Remove
- Repeat for each host
Destination vCenter Server
- Create a new cluster
- Add hosts to the new cluster
- Right click on the cluster
- Add host -> next through wizard
- Repeat for each host
- Import the vDS configuration at the destination vCenter Server
- Do not preserve the original vDS and port group identifiers
- Preserving the vDS and port group identifiers is used when restoring the vDS within the same vCenter Server
- Remove one physical NIC from the standard switch on each host
- Add the hosts to the vDS
- Go to the vDS -> Manage Hosts
- Select all of the hosts
- Add the physical NIC that was previously disconnected
- Next -> Next -> Finish
- Migrate VMs back to the vDS
- Go to the vDS -> Migrate Virtual Machine Networking
- Select the destination standard switch port group
- Select the source vDS port group
- Select all VMs
- Finish
- Repeat these steps for each port group
- Ensure no VMs are on the standard switches
- Remove one physical NIC from the standard switch on each host
- Add the last physical NICs to the vDS
- Go to the vDS -> Manage Hosts
- Select all of the hosts
- Add the physical NIC that was previously disconnected
- Next -> Next -> Finish
- Delete the unused standard switches
Now all VMs are running in the new vCenter Server on the vDS with no downtime. I will go over another method in my next article that I used for a different cluster.
Migrate Resources to a New vCenter Server (Part 1)
Migrate resources to a new vCenter Server – Methods for Migrations (Part 2)
Migrate resources to a new vCenter Server – Cross vCenter vMotion Utility (Part 3)
Migrate resources to a new vCenter Server – Unregister old vCenter Servers (Part 4)