From owner-freebsd-questions@FreeBSD.ORG Mon Jun 8 19:16:13 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0CCB1FAB for ; Mon, 8 Jun 2015 19:16:13 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 95F8C1815 for ; Mon, 8 Jun 2015 19:16:11 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from [192.168.1.35] (mux.fjl.org.uk [62.3.120.246]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id t58IsKFr071953 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Mon, 8 Jun 2015 19:54:26 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <5575E4DC.1060204@fjl.co.uk> Date: Mon, 08 Jun 2015 19:54:20 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: jails References: <55744D39.9020409@columbus.rr.com> In-Reply-To: <55744D39.9020409@columbus.rr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2015 19:16:13 -0000 On 07/06/2015 14:55, Baho Utot wrote: > > I have FreeBSD 10.1 and trying to setup a jail according to the handbook: > > > 15.3. Creating and Controlling Jails > > |#| *|setenv D/|/staorage/jails/crochet|/|* > |#| *|mkdir -p $D|* > |#| *|cd /usr/src|* > |#| *|make buildworld|* > |#| *|make installworld DESTDIR=$D|* > |#| *|make distribution DESTDIR=$D|* > |#| *|mount -t devfs devfs $D/dev|* > ..... Your question has already been answered, but you might also like to know... The make buildworld stuff isn't strictly necessary, but it's always documented that way for some reason. I believe running buildworld from time to time is somehow good for the soul. In reality you can just copy all the files from a working FreeBSD installation in to the directory of your choice, call it an jail and it will probably run quite happily, assuming its binary compatible. This is fantastically useful. If you do build a "clean" installation as above, tar it before you run it so you can (a) restore it if you make a mess inside the jail; (b) make a extra jail VMs quickly. You can also clone a jail simply by copy the directory and adding an appropriate config file entry. Regards, Frank.