From owner-freebsd-questions@FreeBSD.ORG Tue Feb 26 21:54:21 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 224C1A70 for ; Tue, 26 Feb 2013 21:54:21 +0000 (UTC) (envelope-from danny@clari.net.au) Received: from mail13.syd.optusnet.com.au (mail13.syd.optusnet.com.au [211.29.132.194]) by mx1.freebsd.org (Postfix) with ESMTP id 94291295 for ; Tue, 26 Feb 2013 21:54:19 +0000 (UTC) Received: from [192.168.100.102] (c114-76-1-137.eburwd4.vic.optusnet.com.au [114.76.1.137]) by mail13.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id r1QLsACM009091 for ; Wed, 27 Feb 2013 08:54:11 +1100 Message-ID: <512D2EEE.3060606@clari.net.au> Date: Wed, 27 Feb 2013 08:53:50 +1100 From: "Daniel O'Callaghan" User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Jail question References: <512CB738.50502@bananmonarki.se> <13CA24D6AB415D428143D44749F57D7201EAE456@ltcfiswmsgmb21> In-Reply-To: <13CA24D6AB415D428143D44749F57D7201EAE456@ltcfiswmsgmb21> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=MscKcBme c=1 sm=1 a=_WFI8pCH4AAA:10 a=8nJEP1OIZ-IA:10 a=ejE0-8HIAAAA:8 a=O4x0Lo1PW0kA:10 a=uyKDcaJnaM2Gpc-fBz4A:9 a=wPNLvfGTeEIA:10 a=+rVrtY7z3DVyADW7HUk29Q==:117 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 21:54:21 -0000 Bernt Hansson wrote: > I would like to install an old version of freebsd let's say 4.6 in a > jail. Is that possible. > > Host is 8.3-stable amd64 Things like ps won't run, but you can copy static binaries from host:/rescue to jail:/{bin,sbin} as appropriate and that helps a lot. I just installed a 5.4-RELEASE/i386 jail on a 9.1-STABLE/amd64 system. Mysqld would not run (dumped core), so I relocated that to a separate jail running 9.1-STABLE/amd64 One gotcha I found is that while you can run an old i386 system in a jail on an amd64 host, you can't build an amd64 kernel with COMPAT_AOUT, so if you have an a.out binary from days of old, you need an i386 kernel. Devin Teske wrote: > Yes, this is possible. > > When I get into work, I'll share with you the recipe (I have a script called "update4.sh" which I run after building [or rsync'ing] a 4.x box to an 8.x box to become a vimage; note that I didn't say "jail" -- 4.x runs better as a VNET jail than a regular jail). > > We've not had much luck in running 4.x as a non-vnet jail under 8.x whereas vnet-jail works wonders (with a couple binaries replaced, like netstat, ifconfig, ps, and top for example). Devin, Please share your script with us all (especially me :-) ) Thanks, Danny