I’ve create a ZFS pool for all my containers and would like to store unprivileged ones there as well. I’ve found a few discussions about this, but nothing that seems straight forward.
I tried manually creating a ZFS dataset where
lxc-create would and
chowning it to the uid I expect the container root to have. However, this doesn’t get me far:
$ lxc-create -n unpriv -B zfs -t download -- -d alpine -r 3.6 -a amd64 $ Unprivileged users cannot create zfs containers.`
Is this possible to get right, or is it a hack that’s hard to maintain and more trouble than it’s worth?
Might creating a privileged container with ZFS backend and converting that to an unpriviliged one work?
Any ideas (or guides) welcome!