Date: Tue, 15 Dec 2009 11:10:58 +0200 From: Markiyan Kushnir <mkushnir@lohika.com> To: Merijn Verstraaten <merijn@inconsistent.nl> Cc: "freebsd-jail@freebsd.org" <freebsd-jail@freebsd.org> Subject: Re: vnet flag? Message-ID: <4B2752A2.3080305@lohika.com> In-Reply-To: <op.u4x7c3h84534sa@localhost> References: <434e042e0912141314v64635fc1w8293d9b9b7f37de1@mail.gmail.com> <op.u4x7c3h84534sa@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Markiyan. Merijn Verstraaten wrote: > On Mon, 14 Dec 2009 22:14:49 +0100, Nick Dalsheimer > <nick.dalsheimer@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B2752A2.3080305>