Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 08:53:50 +1100
From:      "Daniel O'Callaghan" <danny@clari.net.au>
To:        freebsd-questions@freebsd.org
Subject:   Re: Jail question
Message-ID:  <512D2EEE.3060606@clari.net.au>
In-Reply-To: <13CA24D6AB415D428143D44749F57D7201EAE456@ltcfiswmsgmb21>
References:  <512CB738.50502@bananmonarki.se> <13CA24D6AB415D428143D44749F57D7201EAE456@ltcfiswmsgmb21>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?512D2EEE.3060606>