Hi guys,
what is the recommended way to share ZFS dataset from Proxmox host to:
- unprivileged LXC containers and/or VMs
- all guests Linux
- CTs and VMs in VLANs on
- Proxmox 6.2
Is there a way to use ZFS native NFS share for that?
I tried:
- in Proxmox CLI:
- in Proxmox webgui:
- Datacenter > Storage > Add NFS >
- in Proxmox CLI:
- or in /etc/pve/lxc/[CTID].conf:
In the LXC container I can see the mounted share in
Also, is a access whitelist like
Am I missing some (safe) ZFS share parameters?
In terms of simplicity and security (privileged CTs running services are no go).
Or is there some alternative, better way to set up the sharing?
Thanks!
what is the recommended way to share ZFS dataset from Proxmox host to:
- unprivileged LXC containers and/or VMs
- all guests Linux
- CTs and VMs in VLANs on
vmbr1
(LAN), with local IPs from 10.0.1.0/24
, 10.0.2.0/24,
...- Proxmox 6.2
Is there a way to use ZFS native NFS share for that?
I tried:
- in Proxmox CLI:
Code:
apt-get install nfs-kernel-server
zfs create tank/share
pvesm add dir tank-share2 --path /tank/share
pvesm set tank-share --content rootdir,iso,snippets,vztmpl,images
zfs set sharenfs=on tank/share
- Datacenter > Storage > Add NFS >
Code:
id: share
server: 127.0.0.1
export: /tank/share
pct set CTID --mp0 /tank/share,mp=/shared
- or in /etc/pve/lxc/[CTID].conf:
mp0: /tank/share,mp=/shared
In the LXC container I can see the mounted share in
/shared
but I am getting read-only access.Also, is a access whitelist like
zfs set sharenfs="rw=@10.0.1.0/24" tank/share
expected to be working in this scenario?Am I missing some (safe) ZFS share parameters?
In terms of simplicity and security (privileged CTs running services are no go).
Or is there some alternative, better way to set up the sharing?
Thanks!