Passing a limited amount of disk devices to jails

Miroslav Lachman 000.fbsd at quip.cz
Fri Jun 9 09:07:41 UTC 2017


Willem Jan Withagen wrote on 2017/06/09 10:45:
> Hi,
>
> I'm writting/building a test environment for my ceph cluster, and I'm
> using jails for that....
>
> Now one of the things I'd be interested in, is to pass a few raw disks
> to each of the jails.
> So jail ceph-1 gets /dev/ada1 and /dev/ada2 (and partitions), ceph-2
> gets /dev/ada2 and /dev/ada3.
>
> AND I would need gpart to be able to work on them!
>
> Would this be possible to do with the current jail implementation on
> 12-CURRENT?

I don't think jail will ever have access to raw / block devices. It is 
disallowed by security design.
Wouldn't it be better to use bhyve guests for this environment?


Miroslav Lachman


More information about the freebsd-jail mailing list