Proxmox - set up a network-shared ZFS dataset

Dec 6, 2021
8
0
6
40
Until now I was running a virtual Openmediavault and passing through the hard disks. But this got too annoying, so I decided to use Proxmox directly as file server. My plan was to set up a ZFS storage and share it via network. But I struggle to configure it properly and I cannot find any resources online which help to solve my problem (I guess since it is OpenZFS and not Oracle ZFS?)

I have a dataset local-zfs/files, which I want to share via smb and nfs. If I do
Bash:
zfs set sharesmb=on local-zfs/files
the share will appear as local_zfs_files and with no guess user access. What I acutally want, is a share usable without any login (guest user) and with a simpler name (just "files"). All the options like zfs set share=name=files,guestok=true... seem not to work or are Oracle-specific. Can I do that somehow? Or do I have to configure the smb share manually?
 
I'd recommend setting up Samba yourself, the built-in support is rather limited/broken in OpenZFS in my experience..
 
You might look into something like
This is just a script which setups a container with Samba, including some clever details that are hard to achieve manually. The storage itself would stay on the host and is "injected" into that container using mount points.

This way the chance to affect/damage the Proxmox software suite on the host is minimal.

Best regards
 

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!