How to Restore a Broken KVM VM from Backup
How to Restore a Broken KVM VM from Backup #
Sometimes things go wrong with virtual machines — maybe a filesystem corruption or a bad update. When that happens, restoring from a backup is your best friend.
Here’s how I restored my broken KVM VM disk image using weekly backups stored on a NAS share.
The situation #
I have a VM called runner.home.arpa running on KVM, and its disk got corrupted. The VM disk images live at /var/lib/libvirt/images/, and my backups are stored on a NAS mounted at /mnt/backups/runner.home.arpa/.