Learn

Lesson 4 of 7 · 1 min

KVM (libvirt)

The host itself, or SSH to it.

Where: on the KVM host (address qemu:///system), or on a machine that reaches it over SSH (qemu+ssh://root@kvm-01/system, with the key in the service’s SSH folder).

Backups: libvirt’s pull backups over NBD, a checkpoint per backup and QEMU’s dirty bitmaps for what changed; the file systems frozen first by the guest agent when the job asks. A machine that is off is read with qemu-nbd, whole each time.

Restores: as a new machine (new name, disks, identity and network addresses), in its place (the machine off), or as disk files.

Running from a backup: within a minute, on a KVM host of the machine the program runs on; Move to its storage… copies its disks into qcow2 files of the host while it runs.

Tags: the #words of a machine’s description:

virsh desc mail-server --config --new-desc "Mail relay #production"