Menu Home

How-to migrate your FreeBSD jails from iocage to bastille

Stop the running jail and export it:

iocage stop jailname
iocage export jailname

Move the backup files (.zip and .sha256) into Bastille backup dir (default: /usr/local/bastille/backups/):

mv /iocage/images/jailname_2020-03-26.* /usr/local/bastille/backups/

for remote systems you could use rsync:

rsync -avh /iocage/images/jailname_2020-03-26.* [email protected]:/usr/local/bastille/backups/

Import the iocage backup file (use zip file name)

bastille import jailname_2020-03-26.zip

Set your new ip address and interface:

vim /usr/local/bastille/jails/jailname/jail.conf

interface = bastille0;
ip4.addr = "192.168.0.1";

you can set to your primary interface if you don’t want to use a loopback device, e. g. interface=igb0;

Categories: freebsd

hackacad