From owner-freebsd-questions@freebsd.org Sat Mar 27 08:28:39 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 EF3CD5BD10C; Sat, 27 Mar 2021 08:28:39 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mail.foucry.net (mail.foucry.net [IPv6:2a01:4f9:4a:1fd8::17]) (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 4F6sS65p4Mz4tFw; Sat, 27 Mar 2021 08:28:38 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mail.foucry.net (unknown [192.168.12.17]) by mail.foucry.net (Postfix) with ESMTP id 081D793A4; Sat, 27 Mar 2021 08:28:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at foucry.net Received: from mail.foucry.net ([192.168.12.17]) by mail.foucry.net (mail.foucry.net [192.168.12.17]) (amavisd-new, port 10024) with ESMTP id fI5pY8yUK_p8; Sat, 27 Mar 2021 08:28:35 +0000 (UTC) Received: by mail.foucry.net (Postfix, from userid 58) id 56096904D; Sat, 27 Mar 2021 08:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=foucry.net; s=dkim; t=1616833715; bh=idcbRhMjODr8ZH7X0WfHNCWlAqqqDbiI3m1LyGQ8bMY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MhgfUVNQinG4I03CZOwT6IeZZW5ItMJ2ACUgGsNfhO8d/Y74+UbVVrVij55IdpzPV n4IlolUiJQ1+IywSV/h3JGW7oBt5CSt6bloSfx9a4bIE7fuxmGSPFaMsgmtI5w00WI bsWhv5C75aTUXJfnWPN30NNo+ndqNSzQZfLGC4+M= Received: from mithril.foucry.net (unknown [IPv6:2a01:cb10:8e64:fe00:ea6a:64ff:fe07:95a1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.foucry.net (Postfix) with ESMTPSA id 1A0A7962D; Sat, 27 Mar 2021 08:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=foucry.net; s=dkim; t=1616833713; bh=idcbRhMjODr8ZH7X0WfHNCWlAqqqDbiI3m1LyGQ8bMY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=clk045IXyGmub80kkOVUjiJXR5v9a+LJZHli5C96pyGedV0HggPsfCHYGlEoGNh4t ut5G3PXncpZFC/a4kln9eyRr85lYizhHQ6QLesJss/pOrtwg4fMx56ka3XzThQF7/f O2dGCrAUcKoNY7XQjeFsexazZfSAm9rTmJw/k2bk= Received: from mithril.foucry.net (localhost [IPv6:::1]) by mithril.foucry.net (Postfix) with ESMTPS id C31856898E; Sat, 27 Mar 2021 09:28:32 +0100 (CET) Date: Sat, 27 Mar 2021 09:28:31 +0100 From: Jacques Foucry To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-questions@freebsd.org, freebsd-jail@freebsd.org Subject: Re: Move jails hard way to iocage Message-ID: Mail-Followup-To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-questions@freebsd.org, freebsd-jail@freebsd.org References: <0f5e72db-2a1a-55d3-29c7-8750273de4ca@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0f5e72db-2a1a-55d3-29c7-8750273de4ca@quip.cz> X-Operating-System: FreeBSD X-Rspamd-Queue-Id: 4F6sS65p4Mz4tFw X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=foucry.net header.s=dkim header.b=MhgfUVNQ; dkim=pass header.d=foucry.net header.s=dkim header.b=clk045IX; dmarc=pass (policy=none) header.from=foucry.net; spf=pass (mx1.freebsd.org: domain of jacques@foucry.net designates 2a01:4f9:4a:1fd8::17 as permitted sender) smtp.mailfrom=jacques@foucry.net X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[foucry.net:s=dkim]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a01:4f9:4a:1fd8::17:from]; SPAMHAUS_ZRD(0.00)[2a01:4f9:4a:1fd8::17:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[foucry.net:+]; DMARC_POLICY_ALLOW(-0.50)[foucry.net,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f9::/32, country:DE]; TAGGED_FROM(0.00)[freebsd]; MAILMAN_DEST(0.00)[freebsd-jail,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: Sat, 27 Mar 2021 08:28:40 -0000 Le vendredi 26 mars 2021 à 15:16:27 (+0100), Miroslav Lachman à écrit: > On 26/03/2021 10:28, 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? > > I am not using iocage but it should not be hard. I guess you can create > jails with names and setting you want (not start them) and then move > (rename) ZFS filesystems if they are used in your current setup. Or just > move files with rsync from old jail to new jail. What will be better for > your setup. That's the way Dan Langille use in https://dan.langille.org/2019/04/08/converting-thin-jails-to-thick-jails/, and I will use this experience for moving my jail.conf Thanks for your answer and your time -- Jacques Foucry