From owner-freebsd-questions@FreeBSD.ORG Mon Jun 8 21:17:48 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 89536B4C for ; Mon, 8 Jun 2015 21:17:48 +0000 (UTC) (envelope-from che@bein.link) Received: from mail.bein.link (bein.link [37.252.124.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F90C165B for ; Mon, 8 Jun 2015 21:17:47 +0000 (UTC) (envelope-from che@bein.link) Received: from thinkpad.localnet (home.bein.link [172.16.32.6]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bein.link (Postfix) with ESMTPSA id 15D5C1AF1BF; Mon, 8 Jun 2015 21:17:36 +0000 (UTC) From: Maxim V Filimonov To: freebsd-questions@freebsd.org Reply-To: che@bein.link Cc: Frank Leonhardt Subject: Re: jails Date: Tue, 09 Jun 2015 00:17:37 +0300 Message-ID: <7987536.PjAn0HZS7E@thinkpad> User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p10; KDE/4.14.3; amd64; ; ) In-Reply-To: <5575E4DC.1060204@fjl.co.uk> References: <55744D39.9020409@columbus.rr.com> <5575E4DC.1060204@fjl.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 21:17:48 -0000 On Monday 08 June 2015 19:54:20 Frank Leonhardt wrote: > 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. > You can also use bsdinstall to install a fresh, clean base system into a jail. -- wbr, Maxim Filimonov