From owner-freebsd-emulation@freebsd.org Mon Feb 8 18:10:58 2021 Return-Path: Delivered-To: freebsd-emulation@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C0BE53BA56 for ; Mon, 8 Feb 2021 18:10:58 +0000 (UTC) (envelope-from freebsdlists.admin@protonmail.com) Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZDbh4L79z4bpd for ; Mon, 8 Feb 2021 18:10:56 +0000 (UTC) (envelope-from freebsdlists.admin@protonmail.com) Date: Mon, 08 Feb 2021 18:10:39 +0000 To: freebsd-emulation@freebsd.org From: JB Reply-To: JB Subject: Re: Linuxulator: running one's own small Linux in FreeBSD? Message-ID: <3OWRHri6YXev4KcRSoZUcPlowZ8fJeyKbDQXI_3Rak2YHuPKx9_mmN4KSvPH0s09ws0q2kG6tuwUagLbFLpE_mfpYwQ8qy-TSvO_WP6A240=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLYTO shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Rspamd-Queue-Id: 4DZDbh4L79z4bpd X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.10 / 15.00]; HAS_REPLYTO(0.00)[freebsdlists.admin@protonmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[185.70.40.132:from]; FREEMAIL_FROM(0.00)[protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.132:from]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[185.70.40.132:from]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; FAKE_REPLY(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; SPAMHAUS_ZRD(0.00)[185.70.40.132:from:127.0.2.255]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_CC(0.00)[twc.com]; MAILMAN_DEST(0.00)[freebsd-emulation] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 18:10:58 -0000 =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 Monday, February 8th, 2021 at 4:00 AM, 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 FreeBS= D or NetBSD on amd64 aka x86_64) still in infancy, with busybox or otherwis= e? > > 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 installati= on (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 wha= t the emulation path is: sysctl compat.linux.emul_path=3D/foo/bar Then restart the `linux' service.