ZFS and Jail :: nullfs mount :: nothing visible from host

Miroslav Lachman 000.fbsd at quip.cz
Thu Dec 8 16:14:19 UTC 2016


SK wrote on 2016/12/08 15:22:

> So far I have tried to follow as many google results as possible using
> jail, zfs, mountpoint, nullfs, manage zfs and so on. There were a few
> sites coming up again and again but they were talking about ezjail (not
> that I have anything against it, but I would prefer to be able to use
> the base system as it is -- might help me learn a few things that ezjail
> will hide from me :D)

If you want to manage ZFS dataset from withing a jail, then you need to 
use zfs set jailed=on property (see man zfs). But this data set cannot 
be mounted as nullfs, it should be dedicated to the jail.

You don't need ezjail because ezjail cannot do anything more than you 
can do. It is just a shell script wrapper.

Miroslav Lachman



More information about the freebsd-jail mailing list