Solved Restore jail from older release

So I need to figure out a way of this.

I have a few jails running on an old server (Kimsufi dedicated) with 11.x. (For strange reasons OVH/Kumsufi seem to not want to offer 13.x)

My new server runs 13.x and has a couple of jails too.

Now I would like to shutdown the old server and move everything to the new one.

Normally I would archive and restore the jails, but with different kernel versions that will lead to complications.

So how do I get this done without too much trouble?

Will it suffice to use the compat11x pkg on the new server?

The only link I could find via Google is this and there the recommendation is to import the old basejail. This would normally make sense but I already have a few operational jails (and hence basejail based on the 13.x) on the new server. I am not sure it makes sense to use two basejails in parallel. The other suggestion in that link is the aforementioned compat port.

PS - I am using ezjail.

Edit/add - better googling found me this thread from this forum too. Hopefully the advice in this will suffice.
 
Normally I would archive and restore the jails, but with different kernel versions that will lead to complications.
It's fine to run 11.x jails on 13.x. You only need to make sure your kernel has COMPAT_FREEBSD11 and COMPAT_FREEBSD12. The GENERIC kernel should already have those.

Will it suffice to use the compat11x pkg on the new server?
Don't need it. The jail already contains all the 11.x libraries. You really only need the compatibility libraries if you run an 11.x binary directly on 13.x.
 
Maybe it's worth mentioning that I experienced a problem with tun interfaces (and OpenVPN) when trying to run 12.0 jails on a 13.0 host. OpenVPN kept failing to create a tun interface although tun devices continued appearing in /dev on the host until 255 devices were created. This did not occur with 13.0 jails.
 
So it worked smoothly - mostly.

Couple of points I came across -

1. Since the base jail was of the new host (13.x) and the migrated jails had an older pkg version, this had to be fixed by bootstrapping pkg in the migrated jails.

2. One of the migrated jails had MySql running on it. MySql was initially unable to start up. After fixing pkg (^) and upgrading MySql, it worked.
 
Back
Top