From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 2 20:44:58 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE501065672 for ; Tue, 2 Mar 2010 20:44:58 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3E6178FC15 for ; Tue, 2 Mar 2010 20:44:57 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DD19E19E027; Tue, 2 Mar 2010 21:26:28 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 89D3919E023; Tue, 2 Mar 2010 21:26:26 +0100 (CET) Message-ID: <4B8D7471.5060006@quip.cz> Date: Tue, 02 Mar 2010 21:26:25 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3 MIME-Version: 1.0 To: John Nielsen References: <201003021325.27197.lists@jnielsen.net> In-Reply-To: <201003021325.27197.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org Subject: Re: linux-only jail possible? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 20:44:58 -0000 John Nielsen wrote: > Has anyone tried to run a jail containing only Linux binaries? I need a > lightweight VM-ish solution to run an arbitrary number of test/dev/demo > servers (apache + python mostly) but would like it to be reasonably close to > the "real" servers (running Linux) in terms of software installation and > maintenance, etc. (Moving the whole show over to FreeBSD is a battle for > another day..) > > Aside from the logistics of actually making this work, are there any known > or obvious show-stoppers/gotchas/pitfalls/etc? > > Ideally yum and rc+init.d would work normally, though I expect a bit of > startup hackery may be necessary (as well as hand-extracting a bunch of > RPM's to bootstrap the first jail). > > If you have attempted something like this I'd love to hear from you. I don't think it is possible to emulate full Linux environment and behavior in FreeBSD jail. You can use linux binaries with Linux ABI in jail, but it will be controlled by FreeBSD rc.d scripts, sw will be installed by ports system etc. Maybe you can have FreeBSD host system and start jail installed as copy of Debian GNU/kFreeBSD instead of classic FreeBSD jail + linux_base port. All in all, it will be a lot of work and experiments. Miroslav Lachman