I added my username to the LXD group, logged out, and logged back in. However, when I try to create a new container:
pgoetz@finglas ~$ lxc init ubuntu:22.04 apptainer-build
cannot open path of the current working directory: Permission denied
This all works on several other systems I work with, with most of the details the same (well, the others are 20.04/22.04 bare metal installs), so I’m assuming this is an issue (like the last time I asked a similar question) with apparmor and the location of my home directory? But since I’m presumably trying to create a container in /var/snap/lxd, I’m not sure what my home directory has to do with it.
Any ideas? I’m planning on rolling out user-accessible container solutions at some point, so need to get these issues ironed out. And yes, I’m trying to use an LXD container to build apptainer. <:)
Hmpf. I didn’t update anything on this system, and it’s been less than a day since I tried to initialize this container, but now the error message has magically changed:
pgoetz@finglas lxd$ lxc init ubuntu:22.04 apptainer-build
Sorry, home directories outside of /home needs configuration.
See https://forum.snapcraft.io/t/11209 for details.