Linux "jail" ... possible?

Oliver Fromme olli at lurza.secnetix.de
Fri Sep 22 02:04:06 PDT 2006


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).

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.



More information about the freebsd-emulation mailing list