From owner-freebsd-questions@freebsd.org Wed Mar 31 20:28:33 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 16A135AF25A for ; Wed, 31 Mar 2021 20:28:33 +0000 (UTC) (envelope-from liedtke@punkt.de) Received: from mail.punkt.de (mail.punkt.de [217.29.41.227]) (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 4F9dDw3KySz4bZM for ; Wed, 31 Mar 2021 20:28:32 +0000 (UTC) (envelope-from liedtke@punkt.de) Received: from [217.29.46.77] (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.punkt.de (Postfix) with ESMTPSA id 25A7936C52 for ; Wed, 31 Mar 2021 22:28:31 +0200 (CEST) Subject: Re: Move jails hard way to iocage To: freebsd-questions@freebsd.org References: <5ce88d31-5372-4d26-8d35-d13b73ec7b71@www.fastmail.com> From: Lars Liedtke Organization: punkt.de GmbH Message-ID: <8e9e81f4-da6c-1038-0d4d-8c814acb1267@punkt.de> Date: Wed, 31 Mar 2021 22:28:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: de-DE X-Rspamd-Queue-Id: 4F9dDw3KySz4bZM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of liedtke@punkt.de designates 217.29.41.227 as permitted sender) smtp.mailfrom=liedtke@punkt.de X-Spamd-Result: default: False [-3.25 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[217.29.41.227:from]; R_SPF_ALLOW(-0.20)[+ip4:217.29.32.0/20:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; SPAMHAUS_ZRD(0.00)[217.29.41.227:from:127.0.2.255]; DMARC_NA(0.00)[punkt.de]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROM(0.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.955]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] 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 20:28:33 -0000 Most of iocage settings are the same as jail settings. Sometimes the name is a bit different, but much slightly though. Am 31.03.21 um 05:29 schrieb Daniel Stevenson: > On Friday, March 26th, 2021 at 15:45, Jacques Foucry wrote: > >> Le vendredi 26 mars 2021 à 09:00:24 (-0400), Dan Langille à écrit: >> >>> 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-vanilla-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-jails/ >> 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 start or stop >>> >>> faster. The additional work I need to do relates to jail creation (creating 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-RELEASE -j nginx01 >> Interesting, may be I will reconsider switching… >> >>> 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 little >> >> 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 experiences I >> >> read. :-) >> >> That said, and off topic, thanks for your blog, your shared experiences, >> >> FreshPorts and all you do for the community. > -- > Daniel Stevenson > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- --- punkt.de GmbH Lars Liedtke .infrastructure Kaiserallee 13a 76133 Karlsruhe Tel. +49 721 9109 500 https://infrastructure.punkt.de info@punkt.de AG Mannheim 108285 Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein