Libvirt disaster recovery exercise


Now that was rebuilt/migrated on a libvirt hypervisor for the most part, it would be good to run a disaster recover exercise. In a nutshell get a qcow2 image uploaded to the cloud for safekeeping and try to boot it on another libvirt hypervisory to verify it is usable.

Anyone interested? I’m motivated to do that July 3rd, 2021 but I’m flexible (except it has to be during the week-end because I have work during the week).


How did it go ?

1 Like

Very well. As simple as:

loic@tulipe:~/Downloads$ glance image-download --progress --file 2021-07-18-wekan-host.qcow2 c9b8a74c-a7d5-4b02-9d8a-1589aad5f77b
loic@tulipe:~/Downloads$ $ virt-install --connect qemu:///system --boot hd --name deb3 --memory 2048 --vcpus 2 --cpu host --disk path=$(pwd)/2021-07-18-wekan-host.qcow2,bus=virtio,format=qcow2 --os-type=linux --os-variant=debian10 --graphics vnc
loic@tulipe:~/Downloads$ virsh domifaddr deb3
 Name       MAC address          Protocol     Address
 vnet0      52:54:00:6a:5a:ef    ipv4

loic@tulipe:~/Downloads$ ssh debian@
Warning: Permanently added '' (ECDSA) to the list of known hosts.
Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jun 14 16:44:30 2021 from
 (eǝ) debian@wekan-host:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            983M     0  983M   0% /dev
tmpfs           200M  3.3M  197M   2% /run
/dev/vda1       9.8G  3.1G  6.3G  33% /
tmpfs           998M     0  998M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           998M     0  998M   0% /sys/fs/cgroup
/dev/loop0      100M  100M     0 100% /snap/core/11316
/dev/loop1      157M  157M     0 100% /snap/wekan/1588
/dev/loop2      100M  100M     0 100% /snap/core/11187
/dev/loop3      157M  157M     0 100% /snap/wekan/1585
tmpfs           200M     0  200M   0% /run/user/1000
 (eǝ) debian@wekan-host:~$ logout
$ echo | sudo tee -a /etc/hosts
loic@tulipe:~/Downloads$ firefox