possible to mount zfs mountpoint to a vm?

andrewzah

New Member
Sep 7, 2020
1
0
1
56
I recently migrated from a freenas installation to proxmox, and did a `zpool import -a` && added `zfs` as a storage option in the web gui.

zpool status shows the pool as online, and `zfs get mountpoint lily` shows `lily mountpoint /lily default`.

I'd like to have a vm for running docker & podman containers, is it possible to mount the zfs mountpoint to the vm?
 
No, a direct passthrough of a directory to a VM is not possible. You will have to share it to the VM via CIFS or NFS.

LXC containers can get a bind mount to somewhere else on the host. But running docker nested in an LXC container comes with its own issues. You call what is easier for you.