From owner-freebsd-questions@freebsd.org Wed Jul 12 16:52:11 2017 Return-Path: Delivered-To: freebsd-questions@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 547D5D9D3CC for ; Wed, 12 Jul 2017 16:52:11 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FCB36E29E for ; Wed, 12 Jul 2017 16:52:10 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id A64FF6211D; Wed, 12 Jul 2017 12:44:53 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DzsdownQdkxV; Wed, 12 Jul 2017 12:44:51 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 124F962107; Wed, 12 Jul 2017 12:44:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1499877891; bh=RwvsA+UAv4PmILY8Jfz4iBBNHWhFfW3njRe21rrNF0E=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=ylgZim+SBbEM9zJ5YMzn+TK7ZJegXtB2lw+lfCO8FxgzQ/DYzBqDw/+0yUYsv7Gzg X4IHLDMOHnh9SVC472Gs+i/CawpvVzU9184MuQtoPn2gL3Qr9dpHV7+1Qn+TWSseuX BJgzwFqs92IhQkArLTFyVpB6twil3N9gcPkylauwlDLcI/GLHB6rsClpWBSjgJN8NV lhMLFRJCEU34an7onhwUECCSY/DssxbNemGKfmkjKJHrxoNHawfPiUfZgoKLix4Z/h V8MfcNmqw0Fj81H9Gnem8JyTSib9+YLWSW9aaP0lG5ckazoFhSoGRTpU2M0GsIbCgU p12KJC8OeppUg== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 12 Jul 2017 12:44:51 -0400 Message-ID: In-Reply-To: References: <772bdab1906a8a3deea24fb6b246e40e.squirrel@webmail.harte-lyne.ca> Date: Wed, 12 Jul 2017 12:44:51 -0400 Subject: Re: A readers digest version of transferring a jail from one host to another. From: "James B. Byrne" To: "Ben Woods" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2017 16:52:11 -0000 On Fri, June 30, 2017 19:37, Ben Woods wrote: > Hi James, > > With ezjail the easiest way to take a copy of a jail and move it to > another host is with the build in archive/restore process. > > Old server: > # ezjail-admin stop jailname > # ezjail-admin archive jailname > > default it will be in /usr/jails/ezjail_archives.> > > New server: > # ezjail-admin restore archivefilename > # ezjail-admin start jailname > > For more details and optional arguements to these commands you can > refer to the manpage: > http://man.freebsd.org/ezjail-admin > > Regards, > Ben Thank you for the advice. It was most useful now that I have finally gotten to use it. I did mention that I was pressed for time. I simply did not realize just how pressed I would be. After creating and transferring the archives to the target host what I ended up doing was a variant of this command: ezjail-admin create \ -a /usr/jails/ezjail_archives/hllmx18-201707041251.23.tar.gz \ hllmx150 'lo1|127.0.150.1,lo1|::150:1,re0|192.168.209.150' Which produced exactly the result I sought. Thanks again. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3