access zfs pool from vm

lxiosjao

Member
Mar 21, 2021
64
1
13
Hi,

I have :
- Host : zfs on root
- Controller : SAS 9750-8i (HBA sata) (not installed yet) --> I currently use motherboard sata controller
- Storage : multiple zfs pool
- multiple VM (linux, windows, ...)

I read that the host has to be clean, and if we have to install something it is a good practice to install it on a VM (or CT).
So i want to use docker on a VM.

Objectif
- Openmediavault VM for docker
- Windows VM
- others VM


VM : Openmediavault for docker.
All the deployed applications (plex, nextcloud, ...) will be install in a docker container.
- Container will be in the zfs pool.
- Data like movies, pictures, .... will be in an other zfs pool.

Question
What is the good practice to access zfs pool from the openmediavault vm ?
Can I install zfs on the VM and create a pool from it ?
- hba passthrough to the vm ?
- or nfs share from host to the vm ?

- Is it possible to passthrough the hba controller to the Windows and Openmediavault VM simultaneously ?
If not, how am I supposed to access zfs pool from others vm ?

Thanks
 
Last edited:
- hba passthrough to the vm ?
- or nfs share from host to the vm ?
Those are the only two options you have.

- Is it possible to passthrough the hba controller to the Windows and Openmediavault VM simultaneously ?
If not, how am I supposed to access zfs pool from others vm ?
You cannot. There can only ever be one OS accessing the ZFS pool.

If you want multiple guests to access the pool you either create larger VM disks or if there is some shared data that you want directly there, use network shares.