vnet flag?
Markiyan Kushnir
mkushnir at lohika.com
Tue Dec 15 01:22:46 PST 2009
Markiyan Kushnir wrote:
> Not sure if I am correct, but you would have in your /etc/rc.d/jail both
> the new "jail -c vnet persist ..." to first create the jail, then the
> old form to start the jail up with its /etc/rc. This way the
> /etc/rc.d/jail will be able to start jails at system start as it has
> been now.
>
well, correct would be to combine "jail -c ..." + "jexec ..."
Markiyan.
> Markiyan.
>
> Merijn Verstraaten wrote:
>> On Mon, 14 Dec 2009 22:14:49 +0100, Nick Dalsheimer
>> <nick.dalsheimer at gmail.com> wrote:
>>> Hey all,
>>> Whenever I specify
>>> jail_jailname_flags="vnet"
>>> in /etc/rc.conf, and then run "/etc/rc.d/jail start" as root, I always
>>> get an error like this:
>>>
>>> Configuring jails:.
>>> Starting jails: cannot start jail "jailname":
>>> But it doesn't look like one.
>>> .
>>>
>>> and it exits without starting the jail. If I remove the vnet option,
>>> everything runs as planned. What am I doing wrong?
>> Vnet requires you to use the new -c syntax to create jails rather then the
>> old syntax currently in use by rc.d/jail. I have a half done patch to make
>> rc.d/jail use the new syntax and some other stuff which I intend to finish
>> after my exams this week. I looked if I could quickly distill something
>> useful from the changes I was testing, but that didn't pan out. You could
>> try using "-c vnet" in flags, but I don't think it'll work (since I don't
>> think you can combine the new and the old syntax). As a last resort you
>> could jury rig the jail call in rc.d/jail to use the new syntax (line
>> 638-ish in 8.0-R-p1), how much work that is depends on whether you need
>> IPv6, etc. and whether you want ALL jails to use vnet or not.
>>
>> Kind regards,
>> Merijn Verstraaten
>> _______________________________________________
>> freebsd-jail at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
>> To unsubscribe, send any mail to "freebsd-jail-unsubscribe at freebsd.org"
>
More information about the freebsd-jail
mailing list