From owner-freebsd-jail@FreeBSD.ORG Fri Mar 5 16:12:25 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 EF9EB106566C for ; Fri, 5 Mar 2010 16:12:25 +0000 (UTC) (envelope-from freebsd+jail@dohd.org) Received: from nala.dohd.org (tunnel74.ipv6.xs4all.nl [IPv6:2001:888:10:4a::2]) by mx1.freebsd.org (Postfix) with ESMTP id A0EB58FC26 for ; Fri, 5 Mar 2010 16:12:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nala.dohd.org (Postfix) with ESMTP id E0B8D5646F for ; Fri, 5 Mar 2010 17:12:24 +0100 (CET) X-Virus-Scanned: amavisd-new at dohd.org Received: from nala.dohd.org ([127.0.0.1]) by localhost (eeyore.local.dohd.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27YYvfwdr68y for ; Fri, 5 Mar 2010 17:12:24 +0100 (CET) Received: from [IPv6:2001:888:104a:2:2ce3:6403:917f:4fcc] (unknown [IPv6:2001:888:104a:2:2ce3:6403:917f:4fcc]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Mark Huizer", Issuer "CA Cert Signing Authority" (verified OK)) by nala.dohd.org (Postfix) with ESMTPS id 418FA5646E for ; Fri, 5 Mar 2010 17:12:24 +0100 (CET) Message-ID: <4B912D68.6080506@dohd.org> Date: Fri, 05 Mar 2010 17:12:24 +0100 From: Mark Huizer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 MIME-Version: 1.0 To: freebsd-jail@freebsd.org References: <4B581A74.5060000@quip.cz> <4B90F3B2.9010901@dohd.org> <20100305124010.GM2489@deviant.kiev.zoral.com.ua> In-Reply-To: <20100305124010.GM2489@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 32-bit jails on a 64-bit system? 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: Fri, 05 Mar 2010 16:12:26 -0000 On 3/5/2010 13:40, Kostik Belousov wrote: > On Fri, Mar 05, 2010 at 01:06:10PM +0100, Mark Huizer wrote: > >> On 1/21/2010 10:12, Miroslav Lachman wrote: >> >>> I think it is nothing new to 8.0, it is the same as release note for 7.2. >>> >>> I didn't test it, but I think you can install (copy) i386 jail (or >>> whole system) in to amd64 host and just run it as any other jail. >>> >>> >> Actually, that's what I tried, since I want to move a server to new >> hardware, but with serious time constraints on my side :-( So my plan >> is/was: "rsync the entire machine, build a script that fixes IP >> addresses here and there in the copy, run the jail". >> >> I did have to fix a few little things, stuff like copy a few binaries >> over (netstat, ps, ifconfig, w, top, ldd, ldd32) and of course the ld* >> files in /libexec. Furthermore I moved /usr/lib to /usr/lib32 and copied >> /usr/lib from the amd64 install. >> So far so good, I start jail, I see ssh, apache etc running, I start to >> get happy. >> > My own experience is that just moving 32bit i386 image onto amd64 host > is better now then trying to make a hybrid with 32bit binaries and > both 32 and 64 bit libraries. > > You have to disable all management operations in the startup, of course. > I do not recommend to touch /libexec. You may put statically linked > 64bit ps/top/netstat etc into the jail for convenience. > > Having amd64 bit kernel that can be configured and managed by 32bit > binaries is the long road. On the other hand, user 32bit applications > working very good. > > Well, that is where I started but without success, since ezjail (might be ezjail's problem, who knows) had trouble getting sh to work without amd64 libs present Mark