Closed tlaurion closed 5 months ago
@tlaurion What this looks like is that /var/lib/qubes was not setup as a subvolume, and the util mis-parsed the error message.
@tlaurion You are new to Btrfs so may want to look into how many pools the Qubes installer created with qvm-pool
. Also check which one is default with qubes-prefs default_pool
(you can use it to change the default). Possibly '/var/lib/qubes' is not where you want to be restoring VMs?
@tlaurion Let me know if you need guidance on converting the Qubes pool into a subvolume. I am going to relax this requirement for receive/restore, but it will still be necessary for send/backup unless someone thinks of an efficient workaround.
@tasket that testing laptop had bees installed before restoring. Maybe that changes the subvolume volume setup as opposed to the installer defaults for btrfs over q4.2.1? I will be able to test Tuesday on non-bees setup laptop replicate of bees setup, with only difference being bees deployed configured and running.
Self build rpm for fedora-37 rpm at https://github.com/QubesOS/qubes-issues/issues/6476#issuecomment-2054219918
Discussion under https://forum.qubes-os.org/t/bees-and-brtfs-deduplication/20526
Qubes-builderv2 poc (non-working yet) at https://github.com/tlaurion/qubes-bees where spec file there was used to build rpm manually.
@tlaurion Let me know if you need guidance on converting the Qubes pool into a subvolume. I am going to relax this requirement for receive/restore, but it will still be necessary for send/backup unless someone thinks of an efficient workaround.
@tasket does wyng requires anything to be done on top of q4.2.1 default installer option other then choosing btrfs as partition scheme?
I will deferenciate bees modified btrfs subvolume options vs standard install of btrfs but yeah, I'm new to btrfs.
I just need to understand how to setup things to have things compatible with bees so that on receive/restore ops, bees dedup on the fly block volumes and if I understand well, bees only works on subvolume so I guess bees modified something and I missed the details because unaware.
@tlaurion Yes, whichever path is being used by the Qubes reflink pool (possibly /var/lib/qubes) needs to be converted into its own subvolume (instead of just being a plain dir on a Btrfs filesystem) for send
and monitor
to work. I think I posted a shell script to do that somewhere but I don't remember now. There is a good script in this Qubes forum post; the main thing I'd do different is to also stop the 'qubesd' service right after the qvm-shutdown
step, then start it again at the end.
BTW, receive
should no longer have any issue with restoring to a non-subvolume path or a path on a non-CoW storage system (so non-subvol, or Ext4 or whatever is now OK). Maybe I'll even get receive working with non-Linux systems.
This is
And wyng-util-qubes from 09beta.
Some trace extract: