possible to mount zfs mountpoint to a vm?

andrewzah

New Member
Sep 7, 2020
1
0
1
55
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.
 

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!