Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Mar 2010 17:12:24 +0100
From:      Mark Huizer <freebsd+jail@dohd.org>
To:        freebsd-jail@freebsd.org
Subject:   Re: 32-bit jails on a 64-bit system?
Message-ID:  <4B912D68.6080506@dohd.org>
In-Reply-To: <20100305124010.GM2489@deviant.kiev.zoral.com.ua>
References:  <alpine.OSX.2.00.1001210142470.815@hotlap.local> <4B581A74.5060000@quip.cz> <4B90F3B2.9010901@dohd.org> <20100305124010.GM2489@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B912D68.6080506>