How to Migrate a VM Between Hosts Using vCenter Server (vMotion)


vMotion lets you move a running virtual machine from one ESXi host to another without powering it off and with no noticeable downtime. It is one of the most impressive vSphere features to demonstrate in a home lab, and it is exactly what keeps enterprises running during host maintenance.

Migrate VM between hosts with vMotion on shared storage

VMOTIONZERO DOWNTIMEENTERPRISE LABtimer 35 MIN LAB
NH
Nurul Huda AUTHORInfrastructure & Cloud Architect · Verified 2026

print Print Lab

● VALID ON THE CONFIG BELOW

dns LAB TOPOLOGY & PREREQUISITES

# example values used while writing and testing this guide

HOSTS

Count2 x ESXi 8.0U2
Shared storageone datastore
Toolslatest on guests

VMOTION NETWORK

Kernel portvmk1
MTU9000 jumbo
Subnetdedicated /24

VM UNDER TEST

Memory4 GB
CPU2 vCPU
Swapsnone during move

01constructionBefore You Migrate VM Between Hosts

  • Two or more ESXi hosts managed by vCenter Server
  • A shared datastore (NFS, iSCSI or vSAN) visible to both hosts — a virtual NAS device works well in a lab
  • VMkernel ports enabled for vMotion on both hosts, on the same layer-2 network
  • Compatible CPUs between the hosts (or EVC mode enabled in the cluster)
  • Virtual machine hardware version compatible with both hosts

02downloadStep 1: Verify Compatibility

In the vSphere Client, check that the destination host has enough CPU, memory and network capacity, and that both hosts see the same datastore. If your hosts have different CPU generations, enable Enhanced vMotion Compatibility (EVC) on the cluster so VMs can move freely. When you migrate VM between hosts again later, the compatibility check will already be familiar.

03usbStep 2: Start the Migration Wizard

Right-click the virtual machine in the vCenter inventory and choose Migrate. Select Migrate only compute resources (change host), pick the destination host from the list, and review the validation checks vCenter performs automatically.

04terminalStep 3: Watch the vMotion

Confirm and watch the task bar: vCenter pre-copies the VM’s memory to the destination host, briefly stun the VM, switch it over, then cleans up. The whole process usually takes seconds to minutes, and the VM never stops running. During maintenance you can also combine this with migrating storage or moving VMs into and out of maintenance-mode hosts.

05settings_ethernetStep 4: Verify

After migration, confirm the VM now shows the new host in the Summary tab, keep pinging the VM from another machine during the move to prove there was no downtime, and check the hosts’ task history for warnings.

Related Content

▶ UP NEXT IN THE VCENTER TRACK

Create a Virtual NAS Device (TrueNAS)

The vCenter track is done. Next, build shared storage with TrueNAS, because vMotion works best on shared datastores.

rocket_launch Launch Next Lab