Migrating to a new fresh vCenter server using the vSphere Distributed Switch (VDS) prior vSphere 5.1 is not a easy task. The VDS is part of the vCenter configuration. If you try to import hosts that have a VDS configuration to a new vCenter server the following warning will appear:
"The distributed Virtual Switch corresponding to the proxy switches d5 6e 22 50 dd f2 94 7b-a6 1f b2 c2 e6 aa 0f bf on the host does not exist in vCenter or does not contain the host."
Kenneth van Ditmarsch describes in his blog post “ Migrate to new vCenter Server while using dvSwitches” how to migrate from a vCenter 4 server with a VDS switch to a new vCenter 5 server. This can be a risky and time consuming task task.
vSphere 5.1 supports to backup and restore the VDS configuration. This makes it possible to migrate the VDS configuration on a new vCenter server very easily, without to migrate the VDS first to the vSS on the old vCenter server and on the new vCenter server migrate the vSS to the VDS.
Here are the steps:
1. Upgrade the old vCenter server to version 5.1
2. Install a new vCenter 5.1 server and create a datacenter and cluster
3. Export the DVS configuration on the old vCenter server
4. Disable HA on the old cluster(s)
5. Disconnect all the hosts on the old vCenter server
6. Import all the hosts on the new vCenter server. The following warning is displayed and it is safe to ignore the warning:
7. Import the VDS configuration on the new vCenter server
8. Remove the disconnected hosts on the old vCenter server
After the VDS import, the warning will disappear and the VDS configuration is migrated to the new vCenter server.