From owner-freebsd-questions@freebsd.org Fri Dec 25 03:21:37 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6549DA5103F for ; Fri, 25 Dec 2015 03:21:37 +0000 (UTC) (envelope-from chad@shire.net) Received: from mail.shire.net (mail.shire.net [199.102.78.250]) by mx1.freebsd.org (Postfix) with ESMTP id 4DD0C1CAF for ; Fri, 25 Dec 2015 03:21:36 +0000 (UTC) (envelope-from chad@shire.net) Received: from bai773fb853.bai.ne.jp ([119.63.184.83] helo=[192.168.0.14]) by mail.shire.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1aCIwi-0007xp-1o; Thu, 24 Dec 2015 20:21:36 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: FreeBSD jail running a Debian or Centos distro From: "Chad Leigh Shire.Net LLC" In-Reply-To: Date: Fri, 25 Dec 2015 12:21:33 +0900 Cc: David Mehler , freebsd-questions Content-Transfer-Encoding: quoted-printable Message-Id: References: <98024BC5-356B-4F75-B0A6-078599F54472@shire.net> To: Jake X-Mailer: Apple Mail (2.2104) X-SA-Exim-Connect-IP: 119.63.184.83 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on mail.shire.net); SAEximRunCond expanded to false X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2015 03:21:37 -0000 > On Dec 25, 2015, at 11:52 AM, Jake wrote: >=20 >> On Dec 24, 2015, at 6:49 PM, Chad Leigh Shire.Net LLC = wrote: >>=20 >>=20 >>> On Dec 25, 2015, at 8:41 AM, David Mehler = wrote: >>>=20 >>> Hello, >>>=20 >>> Has anyone got a FreeBSD jail to run either a Centos or a Debian >>> distro of Linux? >>=20 >>=20 >> 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 =C3=BCber chroot, in general terms (more complicated than that = of course). It is not like separate VMs running. >=20 > 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. >=20 > 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.