ezjail and allow.mount.zfs on 9.1

Russell Poyner rpoyner at engr.wisc.edu
Sun Jan 27 16:44:12 UTC 2013


On Jan 25, 2013, at 4:09 PM, Jase Thew wrote:

> On 25/01/2013 19:36, Russell Poyner wrote:
>> An earlier thread discussed the issues involved with allowing jails to
>> mount zfs filesystems.
>> 
>> here:
>> http://freebsd.1045724.n5.nabble.com/9-1-PRERELEASE-allow-mount-allow-mount-zfs-do-not-get-passed-to-child-td5740553.html#a5742453
>> 
>> 
>> I can get it to work if I do:
>> jail -m jid=12 allow.mount.zfs
>> 
>> on the running jail, but I'm at a loss to figure out how to make the
>> setting survive a restart of the jail.
>> 
>> Is there a way to get ezjail to honor the new /etc/jail.conf file?
>> 
>> Or could someone post an example of how to set this using the
>> /usr/local/etc/ezjail/JAILNAME
>> file?
>> 
>> Thanks
>> Russ Poyner
> 
> Hi Russ,
> 
> Since the introduction of jail_<name>_parameters support in
> /etc/rc.d/jail, you can add a line to your
> /usr/local/etc/ezjail/<jailname> config file to pass jail start-time
> parameters.
> 
> eg. export jail_<jailname>_parameters="allow.mount=1 allow.raw_sockets=1
> etc."
> 
> Regards,
> 
> Jase.
> 
> 
> -- 
> Jase Thew
> jase at FreeBSD.org
> FreeBSD Ports Committer

I still seem to be missing something.

I've tried a number of variations on
export jail_smb_paramters="allow.mount=1 allow.mount.zfs=1"
in /usr/local/etc/ezjail/smb but see no change in the output of sysctl inside the jail after stopping and restarting it.

I'm running ezjail 3.2.3 and freeBSD 9 STABLE.

Perhaps I am missing Drew's patch to the jail rc script?

Thanks again
Russ Poyner



More information about the freebsd-jail mailing list