You are not logged in.
Problem:
For background on this issue I did not want Timeshift messing with my VM's as it had a habit of breaking them in past when I did role backs using rsync. so I put them in a subvolume to insulate them from rollbacks.
this was the solution I used:
Shutdown libvirt and all VMs
mv /var/lib/libvirt /var/lib/libvirt-old
btrfs subvolume create /var/lib/libvirt
mv /var/lib/libvirt-old/* /var/lib/libvirt/.
rmdir /var/lib/libvirt-old
this is what the subvolume layout looks like:
ID 256 gen 2699 top level 5 path timeshift-btrfs/snapshots/2022-09-22_18-29-20/@
ID 258 gen 2868 top level 5 path @log
ID 259 gen 2721 top level 5 path @.snapshots
ID 260 gen 13 top level 256 path timeshift-btrfs/snapshots/2022-09-22_18-29-20/@/var/lib/portables
ID 261 gen 14 top level 256 path timeshift-btrfs/snapshots/2022-09-22_18-29-20/@/var/lib/machines
ID 367 gen 2826 top level 256 path timeshift-btrfs/snapshots/2022-09-22_18-29-20/@/var/lib/libvirt
ID 414 gen 2868 top level 5 path @home
ID 418 gen 2699 top level 5 path timeshift-btrfs/snapshots/2022-09-23_11-28-31/@
Recently I rebuilt my system so i can use BTRFS with timeshift and corrected a couple errors with the sub volume lay out, the above layout reflects that. When I tried using my vm after the rebuild and a test rollback this is the error i received:
Error starting domain: Cannot access storage file '/var/lib/libvirt/images/AnalystVM.qcow2' (as uid:968, gid:968): No such file or directory
the most recent method i used to try and fix it was the following:
sudo mount /dev/nvme0n1p3 /mnt -o subvolid=367
cp -a --reflink=always /mnt/ /var/lib/libvirt
unmounted /mnt
this solution did not work as i can still cant access my vm's
Last edited by Unburned3496 (2022-09-27 13:20:03)
Offline