From owner-freebsd-questions@freebsd.org Wed Mar 31 03:29:55 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 259185B97BF for ; Wed, 31 Mar 2021 03:29:55 +0000 (UTC) (envelope-from daniel@dstev.net) Received: from mail-40136.protonmail.ch (mail-40136.protonmail.ch [185.70.40.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9BdZ19sbz4VSj for ; Wed, 31 Mar 2021 03:29:53 +0000 (UTC) (envelope-from daniel@dstev.net) Date: Wed, 31 Mar 2021 03:29:30 +0000 To: Jacques Foucry From: Daniel Stevenson Cc: Dan Langille , freebsd-questions@freebsd.org Reply-To: Daniel Stevenson Subject: Re: Move jails hard way to iocage Message-ID: In-Reply-To: References: <5ce88d31-5372-4d26-8d35-d13b73ec7b71@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=10.0 tests=ALL_TRUSTED shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Rspamd-Queue-Id: 4F9BdZ19sbz4VSj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=dstev.net; spf=pass (mx1.freebsd.org: domain of daniel@dstev.net designates 185.70.40.136 as permitted sender) smtp.mailfrom=daniel@dstev.net X-Spamd-Result: default: False [-3.90 / 15.00]; HAS_REPLYTO(0.00)[daniel@dstev.net]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.40.136:from]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[dstev.net,none]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.136:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2021 03:29:55 -0000 On Friday, March 26th, 2021 at 15:45, Jacques Foucry wrote: > Le vendredi 26 mars 2021 =C3=A0 09:00:24 (-0400), Dan Langille =C3=A0 = =C3=A9crit: > > > On Fri, Mar 26, 2021, at 5:34 AM, Dan Langille wrote: > > > > > On Fri, Mar 26, 2021, at 5:28 AM, Jacques Foucry wrote: > > > > > > > Hello Friends, > > > > > > > > I run many jails, configured in the "hard way" (ie `/etc/jail.conf`= file) and > > > > > > > > I would like to move them into iocage. > > > > > > > > I can't find any help on the Internet (may be I did search corretly= ). > > > > > > > > Did some own have a pointer or a how-to? > > > > > > > > Thanks in advance for your time and advises, > > > > > > https://dan.langille.org/2021/02/28/converting-an-iocage-jail-to-a-va= nilla-jail/ > > > > Sorry, I misread, and though you were moving to jails. > > No problem :-) > > > This is from ezjail to iocage. Might help. > > > > https://dan.langille.org/2019/04/08/converting-thin-jails-to-thick-jail= s/ > > Sure it's help. > > > Yes, I have been moving from iocage to vanilla jails. I find it better = suits my use > > > > cases, specifically my FreshPorts jails which contain zfs file systems = which it > > > > must occasionally issue a 'zfs rollback'. I also like that my jails sta= rt or stop > > > > faster. The additional work I need to do relates to jail creation (crea= ting the > > > > file systems etc). For that, I'm using https://github.com/mkjail/mkjail= - in fact, > > > > this morning I am using that to update several jails. > > > > e.g. [dvl@r720-02:~/src/mkjail/src] $ sudo bin/mkjail upgrade -v 12.2-R= ELEASE -j nginx01 > > Interesting, may be I will reconsider switching=E2=80=A6 > > > After reading FreeBSD Mastery: Jails I saw how straight forward a jail.= conf entry can > > > > be. https://mwl.io/nonfiction/os#fmjail > > I read it, but there's no words about VNET and vanilla jails. Seems a lit= tle > > bit more difficult and all the jails must be switch at the same time (as = I saw > > from my small experience). I just finished the book; it does indeed talk about vanilla VNET jails. There's a section in Chapter 9 titled "Standard VNET Jails." It might be worth another look. > But I read to that you are not very happy with VNET jails :-) > > Btw, it's very hard to make my own opion with all the different experienc= es I > > read. :-) > > That said, and off topic, thanks for your blog, your shared experiences, > > FreshPorts and all you do for the community. -- Daniel Stevenson