Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Feb 2021 18:10:39 +0000
From:      JB <freebsdlists.admin@protonmail.com>
To:        freebsd-emulation@freebsd.org
Subject:   Re: Linuxulator: running one's own small Linux in FreeBSD?
Message-ID:  <3OWRHri6YXev4KcRSoZUcPlowZ8fJeyKbDQXI_3Rak2YHuPKx9_mmN4KSvPH0s09ws0q2kG6tuwUagLbFLpE_mfpYwQ8qy-TSvO_WP6A240=@protonmail.com>

index | next in thread | raw e-mail

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Monday, February 8th, 2021 at 4:00 AM, <freebsd-emulation-request@freebsd.org> wrote:

> Message: 4
>
> Date: Mon, 08 Feb 2021 02:51:55 +0000
>
> From: "Thomas Mueller" mueller6722@twc.com
>
> To: freebsd-emulation@freebsd.org
>
> Subject: Linuxulator: running one's own small Linux in FreeBSD?
>
> Message-ID: mailman.86.1612785601.7529.freebsd-emulation@freebsd.org
>
> Is it possible to run one's own little Linux in FreeBSD by null-mounting directory or partition on /compat/linux?
>
> I am thinking in particular of my own cross-compiled version (from FreeBSD or NetBSD on amd64 aka x86_64) still in infancy, with busybox or otherwise?
>
> This busybox is cross-compiled for Linux (i486-linux-musl or x86_64-linux-musl).
>
> Currently, this is on UFS2 aka ffsv2 file system.
>
> Would the Linux C library have to be glibc, or could it be uClibc-ng or (more likely) musl?
>
> I would want to be able to try with more than one infant Linux installation (one at a time), hence the desire to null-mount on /compat/linux rather than copying to /compat/linux.
>
> Tom

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.


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3OWRHri6YXev4KcRSoZUcPlowZ8fJeyKbDQXI_3Rak2YHuPKx9_mmN4KSvPH0s09ws0q2kG6tuwUagLbFLpE_mfpYwQ8qy-TSvO_WP6A240=>