From owner-freebsd-questions@FreeBSD.ORG Tue Nov 17 20:37:21 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5C1D1065694 for ; Tue, 17 Nov 2009 20:37:21 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id B19498FC08 for ; Tue, 17 Nov 2009 20:37:21 +0000 (UTC) Received: (qmail 463 invoked from network); 17 Nov 2009 20:37:21 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Nov 2009 20:37:20 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id ACC8350886; Tue, 17 Nov 2009 15:37:19 -0500 (EST) From: Lowell Gilbert To: Laszlo Nagy References: <4B02A81F.1030101@shopzeus.com> Date: Tue, 17 Nov 2009 15:37:19 -0500 In-Reply-To: <4B02A81F.1030101@shopzeus.com> (Laszlo Nagy's message of "Tue, 17 Nov 2009 18:11:51 +0430") Message-ID: <44tyws3n28.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: jail - beginner questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 20:37:21 -0000 Laszlo Nagy writes: > I'm experimenting with jails. I have installed a 7.2 stable FreeBSD > inside vmware. Then I have created two jails, using the method written > in the handbook: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html > > The only thing that didn't work is this: > > cd /etc > make distribution DESTDIR=$D > > I really think that it should be corrected to: > > cd /usr/src > make distribution DESTDIR=$D No, I think you added the '/' before 'etc', which isn't in the web page. > > After mounting devfs ("mount -t devfs devfs /vm1/dev") I try to start it: > > /etc/rc.d/vm1 start vm1 > > But then I get this error in syslog: > > bind: Can't assign requested address > > Here is the config from /etc/rc.conf (in the host): > > jail_enable="YES" # Set to NO to disable starting > of any jails > jail_list="vm1 vm2" # Space separated list of names > of jails > > jail_vm1_rootdir="/vm1" # jail's root directory > jail_vm1_hostname="vm1.localdomain" # jail's hostname > jail_vm1_ip="192.168.0.11" # jail's IP address > jail_vm1_devfs_enable="YES" # mount devfs in the jail > jail_vm1_devfs_ruleset="vm1_ruleset" # devfs ruleset to apply to jail > > jail_vm2_rootdir="/vm2" # jail's root directory > jail_vm2_hostname="vm2.localdomain" # jail's hostname > jail_vm2_ip="192.168.0.12" # jail's IP address > jail_vm2_devfs_enable="YES" # mount devfs in the jail > jail_vm2_devfs_ruleset="vm2_ruleset" # devfs ruleset to apply to jail Is the problem perhaps in your /etc/rc.d/vm1 script? Normally you would use /etc/rc.d/jail. Are those addresses already assigned on the host? Was the jail perhaps already running? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/