Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 09:03:27 -0300 (ADT)
From:      "Marc G. Fournier" <scrappy@freebsd.org>
To:        freebsd-emulation@FreeBSD.ORG, freebsd@hub.org
Subject:   Re: Linux "jail" ... possible?
Message-ID:  <20060922090239.F1031@ganymede.hub.org>
In-Reply-To: <200609220902.k8M92l5W077107@lurza.secnetix.de>
References:  <200609220902.k8M92l5W077107@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Sep 2006, Oliver Fromme wrote:

> Marc G. Fournier <freebsd@hub.org> wrote:
> > I know I can install the linux_dist_stage3 to get a linux environment
> > within a FreeBSD jail, and login, do 'chroot /compat/linux /bin/sh' and
> > actually run apache servers and such, just like I was logged into a linux
> > box ...
> >
> > *but* ... is it possible to do this without the FreeBSD jail running
> > first?
> >
> > ie:
> >
> > jail /compat/linux <hostname> <ip> <start command>
> >
> > If so ... what would the start command be?
>
> Sure, I've done that before.  Just use /bin/sh as start
> command to get a root shell within the linux jail.
> You can also directly run apachectl to start an apache
> within the linux jail, etc. (might require a wrapper
> script to setup $PATH and other things within the jail,
> though).

What about stuff like cron, syslog, etc?

For instance, when we start up a freebsd jail, we run /etc/rc to make sure 
all processes are started ... is there an equivalent that can be run 
within the gentoo/linux tree?

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email . scrappy@hub.org                              MSN . scrappy@hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060922090239.F1031>