Devin.Teske at fisglobal.com
Fri Mar 1 17:54:35 UTC 2013
On Fri, 01 Mar 2013, Bernt Hansson wrote:
> On 2013-02-27 11:19, Bernt Hansson wrote:
> > 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.
> Ok I rephrase my question. How do I install freebsd 4.9 in a jail on 8.3
Step 1. Download the following files/directories...
NOTE: For example, download those files/directories to /usr/repos/FreeBSD-4.9/4.9-RELEASE
Step 2. Download my "jail_build" script from:
Step 3: Run jail_build
NOTE: If you put your downloaded files in /usr/repos/FreeBSD-4.9/4.9-RELEASE then jail_build will automatically find them and present 4.9 as an option. After selecting FreeBSD-4.9, it will then prompt you to enter the root directory where to unpack the jail to.
When jail_build completes, you'll have a freshly unpacked FreeBSD-4.9 in the desired root directory.
Step 4: Grab and install my vimage package:
Step 5: Configure your vimage in /etc/rc.conf (see /etc/rc.conf.d/vimage for a sample).
Step 6: [Pre-]configure the network interface for the visage
chroot /usr/jails/fbsd4_9 vi /etc/rc.conf
NOTE: Since the vimage (aka vnet jail) isn't running yet, we use chroot instead of jexec. (Also note that the chroot is only for pedantic safety ... it prevents things such as "what if /etc/rc.conf is a symlink to /etc/rc.conf.other -- without the chroot you'd accidentally edit the host machines /etc/rc.conf.other).
Add the following:
ifconfig_ng0_fbsd4_9="inet 192.168.1.123 netmask 255.255.255.0"
# or whatever fits your network
# Don't forget /etc/resolv.conf
# Don't forget to set sshd_enable="YES" in rc.conf(5) if you want to be able to ssh into the vimage
Step 7: Fix some binaries in the 4.9 distribution to work under the 8.3 kernel...
Download my "update411binaries.sh" script (should work fine for 4.9 jails too) from...
Step 8: Run update411binares.sh with a first argument of (for example) /usr/jails/fbsd4_9
Step 9: Fire up the vimage
service vimage start fbsd4_9
Step 10: Check things out...
jexec fbsd4_9 csh
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.
More information about the freebsd-questions