Date: Sat, 13 Feb 2021 07:10:45 +0200 From: Damjan Jovanovic <damjan.jov@gmail.com> To: Thomas Mueller <mueller6722@twc.com> Cc: freebsd-emulation@freebsd.org, JB <freebsdlists.admin@protonmail.com> Subject: Re: Linuxulator: running one's own small Linux in FreeBSD? Message-ID: <CAJm2B-n3xyjht20hi=poY7tqA1Y3a26=L39aDYB7VZYSuovDSg@mail.gmail.com> In-Reply-To: <60275607.1c69fb81.18de5.04ffSMTPIN_ADDED_MISSING@mx.google.com> References: <3OWRHri6YXev4KcRSoZUcPlowZ8fJeyKbDQXI_3Rak2YHuPKx9_mmN4KSvPH0s09ws0q2kG6tuwUagLbFLpE_mfpYwQ8qy-TSvO_WP6A240=@protonmail.com> <60275607.1c69fb81.18de5.04ffSMTPIN_ADDED_MISSING@mx.google.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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". > Tom > > Damjan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJm2B-n3xyjht20hi=poY7tqA1Y3a26=L39aDYB7VZYSuovDSg>