general/other Linuxulator (Ubuntu) does not work

Hello.
Try to install linuxulator as https://docs.freebsd.org/en/books/handbook/linuxemu/ for Ubuntu. After this when I run I'm getting
Code:
root@six:/compat # chroot /compat/ubuntu /bin/bash
FATAL: kernel too old
root@six:/compat #

If I run c7
Code:
root@six:/compat # chroot /compat/linux /bin/bash
bash-4.2#
all right.

Code:
root@six:~ # uname -a
FreeBSD six 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@six:~ #

What may be wrong in my kernel?
 
Check the output of sysctl compat.linux.osrelease. If it reports an old version, adjust it accordignly to the version used by the release of Ubuntu you installed.
 
It reports 2.6.32. I suppose it is c7 version number, I have c7 in /compat/linux. So, if I install Ubuntu 22.04 I set compat.linux.osrelease '22.04'? Thanks, I'll try.
 
Code:
root@six:/usr/home/sailorsamoor # sysctl -w compat.linux.osrelease="6.2.00"
compat.linux.osrelease: 4.6.32 -> 6.2.00
root@six:/usr/home/sailorsamoor # chroot /compat/ubuntu /bin/bash
groups: cannot find name for group ID 0
groups: cannot find name for group ID 193
I have no name!@six:/# uname -s -m -o
Linux x86_64 GNU/Linux
I have no name!@six:/#

Got it. Thanks.
 
Back
Top