I just backed up a remote system using rsync. I have a directory that I can chroot
into and would now like to boot it up as a VM. I know that qemu
has -kernel
capability, as well as -drive file=fat:
virtual FAT feature. I was hoping that maybe with -append
and a bit of modifying of /etc/fstab I could boot the thing up, but unfortunately the early tests suggest a problem with device files in the backup directory:
# kvm -kernel boot/vmlinuz-4.15.0-99-generic -drive file=fat:`pwd`
qemu-system-x86_64: -drive file=fat:/home/d33tah/workspace/hakierspejs/backup/mounted: Could not read directory /home/d33tah/workspace/hakierspejs/backup/mounted/dev/fd/12
What other options do I have if I want to have the image bootable with minimum hassle after each iteration of backing up? I'm looking for a "set up once, use often" use case.