Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 2010 21:26:25 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        John Nielsen <lists@jnielsen.net>
Cc:        freebsd-emulation@freebsd.org, freebsd-jail@freebsd.org
Subject:   Re: linux-only jail possible?
Message-ID:  <4B8D7471.5060006@quip.cz>
In-Reply-To: <201003021325.27197.lists@jnielsen.net>
References:  <201003021325.27197.lists@jnielsen.net>

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



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