I recently switched to Fedora. (Fedora 36 GNOME). I manually partitioned my ssd: btrfs with @/ and @/home.
To backup my system I use Timeshift. Only @/ is backuped.
Now I installed QEMU and VirtManager and saw, that all the files are on @/. (Formerly I used Virtualbox and there was a folder in $HOME for that…)
I moved the qcow2-images in my $HOME folder. But the other things are still in @/.
The snapshots I do with VirtManager are stored in this qcow2-files, so the snapshots itself are in my $HOME-folder, is that right?
I’m afraid, that a rollback with timeshift could make problems to the configuration of the virtual machines or the snapshots (I saw xml-snapshot-files in a subfolder of /var/lib/libvirt. That is necessary to know which snapshots are done in the qcow2-image, am I right?)
What should I do further, to avoid problems with a timeshift-rollback?
I already considered that. But I already moved the qcow2 files to a separate folder in $HOME. So it wouldn’t make a difference I think.
But my question is, if there are any other files, where changes could break the VM.
If I would do a rollback with timeshift, all data except the qcow2 files would set to a former state. And I am afraid, that there could be problems.
E.g. when I did a VM-snapshot and do a timeshift-rollback to a timeshift-snapshot from before the VM-snapshot was done, the VM-snapshot is in the qcow2 file but the VM-snapshot-xml-file in /var/lib/libvirt/qemu/snapshot/VMNAME is removed. That would be a problem, or not? Are there other files which could make problems?
After executing them, I have run sudo btrfs subvolume list / and the result was:
ID 256 gen 5964 top level 5 path @home
ID 257 gen 5964 top level 5 path @
ID 258 gen 5935 top level 257 path var/lib/machines
ID 263 gen 5957 top level 257 path var/lib/libvirt
ID 264 gen 5940 top level 5 path timeshift-btrfs/snapshots/2022-08-15_12-47-40/@
It seems that var/lib/machines was already created automatically. But there are only the qcow2 images in it. Now the whole libvirt is excluded from changes by timeshift.
Timeshift does only snapshots of root, right? All other subvolumes are excluded except of home, when you set the checkbox “Include @home” (I didn’t set it…)
I wonder only because there is no other checkbox except for the inclusion of home subvolume.
But now I have another problem: the libvirtd.service doesn’t start anymore at startup. I did a sudo systemctl enable libvirtd and sudo systemctl start libvirtd but after restart it’s again inactive (dead):