Passthrough a ZFS dataset to LXC to create a Samba File share

Jsingh

Well-Known Member
Oct 23, 2018
34
0
46
Hello,
I am creating a SMB Server for my office. I have ZFS Pool which is shared by VMS and File share I am planning to deploy.
I want to keep the proxmox as a hypervisor and not host SAMBA from it.

The other option is LXC with turnkey file server which creates a single large file which is something I am uncomfortable with.

Is there any way directly mount a zfs dataset directly in to the container rather than single creating a large file.
 
You can use bind-mounts to bring the datasets mountpoint from the host into the LXC. But keep in mind that you need to edit the user remapping in case you are using a unprivileged LXC. See here.