Mmm fair point. Didn’t cross my mind to try with unprivileged containers as for a local file server working with transposed UIDs would’ve been prohibitive. Now I think about it I can see use cases for what you’re asking.
I’m on v6.1 or 6.2 but either way it’s working since I posted
9p is cool, but I couldn't browse the shares over Samba on the Mac when I tried it that way.
So far this approach with rbind into lxc seems to be working for me.
Cheers
I also have a ton of nested ZFS datasets. Burnt through much of the evening trying to get rbind set up in LXC. In the end it was simple:
add your mounts to /etc/pve/lxc/<ctid>.conf :
lxc.mount.entry: /mnt/storagepool mnt/storagepool none rbind,create=dir,optional 0 0
lxc.mount.entry...