Live migration
Live migration moves a running virtual machine from one host to another with only a very short pause, so its work continues on the new host.
Live migration moves a running virtual machine to another host without shutting it down. The memory, the processor state, and the device state are copied across the network. The virtual machine pauses only for a moment at the end, often for less than a second. Programs inside it keep running and usually keep their network connections.
A common method copies memory in rounds while the virtual machine keeps running. Each round sends the memory pages that changed since the round before. When few changed pages remain, the hypervisor pauses the virtual machine, sends the rest, and resumes it on the new host. The disk is either on shared storage or copied as well.
Cloud providers use live migration to maintain or replace hosts without stopping the virtual machines on them. It also helps balance load, by moving virtual machines away from busy hosts. For sandboxes, it lets long-running work survive host maintenance. A sandbox can move to another host while its processes, files, and memory stay intact.