---
title: 'Migrate dvSwitches to a new vCenter'
url: 'https://dirk-janalken.nl/blog/migrate-to-a-new-vcenter'
markdown: 'https://dirk-janalken.nl/blog/migrate-to-a-new-vcenter.md'
date: '2021-08-10'
description: 'Sometimes you find yourself in the situation you just need to migrate to a new vCenter. Deploying a new vCenter and configuring it is not hard to do, but the migration might have some challenges. One of those challenges for me was migrating the dvSwitches to a new vCenter, while the old vCenter is …'
taxonomy:
  tag:
    - vmware
    - vcenter
    - dvswitch
  archives_month:
    - aug_2021
  archives_year:
    - '2021'
---

# [Migrate dvSwitches to a new vCenter](https://dirk-janalken.nl/blog/migrate-to-a-new-vcenter)

   10th Aug 2021   [vmware](https://dirk-janalken.nl/tag:vmware#body-wrapper) [vcenter](https://dirk-janalken.nl/tag:vcenter#body-wrapper) [dvswitch](https://dirk-janalken.nl/tag:dvswitch#body-wrapper)  

Sometimes you find yourself in the situation you just need to migrate to a new vCenter. Deploying a new vCenter and configuring it is not hard to do, but the migration might have some challenges. One of those challenges for me was migrating the dvSwitches to a new vCenter, while the old vCenter is still running (and in use, sometimes you can't control everything).

If you have to migrate hosts to a new vCenter with running VMs on it, start with disabling HA. ![](https://dirk-janalken.nl/blog/migrate-to-a-new-vcenter/disable-ha.png)

Now export the dvSwitches using the export option.

![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/export-dvswitch-1.png)

Take the portgroups with you if you are going to migrate the hosts right after the export. ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/export-dvswitch-2.png)

At the new vCenter, import the Distributed Switch at the network tab by right clicking on the DataCenter -> Distributed Switch -> Import Distributed Switch.

After this step you can start moving hosts to the new vCenter. Disconnect the host you want to move over, without putting it in maintenance mode! ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/disconnect.png)

Now add the host to the new vCenter ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host.png)

When the host is added, add the host to the dvSwitch ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-manage-hosts.png)

![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host-to-dvswitch-1.png)

![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host-to-dvswitch-2.png)

Assign the uplinks ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host-to-dvswitch-3.png)

Migrate the VMkernel adapters ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host-to-dvswitch-4.png)

If you have no changes at your portgroups, you can skip reassiging VM's. If at your source or desination vCenter changes have been made to the ports you have to reassign the VMs ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host-to-dvswitch-5.png)

After the steps, check at the summary if it looks at least like this. ![](https://dirk-janalken.nl/user/pages/01.blog/migrate-to-a-new-vcenter/add-host-to-dvswitch-6.png)

Once completed the server is migrated and your VMs are still running in a dvSwitch!

---

## Navigation

- Parent: [Home](https://dirk-janalken.nl/index.md)
- Previous: [Using host profiles](https://dirk-janalken.nl/blog/using-host-profiles.md)
- Next: [Certification time! VCAP Deploy Passed](https://dirk-janalken.nl/blog/certification%20time%21%20vcap%20deploy.md)
