I created a profile as follows:
lxc profile create nsmount
lxc profile set nsmount raw.lxc lxc.aa_profile=unconfined
lxc profile device add nsmount fuse unix-char path=/dev/fuse
lxc profile device add nsmount loop-control unix-char path=/dev/loop-control
I then created a container:
lxc launch ubuntu:22.04 test-lxd --profile default --profile untagged -c boot.autostart=true -c security.privileged=true -c limits.memory=2048MB -c limits.cpu.allowance=20%
After some reading, I tried to allow the creation of loop devices like this:
printf 'lxc.cgroup.devices.allow = c 10:237 rw\nlxc.cgroup.devices.allow = b 7:* rw' | lxc config set test-lxd raw.lxc -
I then applied the new nsmount profile:
lxc profile assign test-lxd default,nsmount,untagged
I connected to the container:
lxc exec test-lxd bash
Any idea what I need to change to get the loop device above to mount?