jail manpage

Josh Paetzel josh at tcbug.org
Wed Feb 9 12:12:09 PST 2005

I've been trying get jails working on my 5.3-RELEASE-p2 machine.  I've 
tried following the instructions in man 8 jail

cd /usr/src
mkdir -p $D
make world DESTDIR=$D
cd etc
make distribution DESTDIR=$D
mount_devfs devfs $D/dev
cd $D
ln -sf dev/null kernel

It dies at make world DESTDIR=$D with the following error:

cc -0 -pipe -I/usr/obj/usr/src/i386/legacy/usr/include
make: don't know how to make /jail/test/usr/lib/libc.a. Stop
***Error code 2
Stopping /usr/src

Surprisingly I found a post to -questions that has the exact same 
error using the same commands that I did.  The thread never does make 
clear as to whether the poster got it working.

57d710000501131800788ec662 at mail.gmail.com

I found a tutorial @ 

cd /usr/src
make hierarchy DESTDIR=$D
make obj
make depend
make all
make install DESTDIR=$D
cd $D
ln -sf dev/null kernel
ifconfig fxp0 alias netmask

start the jail:
jail /home/jpaetzel/jail jail.tcbug.org /bin/sh

I'm still unclear on how to start the jail at boot time

I put the following into /etc/rc.conf

jail_vjail_exec="/bin/sh /etc/rc"

As far as I  can tell jail is not starting at boot time.

I know I'm sort of rambling (I'm trying to document as I go here) if 
someone can spot my mistakes I'd appreciate it. :)


Josh Paetzel

More information about the freebsd-questions mailing list