I have LXD 3.0.0 running on Arch Linux. I use ZFS as storage backend. I’ve created an privileged container but I get some errors that look like the container is unprivileged in fact.
thanks for the quick reply! I create my containers doing some steps with ansible (commands not module) and somehow didn’t get the idea to test manually
I did now a simple call to “lxc init” and it worked afterwards. I’ll check my other steps and came back if there is some unexpected behaviour (from my point of view)
Yep, it’s fine to set it, the filesystem gets remapped on the next container start. So it’s usually best to do that early and then restart the container as adding more stuff to the container before the restart will just make it slower.
You can also do it at create time with lxc init ubuntu:16.04 blah -c security.privileged=true which then saves you even more time.
Unfortunately I was not able to reproduce my issue anymore so I did not find any root cause. However setting security.privileged at the beginning is good idea, thank you!