Jail (in Core) reports different version than WebUI shows

I created a jail (basejail) with release 13.4 from the latest core 13 train (13.0-U6.4). If I shell into the jail and use uname -r I get 13.1-RELEASE-p9 which is EOL now. Why does the UI show that it is version 13.4p2?

Because uname(1) shows the kernel version which is shared with the host. TrueNAS core 13.3-U1 is the latest version but you will have to download the manual update package and update manually. I would highly recommend you do that since you are running 13.4 jails on a 13.0 base system and there are some package incompatibilities that were introduced when FreeBSD 13.3 was released.

So I guess that was a long way of saying, no don’t ignore it and update your base system.

1 Like

Thank you for the response . . . I’m thinking that my best option for long term is just migrate to scale after digging into this for a bit. I’ve been trying to build minecraft-server in the jail which keeps failing due to a dtrace bug in the 13.1 version. So now I’m evaluating the migration path, and I have a naming problem with my root dataset and child share point having the same name. 10 year old decisions are now proving to be a real problem . . .

You shouldn’t really use uname on FreeBSD systems.

A better command to use is freebsd-version

Also, jails on FreeBSD can run any versions earlier than the host up to the host’s version, but NOT versions later than the host.

This is mostly true but some changes were made with FreeBSD 13.3 that made some packages incompatible with jails running newer versions than the host. It’s never been that way in the past that I’m aware of and is the reason that if you want to run jails newer than 13.2 on Core you MUST update to the latest version of Core manually.

Re-read my sentence… That is exactly what I said…

You can run jail versions later than the host that use the same kernel such as 13.2 jails on 13.0 host. That was always the case until FreeBSD 13.3. Go do some research at the old forum, there’s plenty of posts about it.

Maybe you “could”, but it was never supported and kind of like YMMV type of thing much like custom partition scheme installations of True NAS. Could you do it? Sure, is it supported? No. Is it gonna work? Sometimes yes, sometimes no. Roll the dice.

Just look at the response of this FreeBSD forum administrator.

I can confirm that FreeBSD 13.4 jails have no problems running on TrueNAS CORE 13.3. That’s the only available combination to get a supported FreeBSD release inside the jail today.

FreeBSD 13.5 will probably work but I cannot confirm just yet. It all depends on the question if there are system call changes from one version to the next.

Also, yes - uname is utterly unfit to determine the version of a jail’s FreeBSD installation. Always use freebsd-version.

1 Like