I am running a system with TrueNAS-13.0-U6.1, which currently is the most recent release. This is based on FreeBSD 13.1 (which is EOL):
This is a bit of a shame (it tends to happen with TrueNAS that the latest version is running an EOL'd version of FreeBSD) because I cannot use
I always was under the impression, also based on what I know from "FreeBSD Mastery, Jails", that the host system and the jails should (read: must?) be running the same version of FreeBSD (maybe differing in the patch level). This is because they share the same kernel (the one of the host system). So I assumed I have to wait for a TrueNAS upgrade to 13.2 before I could use
Also, the handbook suggests at least, that the jails cannot be "newer" than the host:
docs.freebsd.org
Now, looking at the TrueNAS GUI, it suggests I can create/install 13.2-RELEASE jails (or 12.4-RELEASE)... Also, there is a post in the TrueNAS forum that states (unfortunately without a reference to the source, emphasis is mine):
www.truenas.com
Would/should this work? Running a 13.2 jail on a 13.1 host? It seems "strange" as the 13.2 jail would use the system's 13.1 kernel, no? If so, is it "usually working" or is it "supported"?
Then again, the handbook states something confusing in an info box in the section "Jail Upgrading":
docs.freebsd.org
How can the kernel in a jail be upgraded? There is no kernel...
Does it maybe just mean,
is operating the same way in/outside with/without jails and "tries to upgrade the kernel first" (without actually being able to do so)?
To be honest, the reverse is also not 100% clear to me: how could a jail be on a lower version than the host? Although I can (better) imagine, that this can work (because everything is (backwards) ABI compatible).
I would appreciate any pointers to information or explanations that shed some light on this.
Code:
# uname -a
FreeBSD storage.example.com 13.1-RELEASE-p9 FreeBSD 13.1-RELEASE-p9 n245429-296d095698e TRUENAS amd64
This is a bit of a shame (it tends to happen with TrueNAS that the latest version is running an EOL'd version of FreeBSD) because I cannot use
pkg
in the jails.I always was under the impression, also based on what I know from "FreeBSD Mastery, Jails", that the host system and the jails should (read: must?) be running the same version of FreeBSD (maybe differing in the patch level). This is because they share the same kernel (the one of the host system). So I assumed I have to wait for a TrueNAS upgrade to 13.2 before I could use
pkg
again.Also, the handbook suggests at least, that the jails cannot be "newer" than the host:
To upgrade the jail to a new major or minor version, first upgrade the host system as described in Performing Major and Minor Version Upgrades. Once the host has been upgraded and rebooted, the jail can then be upgraded.
Chapter 17. Jails and Containers
Jails improve on the concept of the traditional chroot environment in several ways
Now, looking at the TrueNAS GUI, it suggests I can create/install 13.2-RELEASE jails (or 12.4-RELEASE)... Also, there is a post in the TrueNAS forum that states (unfortunately without a reference to the source, emphasis is mine):
As long as you jails are of the same *major* version or lower than the host then you are fine.
Confusion about FreeBSD-Release of Host and Jails
Hey guys! My current setup: - A TrueNAS Core Host that was installed with 13.0-U4 a few months ago and updated to 13.0-U6 in the meantime - 5 Jails, 4 of them Plugins (AdGuard Home, Emby Server - Stable, OpenVPN Server and Nextcloud) The TrueNAS Core Host is currently running FreeBSD...
![www.truenas.com](https://www.truenas.com/community/data/assets/logo/FORUMSFAVICON.png)
Would/should this work? Running a 13.2 jail on a 13.1 host? It seems "strange" as the 13.2 jail would use the system's 13.1 kernel, no? If so, is it "usually working" or is it "supported"?
Then again, the handbook states something confusing in an info box in the section "Jail Upgrading":
It is necessary to execute the install step two times. The first one upgrades the kernel, and the second one upgrades the rest of the components.
Chapter 17. Jails and Containers
Jails improve on the concept of the traditional chroot environment in several ways
How can the kernel in a jail be upgraded? There is no kernel...
Does it maybe just mean,
freebsd-update
is operating the same way in/outside with/without jails and "tries to upgrade the kernel first" (without actually being able to do so)?
To be honest, the reverse is also not 100% clear to me: how could a jail be on a lower version than the host? Although I can (better) imagine, that this can work (because everything is (backwards) ABI compatible).
I would appreciate any pointers to information or explanations that shed some light on this.