From owner-freebsd-jail@freebsd.org Thu Dec 8 16:14:19 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8AA1C6D477 for ; Thu, 8 Dec 2016 16:14:19 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 8F9C3DE3 for ; Thu, 8 Dec 2016 16:14:19 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id C4906284FB; Thu, 8 Dec 2016 17:14:09 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 20D4E28488; Thu, 8 Dec 2016 17:14:09 +0100 (CET) Subject: Re: ZFS and Jail :: nullfs mount :: nothing visible from host To: SK , freebsd-jail References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <584986D0.3040109@quip.cz> Date: Thu, 8 Dec 2016 17:14:08 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2016 16:14:19 -0000 SK wrote on 2016/12/08 15:22: > So far I have tried to follow as many google results as possible using > jail, zfs, mountpoint, nullfs, manage zfs and so on. There were a few > sites coming up again and again but they were talking about ezjail (not > that I have anything against it, but I would prefer to be able to use > the base system as it is -- might help me learn a few things that ezjail > will hide from me :D) If you want to manage ZFS dataset from withing a jail, then you need to use zfs set jailed=on property (see man zfs). But this data set cannot be mounted as nullfs, it should be dedicated to the jail. You don't need ezjail because ezjail cannot do anything more than you can do. It is just a shell script wrapper. Miroslav Lachman