VMware Cloud Community
sandroalvesbras
Enthusiast
Enthusiast
Jump to solution

How to migrate a clustered host to another vcenter?

Hi,

i need to migrate three vpshere hosts to another vcenter that are part of a cluster.

I know that I just need to add the host to the other cluster and that's fine. But I already need to prevent VMs from migrating from one to the other.

What is the correct procedure?

Thank you.

1 Solution

Accepted Solutions
ZibiM
Enthusiast
Enthusiast
Jump to solution

It heavily depends on the virtual switch used

With standard switch this is kinda easier:

1. Change the DRS on the old cluster to partially automated

2. Disconnect the host from old vcenter

3. Connect the host to the new vcenter as standalone

4. Move it to the destination cluster

5. Repeat with other hosts

With distributed switch it is bit more complicated.

Your new vcenter won't recognize distributed switch details you had on the old vcenter

Migration steps should be more like this:

1. Change the DRS on the old cluster to partially automated

2. Disconnect the host from old vcenter

3. Connect the host to the new vcenter as standalone

4. Connect the host to the new distributed switch -> do this really carefully and slow

a) connect the host and first uplink

b) do the vmkernel migration to the correct portgroups

c) do the VM network migration to the correct portgroups

d) connect second uplink

5. Move it to the destination cluster

6. Repeat with other hosts

7. On the old vcenter remove the migrated hosts from the old distributed switch

Of course all these things should be done with the assumption that new vcenter does not have issues with network connectivity to the esxi hosts

Moreover if you'd like to avoid the risk of any mishap during this switchover, then since vsphere 6.5 u2 you can do cross vcenter vmotion without issues.

There is even fling for that, that makes whole migration easier.

View solution in original post

6 Replies
IRIX201110141
Champion
Champion
Jump to solution

Disable DRS.

Regards,
Joerg

ZibiM
Enthusiast
Enthusiast
Jump to solution

It heavily depends on the virtual switch used

With standard switch this is kinda easier:

1. Change the DRS on the old cluster to partially automated

2. Disconnect the host from old vcenter

3. Connect the host to the new vcenter as standalone

4. Move it to the destination cluster

5. Repeat with other hosts

With distributed switch it is bit more complicated.

Your new vcenter won't recognize distributed switch details you had on the old vcenter

Migration steps should be more like this:

1. Change the DRS on the old cluster to partially automated

2. Disconnect the host from old vcenter

3. Connect the host to the new vcenter as standalone

4. Connect the host to the new distributed switch -> do this really carefully and slow

a) connect the host and first uplink

b) do the vmkernel migration to the correct portgroups

c) do the VM network migration to the correct portgroups

d) connect second uplink

5. Move it to the destination cluster

6. Repeat with other hosts

7. On the old vcenter remove the migrated hosts from the old distributed switch

Of course all these things should be done with the assumption that new vcenter does not have issues with network connectivity to the esxi hosts

Moreover if you'd like to avoid the risk of any mishap during this switchover, then since vsphere 6.5 u2 you can do cross vcenter vmotion without issues.

There is even fling for that, that makes whole migration easier.

sandroalvesbras
Enthusiast
Enthusiast
Jump to solution

Isn't it necessary to put it in maintenance first?

0 Kudos
IRIX201110141
Champion
Champion
Jump to solution

when you can accept a VM downtime.....

Regards,
Joerg

0 Kudos
sandroalvesbras
Enthusiast
Enthusiast
Jump to solution

IRIX201110141

Yes true. When defining maintenance, you will see that there are associated VMs.


I was reading another comment from another question and I thought ...

Wouldn't it be better to remove the HA before disconnecting the host?

When you add the host to the new cluster, can the HA of the new cluster be active?

my concern is to ensure that at no time will VMs from one host be migrated to others.

0 Kudos
sandroalvesbras
Enthusiast
Enthusiast
Jump to solution

Hi,

I ran the process successfully, but when disconnecting the host from the HA cluster I received a warning that it was necessary to evacuate the VMs from the host or select maintenance.

So I deactivated the HA of the cluster and disconnected the host.

In the new vcenter, in the cluster with HA disabled I added the host.

After adding all the hosts I activated HA.

Thank you.