Lightweight NFS share solution as a VM/CT in Proxmox/Host to share a Host disk

logui

Member
Feb 22, 2024
84
15
8
I have a Proxmox cluster with 3 nodes, I would like one of the nodes to provide the service of an NFS share, it could be a VM or a CT, the disk for the NFS share will be a disk on the node/host, I don't know if using a directory within an existing disk in the node/host is viable for the NFS share? I have a large SSD, that ideally I would like to share across multiple services, not only dedicated to the NAS

I want a lightweight solution, I know I can install TrueNAS as a VM, but that seems overkill to me, knowing that I only need a simple NFS share, also, I know I can install NFS natively in Debian as well in the node/host, but, I want to keep the node/host configuration standard/clean across the cluster, all of them the same, therefore the need to have VM/CT to run all the specialized services on the nodes/host.

Any recommendation will be appreciated, thanks
 
Last edited:
I would do direct with pve so you don't need to know a different system in trouble case also. And as the storage is in a pve a vm/lxc would not help if that node is down.
 
I would do direct with pve
If I understand you correctly, you mean on the PVE host node itself; not in a VM/LXC on it. I must disagree with this. In my opinion the less changing/adding components to the PVE host node the better. The last thing I would want running/configuring on the node itself is a fileserver! You could end up with lots of mess. Think about needing todo a host Proxmox re-install etc.
Let us not forget: Proxmox is a hypervisor system - not just another Linux distro!

If I misunderstood your intention - please ignore this comment.
(I'm anyway putting it out there for others who may understand likewise).
 
There's nothing magic there, just install nfs server, enable service and edit just 1 file /etc/exports - that's all, for this 1 file I don't need other OS.
I thought you want a lightweight (and even fastest) solution but anyway go with vm/lxc, got kernel iommo and passthrough problems on updates etc if you want to. Good luck :)
 
Last edited:
There's nothing magic there
I didn't say its hard todo. I am just opposed to having it on the Proxmox host node.

I'd also like to add a security concern of giving network-wide r/w rights in my HV root system. There are workarounds - but secure-containerization in my books is definitely the way to go.
 
Keep in mind there are security holes in containers also and must be fixed regulary, see CVE's.