The vSwitch configs are stored on the hosts so you dont need to worry about the VMs.
I usally do this when i migrate to another vCenter.
0. The hosts should NOT be in maintenace mode and the VMs should be running as normal during this operation.
this is due to two things, 1. The VM needs to be added to the new vCenter, VMs will be added to the vCenter inventory automaticlly when they are still added to a host inventory. 2. You dont want any downtime on the VMs, so keep them running.
This will not affect the VMs.
1. Configure the new vCenter as desired
2. Disconnect the hosts from the old vCenter
3. When the hosts are disconnected, remove them from the old vCenter
this will remove the vCenter configs on the hosts and cleanup any certificates tied to the old vCenter.
4. Add the hosts to the new vCenter.
5. Done :smileyhappy:
It will look a little bit scary on the old vCenter when you remove the hosts, when VMs starts dissapearing, this is normal
as they are only removed from the vCenter inventory but not the host inventory, they will keep running on the host as nothing happened at all :smileygrin:
I have done this many times under full workload hours without any impact on the VMs
Note..
If you use DVSwitches then you need to export the old switches and import them to the new vCenter so that the VMs are assigned to
the new DVS before you add the hosts.