Linux "jail" ... possible?

Marc G. Fournier scrappy at freebsd.org
Fri Sep 22 05:05:24 PDT 2006


On Fri, 22 Sep 2006, Oliver Fromme wrote:

> Marc G. Fournier <freebsd at 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 at hub.org                              MSN . scrappy at hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664


More information about the freebsd-emulation mailing list