Hello all,
EDIT: Please try the official migration script migrate_warden.py before this. This was written time ago when the official script sucked at getting jails to work out of the box. If your jails are starting and working fine after migrate_warden.py then you're good to go.
I wrote this script the other day to facilitate moving all my jails from 11.1 to 11.2 (from warden to iocage).
It's very easy to use and it will do all your jails or just a single one. It's in an ok shape. It converted all my jails successfully and without any issues. Does some minimal error checking and all that but I was too lazy to check return codes for everything. I tested this on my actual server. My networking setup is very minimal aka DHCP so that would reflect on the config.patch file. You can change the patch file however you want and you'll get anything out of the old config to the new. I believe that the patch file changes are crucial to a successful migration. Maybe stuff like release name isn't that crucial, but to be congruent as to how the 11.2 GUI generates new jails, I put them in there.
One thing people will definitely like for sure is how it converts the MAC address to the new format AND it increments the second MAC address just like many have posted to make the networking work out of the box.
If you use it please back up your jail config foremost and then anything else necessary. It uses migrate_warden.py so just like that script it will NOT mess up your old jails.
I believe everything that I did, migrate_warden.py should do by default. But of course we cannot have that.
In case you run into issues just do
That's how I got it to the point where it is without 0 issues.
Link to Github: warden-migration-script
Please improve it if you are so kind to do so. One thing that comes to mind is that it needs to do mount points as well. I did those manually since I felt it would be too much of a hassle to code it up.
Enjoy
EDIT: Please try the official migration script migrate_warden.py before this. This was written time ago when the official script sucked at getting jails to work out of the box. If your jails are starting and working fine after migrate_warden.py then you're good to go.
I wrote this script the other day to facilitate moving all my jails from 11.1 to 11.2 (from warden to iocage).
It's very easy to use and it will do all your jails or just a single one. It's in an ok shape. It converted all my jails successfully and without any issues. Does some minimal error checking and all that but I was too lazy to check return codes for everything. I tested this on my actual server. My networking setup is very minimal aka DHCP so that would reflect on the config.patch file. You can change the patch file however you want and you'll get anything out of the old config to the new. I believe that the patch file changes are crucial to a successful migration. Maybe stuff like release name isn't that crucial, but to be congruent as to how the 11.2 GUI generates new jails, I put them in there.
One thing people will definitely like for sure is how it converts the MAC address to the new format AND it increments the second MAC address just like many have posted to make the networking work out of the box.
If you use it please back up your jail config foremost and then anything else necessary. It uses migrate_warden.py so just like that script it will NOT mess up your old jails.
I believe everything that I did, migrate_warden.py should do by default. But of course we cannot have that.
In case you run into issues just do
iocage destroy jail_name --recursive
and try again.That's how I got it to the point where it is without 0 issues.
Link to Github: warden-migration-script
Please improve it if you are so kind to do so. One thing that comes to mind is that it needs to do mount points as well. I did those manually since I felt it would be too much of a hassle to code it up.
Enjoy
Last edited: