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:b...@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.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to