A readers digest version of transferring a jail from one host to another.

James B. Byrne byrnejb at harte-lyne.ca
Wed Jul 12 16:52:11 UTC 2017

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
> <Then copy the  archive file to new server (same directory). By
> 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|,lo1|::150:1,re0|'

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 at 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

More information about the freebsd-questions mailing list