Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 11:02:47 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-emulation@FreeBSD.ORG, freebsd@hub.org
Subject:   Re: Linux "jail" ... possible?
Message-ID:  <200609220902.k8M92l5W077107@lurza.secnetix.de>
In-Reply-To: <20060922012433.A1031@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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).

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.




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