Hi,
I am looking for a way to share my ZFS dataset (= DS) with a VM. Options that I am considering:
(1) export DS to VM via NFS: great for private network, not so great if the VM is a public host
(2) create a disk on ZVOL and attach it to the VM: easiest option, but I must allocate the storage to the ZVOL ahead. This is similar to lvm volume and is not very flexible.
(3) create a LXC to access the ZFS DS on node, then mount it on VM using sshfs. Why an extra layer with LXC? To limit access to PVE host, in case the public VM is compromised.
Perhaps there are other options that I missed? Thanks in advance for any hint.
I am looking for a way to share my ZFS dataset (= DS) with a VM. Options that I am considering:
(1) export DS to VM via NFS: great for private network, not so great if the VM is a public host
(2) create a disk on ZVOL and attach it to the VM: easiest option, but I must allocate the storage to the ZVOL ahead. This is similar to lvm volume and is not very flexible.
(3) create a LXC to access the ZFS DS on node, then mount it on VM using sshfs. Why an extra layer with LXC? To limit access to PVE host, in case the public VM is compromised.
Perhaps there are other options that I missed? Thanks in advance for any hint.