Package: lxd Severity: important Hello,
I had an issue when using a btrfs backend loop file. To confirm the issue, I bootstrapped a fresh Deb12 install. This is the method to reproduce the issue. After installed lxd,btrfs-progs and done the init wizard : lxc storage create pool_btrfs_1 btrfs size=50GiB lxc profile device add default root disk path=/ pool=pool_btrfs_1 lxc profile device add default ethlan nic name=ethlan nictype=bridged parent=brlan lxc init images:debian/12 Deb12test -v All seems to be fine, trying to limit storage for this container lxc config device override Deb12test root size=20GiB Error: Failed to update device "root": Failed to run: btrfs qgroup create 0/257 /var/lib/lxd/storage-pools/pool_btrfs_1/containers/Deb12test: exit status 1 (ERROR: unable to create quota group: File exists) I've the issue Try to create a new container lxc init images:debian/12 Deb12test2 -v Creating Deb12test2 Error: Failed instance creation: Failed creating instance from image: Failed to run: btrfs qgroup create 0/256 /var/lib/lxd/storage-pools/pool_btrfs_1/images/3971d4f65afc45437f1a688151487848e966088de60e995d9a6e638e292bae71: exit status 1 (ERROR: unable to create quota group: File exists) Issue again, no more action possible :( After some previous tests I discovered this issue is related to btrfs 6. Downgrade it : wget http://snapshot.debian.org/archive/debian/20220922T121957Z/pool/main/b/btrfs-progs/btrfs-progs_5.19.1-1_amd64.deb dpkg -i btrfs-progs_5.19.1-1_amd64.deb (no reboot performed) lxc init images:debian/12 Deb12test2 -v Creating Deb12test2 lxc config device override Deb12test root size=20GiB Device root overridden for Deb12test All works fine ! I found this issue on LXD tracker https://github.com/lxc/lxd/issues/11210 Therefore, changelog of 5.0.2 seems have the fix : https://linuxcontainers.org/lxd/news/#lxd-502-lts-has-been-released "lxd/storage/drivers/driver/btrfs/utils: Fix getQGroup to suport BTRFS >= 6.0.1" I will also try to inform upstream devs. I will keep you if I have news from them. Sylvain