Date: Mon, 28 Sep 2009 10:35:50 -0600 From: Jamie Gritton <jamie@FreeBSD.org> To: Edwin Shao <edwin.shao@gmail.com> Cc: freebsd-jail@FreeBSD.org Subject: Re: Tutorial for Hierarchical Jails? Message-ID: <4AC0E5E6.1010700@FreeBSD.org> In-Reply-To: <cf8a6aa50909280506g63030d9ft423c42e8c61700d@mail.gmail.com> References: <cf8a6aa50909280506g63030d9ft423c42e8c61700d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Shao wrote: > Hello, > Does anyone have a walkthrough for how to get hierarchical jails to work? > I've been playing around with it for a couple of days and it simply is not > working. I would like to know if anyone has gotten it to work, and if so, > how? > > The error I tend to get within a jail (starting another child jail) is: > hyper# ./jail start > Configuring jails:. > Starting jails: cannot start jail "neko": > > I'm using very basic steps as outlined in < > http://www.freebsd.org/doc/en/books/handbook/jails-intro.html> and I am > easily getting the jails to work in the non-jailed highest level system. > > What I have done to troubleshoot so far: > * Installed from scratch 8.0-RC1 ISO, make buildworld from scratch 8.0-RC1 > /usr/src. > * Created very liberal sysctls. > * Tried different combinations of disabling/enabling mounted systems such as > devfs, procfs, etc. > * Tried modifying different module fs to enable the "jail" flag. > > This is under a clean install of 8.0-RC1. I'd be happy to provide additional > information for troubleshooting, but I'm not even sure what's going wrong. > It'd probably be more helpful for you to just let me know what you did to > get it wroking. The main thing you need to do is to set the first-level jail's children.max parameter. It defaults to zero, which doesn't allow a jail to create any child jails (the non-hierarchical default). It sounds like you have everything else you need. - Jamie
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AC0E5E6.1010700>