FreeBSD jail running a Debian or Centos distro

Chad Leigh Shire.Net LLC chad at shire.net
Fri Dec 25 03:21:37 UTC 2015


> On Dec 25, 2015, at 11:52 AM, Jake <milios at ccsys.com> wrote:
> 
>> On Dec 24, 2015, at 6:49 PM, Chad Leigh Shire.Net LLC <chad at shire.net> wrote:
>> 
>> 
>>> On Dec 25, 2015, at 8:41 AM, David Mehler <dave.mehler at gmail.com> wrote:
>>> 
>>> Hello,
>>> 
>>> Has anyone got a FreeBSD jail to run either a Centos or a Debian
>>> distro of Linux?
>> 
>> 
>> Because of how jails work, that is not possible.  Jails are like multiple user installations on a single kernel rooted with a facility like an über chroot, in general terms (more complicated than that of course).  It is not like separate VMs running.
> 
> It is indeed possible to run the userland portion of a Linux-based distro, more-or-less unmodified, replacing the Linux kernel with FreeBSD's "linuxulator" (Linux ABI translation), all inside of a jail, atop a FreeBSD native filesystem. A great many things work (user-centric applications), a great many things break (system/network administrative tools).

That was not the question.   I know you can run a linux user land and apps but it is not the same as running a Centos or Debian distort of linux.

> 
> Don't forget about possibly mounting linprocfs, linsysfs and fdescfs inside the jail for maximum success. I'm not certain of the current security implications of linprocfs and linsysfs, so don't take my advice without doing further investigation considering your use case. Depending on your use case, it's worth trying with and without the virtualized network stack options as well.



More information about the freebsd-questions mailing list