My jails are broken ATM again. I just tried upgrading one yesterday. To get packages, they'd need to go 11.4 instead of 11.3. And since that's ahead of kernel version of FreeNAS, it breaks the jail pkg system.
I did this:
Code:
iocage upgrade -r 11.3-RELEASE dbs
which should upgrade it to 11.3, like it looks like:
Code:
iocage console dbs
freebsd-version
11.3-RELEASE-p14
but while running pkg update && pkg upgrade it didn't find any packages, as that jail release is EOL.
Code:
....
Proceed with this action? [y/N]: y
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/All/readline-8.0.0.txz: Not Found
Then I tried force update for pkg, but that would think system is 11.4:
Code:
# pkg update -f
Updating FreeBSD repository catalogue...
[dbs-11-2] Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
[dbs-11-2] Fetching packagesite.txz: 100% 6 MiB 6.3MB/s 00:01
Processing entries: 0%
Newer FreeBSD version for package finch:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1104001
- running kernel: 1103000
Ignore the mismatch and continue? [Y/n]: n
So, I assume any updates for jails are doomed to fail until FreeNAS updates to 11.4.
Jails together with FreeNAS being released late from FreeBSD is a combination that really makes the jails risky business. They are every now and then in the state of not possible update or install anything into. So if one is planning to use jails, be aware they get broken every now and then, and stay in such state for unkown time until if FreenNAS or TrueNAS catches up with FreeBSD version at the time, for a moment.
The only way of installing stable system is unfortunately to sacrifice some of the performance and resources to run VM. Then you are able to run the normal automation on your favorite distro. Personally I am running now Fedora-IoT for minimal linux, and use cockpit and ansible to manage config of that within containers.
The downside is that every disk operation to ZFS needs to go either via NFS over network virtualization or virtualized filesystem layer, which then eats resources and performance.
I'm really looking forward for the scale linux version and containers!