1-min guide

vMotion and maintenance mode

vMotion is a VMware vSphere feature that moves a running virtual machine (VM) to another physical server without stopping it. Before servicing a physical server, you first move all its VMs elsewhere.

Reading time: about 1 min

More in the 5-min version →

In the game, this was fixing a diner tablePlay “Fix the Table! Move the Guests”

In the gameIn real IT
Diner tableServer (ESXi host)
Table under repairHost going into maintenance
Group of guestsVirtual machine (VM)
People / platesvCPU / memory
Moving while still eatingvMotion
Feuding, so separate tablesSeparate-host rule
Host ANeeds maintenance VM (Web) VM (DB) moving Host BHas free room VM (App) VM (DB) vMotion (copies the memory) To users, it keeps running without stopping
Once every VM has moved and Host A is empty, you can work on it in maintenance mode

Virtualization and “hosts”

Running many computers (VMs) on top of one physical server is called virtualization. The physical server underneath that runs the VMs, such as one running VMware ESXi, is called a “host.” Each VM runs by borrowing a share of the host’s CPU and memory.

How vMotion works

vMotion copies the contents of a VM’s memory to the destination host over the network. It also chases down and copies any parts rewritten during the copy, then switches over in the final instant. So to users, it keeps running without stopping.

Maintenance mode

Before replacing parts or updating, you put the host into “maintenance mode.” It can’t enter while even one VM remains, so you first move them all off with vMotion. The destination needs free room for both CPU and memory.

DRS and HA

A rule like “keep the two DB servers with the same role on separate hosts” (anti-affinity) is also common. It ensures that if one host breaks, both don’t go down together.

Summary
  • vMotion moves a running VM to another host without stopping it
  • Before maintenance, move every VM off the host
  • The destination needs free room for both CPU and memory
Go further: 5-min deep divevMotion in depth: how live migration works, DRS and HAHow memory that keeps changing gets copied “on the chase,” EVC for matching CPU compatibility, and the crucial difference from HA.Read the 5-min version →