Best approach to share host FS to VM, NFS direct or NFS via LXC?

Rxunique

New Member
Feb 5, 2024
17
0
1
I just went through a journey trying to share ZFS dataset to VMs rather than mount it as Hard Disk.

The goal is to have files accessible without VM running.

I see it beneficial dealing with large files stored on spinning rust, such as surveillance videos or photo gallery.

It's quite simple to get Samba working with Windows VM, there are several youtube walk through.

But to get NFS via LXC, it's a deep rabbit hole, needing privileged LXC and permission edit

https://theorangeone.net/posts/mount-nfs-inside-lxc/
https://forum.proxmox.com/threads/nfs-server-in-lxc.105073/#post-648826
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers

All these extra steps and bypassing security makes NFS via LXC feels counter-productive, might as well just run NFS on proxmox direct.

Is it a bad idea to run NFS direct on proxmox? Privileged LXC doesn't seems to be much better here

Is there any other alternative to mount host FS to VM in proxmox?
 
Last edited:

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!