Date: Sat, 13 Feb 2021 10:25:32 +0000 From: "Thomas Mueller" <mueller6722@twc.com> To: freebsd-emulation@freebsd.org Cc: JB <freebsdlists.admin@protonmail.com> Subject: Re: Linuxulator: running one's own small Linux in FreeBSD? References: <3OWRHri6YXev4KcRSoZUcPlowZ8fJeyKbDQXI_3Rak2YHuPKx9_mmN4KSvPH0s09ws0q2kG6tuwUagLbFLpE_mfpYwQ8qy-TSvO_WP6A240=@protonmail.com> <60275607.1c69fb81.18de5.04ffSMTPIN_ADDED_MISSING@mx.google.com> <CAJm2B-n3xyjht20hi=poY7tqA1Y3a26=L39aDYB7VZYSuovDSg@mail.gmail.com>
| previous in thread | raw e-mail | index | archive | help
from Damjan Jovanovic <damjan.jov@gmail.com>: > On Sat, Feb 13, 2021 at 6:31 AM Thomas Mueller <mueller6722@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". So I guess Linux service is restarted by "service linux restart"? kldstat on my Freebsd showed only linux.ko, linus_common.ko and linux64.ko . I had not yet actually attempted to run my small Linuxes in FreeBSD or NetBSD, not ready yet. I still would need such things as init scripts, proc fs, /etc/fstab and other configuration files. FreeBSD Handbook online is not sufficiently detailed. Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>