From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 20:12:09 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34B2B16A4CE for ; Wed, 9 Feb 2005 20:12:09 +0000 (GMT) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70E8543D2F for ; Wed, 9 Feb 2005 20:12:08 +0000 (GMT) (envelope-from josh@tcbug.org) Received: from twinmp (12-218-40-24.client.mchsi.com[12.218.40.24]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20050209201207m9100ovabne>; Wed, 9 Feb 2005 20:12:07 +0000 From: Josh Paetzel To: questions@freebsd.org Date: Wed, 9 Feb 2005 14:12:06 -0600 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200502091412.06282.josh@tcbug.org> Subject: jail manpage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 20:12:09 -0000 I've been trying get jails working on my 5.3-RELEASE-p2 machine. I've tried following the instructions in man 8 jail D=/here/is/the/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 c/usr/src/games/fortune/strfile/strfile.c 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@mail.gmail.com I found a tutorial @ http://www.samag.com/documents/s=1151/sam0105d/0105d.htm D=/home/jpaetzel/jail 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 10.0.0.11 netmask 255.255.255.255 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_enable="YES" jail_list="vjail" jail_vjail_rootdir="/home/jpaetzel/jail" jail_vjail_hostname="jail.tcbug.org" jail_vjail_ip="10.0.0.11" 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. :) -- Thanks, Josh Paetzel