How to pass Zpool to LXC Debian 12 Container.

Jarvar

Active Member
Aug 27, 2019
317
10
38
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:

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!