From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 22:11:29 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 622D9FEA for ; Wed, 27 Feb 2013 22:11:29 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 2D01861F for ; Wed, 27 Feb 2013 22:11:29 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa04.fnfis.com (8.14.5/8.14.5) with ESMTP id r1RMBNZZ016358 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 27 Feb 2013 16:11:23 -0600 Received: from dtwin (10.242.182.25) by smtp.fisglobal.com (10.132.206.31) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 27 Feb 2013 16:11:23 -0600 From: Sender: Devin Teske To: "'Bernt Hansson'" References: <512CB738.50502@bananmonarki.se> <13CA24D6AB415D428143D44749F57D7201EAE456@ltcfiswmsgmb21> <512DDD9C.5070502@bananmonarki.se> In-Reply-To: <512DDD9C.5070502@bananmonarki.se> Subject: RE: Jail question Date: Wed, 27 Feb 2013 14:11:34 -0800 Message-ID: <084301ce1537$69198db0$3b4ca910$@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJKt/iiOG5SW2SQLb8q8HL9jVEX5wHZaU3XAdCncs2Xd6zFAA== Content-Language: en-us X-Originating-IP: [10.242.182.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2013-02-27_08:2013-02-27,2013-02-27,1970-01-01 signatures=0 Cc: 'questions FreeBSD' , devin.teske@fisglobal.com 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: Wed, 27 Feb 2013 22:11:29 -0000 Got it... (script inline below) The first (and only) argument is to be a path to a 4.11 jail's root directory. For example, if you take a FreeBSD-4 box and rsync it to "/usr/jails/myold4box" on a FreeBSD-8 machine, you should then execute: update411binaries.sh /usr/jails/myold4box Then just configure the jail and fire it up. Of course, these are vnet jails. Further instructions on http://druidbsd.sf.net/vimage.shtml with my vimage package here: http://druidbsd.sf.net/download.shtml#vimage === #!/bin/sh if [ "$( id -u )" != "0" ]; then echo "Must run as root!" >&2 exit 1 fi if [ $# -lt 1 ]; then echo "Usage: $0 directory" >&2 exit 1 fi dir="$1" if [ ! -d "$dir" ]; then echo "$dir: No such file or directory" >&2 exit 1 fi mkdir -p "$dir/libexec" "$dir/lib" "$dir/usr/lib" for file in \ /bin/ps \ /libexec/ld-elf.so.1 \ /lib/libm.so.5 \ /lib/libkvm.so.5 \ /lib/libc.so.7 \ /sbin/ifconfig \ /lib/libbsdxml.so.4 \ /lib/libjail.so.1 \ /lib/libsbuf.so.5 \ /lib/libipx.so.5 \ /sbin/route \ /usr/bin/top \ /lib/libncurses.so.8 \ /usr/bin/netstat \ /usr/lib/libmemstat.so.3 \ /lib/libutil.so.8 \ /usr/lib/libnetgraph.so.4 \ ; do cp -pfv "$file" "$dir$file" done > -----Original Message----- > From: Bernt Hansson [mailto:bah@bananmonarki.se] > Sent: Wednesday, February 27, 2013 2:19 AM > To: Teske, Devin > Cc: questions FreeBSD > Subject: Re: Jail question > > 2013-02-26 15:18, Teske, Devin skrev: > > Yes, this is possible. > > > > When I get into work, I'll share with you the recipe > > Please do share with us. _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.