From owner-freebsd-questions Sat Feb 15 21:16:58 2003 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 53F0337B401 for ; Sat, 15 Feb 2003 21:16:56 -0800 (PST) Received: from hld.ca (dcardamo.ott.istop.com [66.11.174.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id B49EE43FBD for ; Sat, 15 Feb 2003 21:16:54 -0800 (PST) (envelope-from dan@hld.ca) Received: from hld.ca (localhost [127.0.0.1]) by hld.ca (8.12.6/8.12.6/Debian-8) with ESMTP id h1G5Gqiw004910 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 16 Feb 2003 00:16:53 -0500 Received: (from dan@localhost) by hld.ca (8.12.6/8.12.6/Debian-8) id h1G5GqgM004908 for freebsd-questions@FreeBSD.ORG; Sun, 16 Feb 2003 00:16:52 -0500 From: Dan Cardamore Date: Sun, 16 Feb 2003 00:16:52 -0500 To: freebsd-questions@FreeBSD.ORG Subject: 5.0 Jail does not work (out of date documentation?) Message-ID: <20030216051652.GA4819@hld.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Uptime: 00:07:15 up 2:33, 1 user, load average: 0.08, 0.06, 0.07 X-Operating-System: Linux 2.4.20 i586 up 2:33 X-Spam-Checked: This message probably not SPAM X-Spam-Score: -0.9, Required: 5 X-Spam-Tests: SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT X-Spam-Report: SPAM: -0.90 hits, 5 required; SPAM: * -1.2 -- User-Agent header indicates a non-spam MUA (Mutt) SPAM: * -0.5 -- Found a User-Agent header SPAM: * 0.8 -- BODY: Spam phrases score is 00 to 01 (low) X-Scanned-By: MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm new to FreeBSD as I'm switching over from Linux. I want to get jail going but I've had no luck. Following the man page for jail, I did this: D=/usr/jails/hld cd /usr/src mkdir -p $D make world DESTDIR=$D cd etc make distribution DESTDIR=$D Variating from the MAKEDEV command I ran: mount -t devfs / $D/dev cd $D ln -sf dev/null kernel When I do a `sockstat -4l` I can see that nothing from my host server is bound to any jail server IP's. When I run: jail $D hld.ca 66.11.174.121 /bin/sh /etc/rc It gives the following output: hw.bus.devctl_disable: 1 -> 1 Entropy harvesting:sysctl: kern.random.sys.harvest.interrupt: Operation not permitted interruptssysctl: kern.random.sys.harvest.ethernet: Operation not permitted ethernetsysctl: kern.random.sys.harvest.point_to_point: Operation not permitted point_to_point. Fast boot: skipping disk checks. mount: /: unknown special file or file system adjkerntz[7724]: sysctl(put_wallclock): Operation not permitted Doing initial network setup:. Additional routing options:. Mounting NFS file systems:. ln: /dev/log: Operation not permitted Starting syslogd. syslogd: child pid 7816 exited with return code 1 ELF ldconfig path: /usr/lib /usr/lib/compat a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout Starting local daemons:. Updating motd. Configuring syscons: blanktime. ^CInitial i386 initialization:. Additional ABI support:. Local package initialization:. Additional TCP options:. Starting devfsln: vga: Operation not permitted Starting cron. Starting background file system checks. You can see the ^C at the beginning of "Intial i386 initialization". After "blanktime" it stalls and I've waited up to 5 minutes before hitting CTRL-C to make it continue. It just bails though. The /var/log/messages has no information of use (just syslogd starting message) I've also tried tracing this /etc/rc script by puting 'echo' commands here and there but none get executed. I'm new enough to FreeBSD that I don't really know how it runs it's startup scripts. Any help would be appreciated since I'd really like to get this going. Thanks, Dan P.S. I think I found a bug. If I 'mount -t procfs proc $D/proc' two times without unmounting and then 'ls $D/proc' my machine becomes completely unresponsive. I need to power cycle it to get it back. __________________________________________________________________________ Dan Cardamore mailto://dan@hld.ca http://www.hld.ca 00:07:50 up 2:33, 1 user, load average: 0.10, 0.06, 0.07 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message