From owner-freebsd-questions@freebsd.org Fri Mar 26 13:01:04 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 250165BEC98 for ; Fri, 26 Mar 2021 13:01:04 +0000 (UTC) (envelope-from dan@langille.org) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F6MXv1txHz4fQS for ; Fri, 26 Mar 2021 13:00:59 +0000 (UTC) (envelope-from dan@langille.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 801E91B5D; Fri, 26 Mar 2021 09:00:57 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute4.internal (MEProxy); Fri, 26 Mar 2021 09:00:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=71jJ0DsJczBA7nc/1kBGEuOxX4RiJh6 8hvmzKjMCkEU=; b=EpXkvtuqE/XJ+tnTwyLeYjxH2r9zTUZJBEDhla7vKk2NSHE yTZ7WG23dRzq/lcTJwQGYE+hO9v7n0f2lfWlNCJjCtDXZr977GszIl1mWtUfeWyI 5rW74hPNt5sh7f7Sb4QKt2J3QbbsyIKA+5ScXvbpRkW8E7CfinulhyoMSUTl8FSC tQiCETBupkqGWeXVtLRrkbGHtFu5iffKAHdzK3Hety62gBQVVcYEKvow44+9vSOP 4yVL7IUZJKcdQvF/jMO3pVYC0K5bqpYHesuZKQubaWnd0mc8RYx6o0ESY+9lENM3 wqzi5iNmOLo9vLQ2qYyyT0K8aqIUz0lLBM1cSeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=71jJ0D sJczBA7nc/1kBGEuOxX4RiJh68hvmzKjMCkEU=; b=i2OGq3cCt9JiAYqu+JxHsy i3Dh2xe+r3JqB/GuQWZTDo5f8HenvQYnwhdIV43ck2/Uj8sCmmwU4vzM83ymFi14 DcxK/hh+X702+0OFJXwIXqj+jlmBSYWx/1dnP9huYlYIdvGZz5cmoV1ZZVJPEnif sMceaJfYwrOrRUiCjzkRsflmhC+K60mm/sCsMAH2qiCb4CyY4W2gLLMtN3QmT6kQ wS/JpPOhyZ12JDv1mOMB3PO2zMTpifewGC3S5s8qKxeIpfht72vqzZIBIlflnTil 6n9UShubCrv4VnrAqZywgr4zHOPrJMRfVqk+gFmpsDxdABYEJemN2MDXAHwM/wpQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehvddggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfffgrnhcunfgrnhhgihhllhgvfdcuoegurghnsehlrghn ghhilhhlvgdrohhrgheqnecuggftrfgrthhtvghrnhepiefgheeggeejgefggedvuedutd elhffgieefieejueetleekgfevledtjeehieefnecuffhomhgrihhnpehlrghnghhilhhl vgdrohhrghdpghhithhhuhgsrdgtohhmpdhmfihlrdhiohenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhlvgdrohhr gh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3FDEC10E008E; Fri, 26 Mar 2021 09:00:56 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-Id: <5ce88d31-5372-4d26-8d35-d13b73ec7b71@www.fastmail.com> In-Reply-To: References: Date: Fri, 26 Mar 2021 09:00:24 -0400 From: "Dan Langille" To: freebsd-questions@freebsd.org, freebsd-jails@freebsd.org Cc: "Jacques Foucry" Subject: Re: Move jails hard way to iocage Content-Type: text/plain X-Rspamd-Queue-Id: 4F6MXv1txHz4fQS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm3 header.b=EpXkvtuq; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=i2OGq3cC; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 64.147.123.24 as permitted sender) smtp.mailfrom=dan@langille.org X-Spamd-Result: default: False [-3.09 / 15.00]; XM_UA_NO_VERSION(0.01)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.24]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.24:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm3,messagingengine.com:s=fm2]; FREEFALL_USER(0.00)[dan]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[64.147.123.24:from]; MAILMAN_DEST(0.00)[freebsd-questions]; MID_RHS_WWW(0.50)[] 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: Fri, 26 Mar 2021 13:01:04 -0000 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. This is from ezjail to iocage. Might help. https://dan.langille.org/2019/04/08/converting-thin-jails-to-thick-jails/ 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 After reading FreeBSD Mastery: Jails I saw how straight forward a jail.conf entry can be. https://mwl.io/nonfiction/os#fmjail -- Dan Langille dan@langille.org