How to pass Zpool to LXC Debian 12 Container.

Jarvar

Well-Known Member
Aug 27, 2019
317
10
58
I had run a VM previously and passed an external USB HDD with zpool on it.
Was thinking of going lighter with a Container but can't figure out how to pass the zpool through and make it accessible on the container side.
Please help.
 
There is no difference in passtrough a filesystem or add it to the host. It’s a container ;)
 
Was thinking of going lighter with a Container but can't figure out how to pass the zpool through and make it accessible on the container side.
Technically it's lighter, yet more to do:
  • import pool on the host
  • bind-mount every dataset you want to use to your container
via USB passthrough, you just have to import the pool.
 
So I managed to use
pct set 205 -mp0 /usbpool002/dataset021/store021,mp=/store021
or editing the 205.conf
I managed to get it working, but now I have to figure out permissions on making the zpools accessible/writable with the PBS Container.
Thank you,
Is there an easier way?

this is for the datastore

Code:
ls -l /store021
total 17
drwxr-xr-x 3 nobody nogroup 3 Aug 12 03:07 ns
drwxr-xr-x 2 nobody nogroup 2 Aug  9 15:12 vm

Did this but there's no permissions to even view the datastore once it's added in the datastore.cfg
 
Last edited: