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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!