From owner-freebsd-jail@FreeBSD.ORG Thu Feb 18 23:56:14 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0225C106566B for ; Thu, 18 Feb 2010 23:56:14 +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 B5B1D8FC1B for ; Thu, 18 Feb 2010 23:56:13 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 6051619E023; Fri, 19 Feb 2010 00:56:12 +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 050F619E019; Fri, 19 Feb 2010 00:56:09 +0100 (CET) Message-ID: <4B7DD399.2050301@quip.cz> Date: Fri, 19 Feb 2010 00:56:09 +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.7) Gecko/20100104 SeaMonkey/2.0.2 MIME-Version: 1.0 To: Andreas Nilsson References: <20100218172634.GA28262@lonesome.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Mark Linimon , freebsd-jail@freebsd.org Subject: Re: Emulating different versions of FreeBSD X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 23:56:14 -0000 Andreas Nilsson wrote: > On Thu, Feb 18, 2010 at 6:26 PM, Mark Linimon wrote: > >> On Thu, Feb 18, 2010 at 04:54:08PM +0100, Andreas Nilsson wrote: >>> Could the jail architecture be used to run/emulate different versions of >>> FreeBSD on the same machine? >> >> portmgr does that on the package build machines all the time. AFAIK we >> don't do anything special to the kernel/userland we run in the jails. >> >> Of course, you need to make sure that what's in the jail is no newer than >> the native kernel/userland. >> >> mcl >> > > Ok, that sounds great. Thanks for the swift response. So building for > example lsof in a 7.1 jail on a 8.0 host will report it being built on > 7.1-RELEASE-pX? It may depends on uname output. It can be modified by env. variables like UNAME_r etc. (see man uname) > Does it also work to run a 32-bit jail on a 64-bit host? It was discussed here few times so you can search the archive. I am not sure about the results and I didn't have enough time to test it myself. Miroslav Lachman