In the game, this was fixing a diner tablePlay “Fix the Table! Move the Guests”
| In the game | In real IT |
|---|---|
| Diner table | Server (ESXi host) |
| Table under repair | Host going into maintenance |
| Group of guests | Virtual machine (VM) |
| People / plates | vCPU / memory |
| Moving while still eating | vMotion |
| Feuding, so separate tables | Separate-host rule |
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
- DRS: watches each host’s load and automatically adjusts where VMs run. It also evacuates VMs for maintenance
- HA: when a host fails, automatically restarts the VMs that were on it on other hosts. You keep enough free room for that at all times
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.
- 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