From owner-freebsd-jail@FreeBSD.ORG Thu Jan 31 02:02:28 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E75AD16A421 for ; Thu, 31 Jan 2008 02:02:28 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id 9083413C4E9 for ; Thu, 31 Jan 2008 02:02:28 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so495291wxd.7 for ; Wed, 30 Jan 2008 18:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gWpbg9C/QMjVEpTIUhGi4T9L0VabJCgBFwXMNc739mc=; b=pJ0qHCr6S9HF6d2vRm2r7lfyb01zbCWTmkdGiR+VgJT89spL/3o4ZW+XyBMZBCezMwq2htihw9RMRinEEO0nNNMNiXHDdSp66pk1JSTMZPyOO48KwxE2g2YV9Dew9cOfMMihYbKsirw9HgZobWVm8Nwqvm39nHbJC3YiZUESh8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=xnpdnO91ELjE/7HIFsKQ74fiqxxjbIKNZahjIv+T2NuQtg49kefth0zWT1xHN76To2eb9myAGITYCBq8hQYzGU+5s2X05ZY/aiNkqJ1vsgALlLiJ0v/HgpdMLGn2i/rjTlV8W67I0dKziKWfEv3anctTMQtPdc+BdOnZK1QlKqw= Received: by 10.142.246.8 with SMTP id t8mr850982wfh.199.1201744946579; Wed, 30 Jan 2008 18:02:26 -0800 (PST) Received: by 10.142.87.9 with HTTP; Wed, 30 Jan 2008 18:02:26 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 18:02:26 -0800 From: "Kurt Buff" To: "Jon Passki" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-jail@freebsd.org Subject: Re: Newb alert... X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 02:02:29 -0000 On Jan 30, 2008 1:38 PM, Jon Passki wrote: > On 1/30/08, Kurt Buff wrote: > > All, > > > > I'm trying to set up my first jail, and have been following the > > handbook, Chapter 15, and a printout of 'man 8 jail' from the > > freebsd.org web site. > > > > I've followed the steps in the handbook through 15.4 (the 'make > > distribution' step got an error, which I ignored after reading the > > notes) up to the point where I entered the following in my > > /etc/rc.conf. > > If possible, can you post all of the steps? # mkdir -p /jails/wotan # setenv D /jails/wotan # cd /usr/src # makeworld DESTDIR=$D && make distribution DESTDIR=$D && mount_devfs devfs $D $D/dev I then edited /etc/rc.conf to include the lines below. > > jail_enable="YES" > > jail_list="wotan" > > jail_wotan_rootdir="/jails/wotan" > > jail_wotan_hostname="wotan.mycompany.com" > > jail_wotan_ip="192.168.24.123" > > jail_wotan_devfs_enable="YES" > > jail_wotan_devfs_ruleset="wotan_ruleset" > > > > I then did /etc/rc.d/jail /start wotan > > `/etc/rc.d/jail start wotan` # notice no forward slash in front of 'start' Yes - that's a typo on my part - I did actually omit the slash at the command line. > Also, I don't see a "jail_exec_start" statement nor a > "jail_wotan_exec_start" statement anywhere. This could easily cause > problems. You should have something like: > > jail_wotan_exec_start="/bin/sh /etc/rc" # command to > execute in jail for starting > jail_wotan_exec_stop="/bin/sh /etc/rc.shutdown" # command to > execute in jail for stopping > > Somewhere. If you remove the "wotan" from the above, then that will > be the default setting. Good to know. I'm assuming that they can be put in with the rest of the lines in /etc/rc.conf? > > > > and that didn't work, giving the following lines: > > > > Starting jails: cannot start jail "wotan": > > jail: getpwnam: root: no such file or directory > > Does /jails/wotan/etc/passwd, /jails/wotan/etc/master.passwd, > /jails/wotan/etc/pwd.db, and /jails/wotan/etc/spwd.db exist? No, I'm afraid not. > > I googled a bit, but only find a reference to this on the -current > > list, regarding ZFS, which I'm not using. > > Red herring, methinks. > > Jon >