Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2021 01:19:42 +0000
From:      JB <freebsdlists.admin@protonmail.com>
To:        "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>
Subject:   Re: Linuxulator: running one's own small Linux in FreeBSD?
Message-ID:  <Q1jGLxpRAhMI_m-SUbndWt6evWE7fORu8DH70gYG9D2Q-LRIMrQiOIzXvLc4DP87hTmm5mgBBcwabUcHoLfwp9K6N22JAWuFzO5VMK8Qajs=@protonmail.com>
In-Reply-To: <_RrpGfn44_2JCRIBPe2l0qp03Q7xatJLvQ4yXYAqG4fPMACVJwczoWxlCFf5SeLaj8tqRckboW62Ct7emn3pJOezBS5QIkRWN53v1T4wSO0=@protonmail.com>
References:  <_RrpGfn44_2JCRIBPe2l0qp03Q7xatJLvQ4yXYAqG4fPMACVJwczoWxlCFf5SeLaj8tqRckboW62Ct7emn3pJOezBS5QIkRWN53v1T4wSO0=@protonmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Corrections:
1. Those *other* modules (the ones missing from your list).
2. You want the *former*, not the latter. Sounds like you want jails with s=
tartup scripts.


=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me=
ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90
On Saturday, February 13, 2021 5:12 PM, JB <freebsdlists.admin@protonmail.c=
om> wrote:

> > So I guess Linux service is restarted by "service linux restart"?
>
> service | grep List
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> -l List all scripts in /etc/rc.d and /usr/local/etc/rc.d
>
> service -l | grep ux
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> linux
>
> The `service' command controls the rc script that starts the service.
>
> > kldstat on my Freebsd showed only linux.ko, linus_common.ko and linux64=
.ko .
>
> Those modules won't be loaded until you start the `linux' service with 'l=
inux_mounts_enable' enabled (or you mount them yourself with fstab, manuall=
y, or another script):
>
> sysrc linux_mounts_enable=3DYES
>
> > 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.
>
> The target directory can be empty (in the case of the default emulation p=
ath, '/compat/linux') when starting the service. It doesn't actually "start=
" your guest OS. I don't know what your plans are, but running Linux inside=
 a jail is different than using the compatibility layer. It sounds like you=
 want the latter:
>
> https://www.harshadsharma.com/posts/2020/12/ubuntu-bionic-on-freebsd-with=
-iocage-managed-jails/
>
> > FreeBSD Handbook online is not sufficiently detailed.
>
> Sadly, documentation has lagged behind the high pace of OS development. B=
ut, better that than a slow pace of development.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Q1jGLxpRAhMI_m-SUbndWt6evWE7fORu8DH70gYG9D2Q-LRIMrQiOIzXvLc4DP87hTmm5mgBBcwabUcHoLfwp9K6N22JAWuFzO5VMK8Qajs=>