Linuxulator: running one's own small Linux in FreeBSD?

Damjan Jovanovic damjan.jov at gmail.com
Sat Feb 13 05:10:59 UTC 2021


On Sat, Feb 13, 2021 at 6:31 AM Thomas Mueller <mueller6722 at twc.com> wrote:

> from JB:
>
> > If it's just a local directory, you can use `sysctl' to tell the kernel
> what the emulation path is:
>
> > sysctl compat.linux.emul_path=/foo/bar
>
> > Then restart the `linux' service.
>
> How do I restart the 'linux' service?
>
> I am familiar with "/etc/rc.d/mountd restart", but don't think I could do
> "etc/rc.d/linux restart" (or linuxd).
>
>
$ sudo service linux describe
Enable Linux ABI


> I tried "sysctl -a | grep "linux" from FreeBSD and got nothing; also
> sysctl compat.linux.emul_path
> gave me "Unknown oid" error.
>
>
$ sysctl compat.linux.emul_path
compat.linux.emul_path: /compat/linux

$ kldstat|grep lin
 2    1 0xffffffff8247b000     fb58 linprocfs.ko
 3    5 0xffffffff8248b000     d770 linux_common.ko
 6    1 0xffffffff824aa000     6618 linsysfs.ko
11    4 0xffffffff83408000    12d30 linuxkpi.ko
12    3 0xffffffff8341b000    13f30 linuxkpi_gplv2.ko
26    1 0xffffffff834ee000    3c490 linux.ko
27    1 0xffffffff8352b000    35cb0 linux64.ko

This is on FreeBSD 12.2.

I think you're missing some of the base packages, and didn't load "kldload
linux".


> Tom
>
>
Damjan


More information about the freebsd-emulation mailing list