ezjail with vimage

Miroslav Lachman 000.fbsd at quip.cz
Mon Dec 7 11:59:03 UTC 2009


Alexander Petrovsky wrote:
> Hello!
> I want merge all my jails (ezjail framework) working under freebsd 7.2 to
> freebsd 8.0 with support vimage. Ezjail don't support jail_NAME_flags=""
>
> Whether, I can simply change the line in /usr/local/etc/rc.d/ezjail:
>
> # Pass control to jail script which does the actual work
> [ "${ezjail_pass}" ]&&  sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass}
>
> and add some parametres like:
>
> "jail -c vnet name=*vnet1* host.hostname=*vnet1.example.net* path=/ persist"

You can add what ever variables you want in to 
/usr/local/etc/ezjail/vnet1_example_net
It will be exported to /etc/rc.d/jail, so you can use:

export jail_vnet1_example_net_flags="my special flags here"

Or you can try to set it in /etc/rc.conf. Ezjail is not so special as it 
looks.

Miroslav Lachman


More information about the freebsd-jail mailing list