From owner-freebsd-emulation@freebsd.org Sun Feb 14 01:13:03 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 BEB5A542FC9 for ; Sun, 14 Feb 2021 01:13:03 +0000 (UTC) (envelope-from freebsdlists.admin@protonmail.com) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (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 4DdTkQ20cbz3qQY for ; Sun, 14 Feb 2021 01:13:01 +0000 (UTC) (envelope-from freebsdlists.admin@protonmail.com) Date: Sun, 14 Feb 2021 01:12:50 +0000 To: "freebsd-emulation@freebsd.org" From: JB Reply-To: JB Subject: Re: Linuxulator: running one's own small Linux in FreeBSD? Message-ID: <_RrpGfn44_2JCRIBPe2l0qp03Q7xatJLvQ4yXYAqG4fPMACVJwczoWxlCFf5SeLaj8tqRckboW62Ct7emn3pJOezBS5QIkRWN53v1T4wSO0=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM 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: 4DdTkQ20cbz3qQY X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.09 / 15.00]; HAS_REPLYTO(0.00)[freebsdlists.admin@protonmail.com]; 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(-0.99)[-0.985]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.135:from]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; MID_RHS_MATCH_FROM(0.00)[]; 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]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.40.135:from]; 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: Sun, 14 Feb 2021 01:13:03 -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 Saturday, February 13, 2021 2:25 AM, Thomas Mueller wrote: > So I guess Linux service is restarted by "service linux restart"? # service | grep List -l List all scripts in /etc/rc.d and /usr/local/etc/rc.d # service -l | grep ux 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.k= o . Those modules won't be loaded until you start the `linux' service with 'lin= ux_mounts_enable' enabled (or you mount them yourself with fstab, manually,= or another script): sysrc linux_mounts_enable=3DYES > I had not yet actually attempted to run my small Linuxes in FreeBSD or Ne= tBSD, not ready yet. > > I still would need such things as init scripts, proc fs, /etc/fstab and o= ther configuration files. The target directory can be empty (in the case of the default emulation pat= h, '/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 w= ant the latter: https://www.harshadsharma.com/posts/2020/12/ubuntu-bionic-on-freebsd-with-i= ocage-managed-jails/ > FreeBSD Handbook online is not sufficiently detailed. Sadly, documentation has lagged behind the high pace of OS development. But= , better that than a slow pace of development. From owner-freebsd-emulation@freebsd.org Sun Feb 14 01:19:49 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 092C554369C for ; Sun, 14 Feb 2021 01:19:49 +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 4DdTtC73sNz3qwQ for ; Sun, 14 Feb 2021 01:19:47 +0000 (UTC) (envelope-from freebsdlists.admin@protonmail.com) Date: Sun, 14 Feb 2021 01:19:42 +0000 To: "freebsd-emulation@freebsd.org" From: JB Reply-To: JB Subject: Re: Linuxulator: running one's own small Linux in FreeBSD? Message-ID: In-Reply-To: <_RrpGfn44_2JCRIBPe2l0qp03Q7xatJLvQ4yXYAqG4fPMACVJwczoWxlCFf5SeLaj8tqRckboW62Ct7emn3pJOezBS5QIkRWN53v1T4wSO0=@protonmail.com> References: <_RrpGfn44_2JCRIBPe2l0qp03Q7xatJLvQ4yXYAqG4fPMACVJwczoWxlCFf5SeLaj8tqRckboW62Ct7emn3pJOezBS5QIkRWN53v1T4wSO0=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM 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: 4DdTtC73sNz3qwQ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.10 / 15.00]; HAS_REPLYTO(0.00)[freebsdlists.admin@protonmail.com]; RWL_MAILSPIKE_GOOD(0.00)[185.70.40.132:from]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24:c]; FREEMAIL_FROM(0.00)[protonmail.com]; DKIM_TRACE(0.00)[protonmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-0.999]; 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]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[185.70.40.132:from:127.0.2.255]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; 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: Sun, 14 Feb 2021 01:19:49 -0000 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 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. From owner-freebsd-emulation@freebsd.org Sun Feb 14 21:00:47 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 6AE8553C2F0 for ; Sun, 14 Feb 2021 21:00:47 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Df04t4MKJz4Y5p for ; Sun, 14 Feb 2021 21:00:46 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 047C653C2EA; Sun, 14 Feb 2021 21:00:46 +0000 (UTC) Delivered-To: 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 EB1DA53BFEF for ; Sun, 14 Feb 2021 21:00:45 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Df04s1Bl8z4YJZ for ; Sun, 14 Feb 2021 21:00:45 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1613336445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=suJdL4X9m25vr2mUZDV6kl8c73wo9BiXUGRUctZ0XhU=; b=hMQ0tpK0Gs0iwbdI2dP2atP64P1g7m0LEBlJlgHxg9cPyLuOiFrGqRovsGEDCGeO30C2hr IErIk3HB4VNftD4RgcACckEzCzFfJ8ue+a0R7vLNuiEDIwFeXQgZVz5dm25RtT+ac1CqFt Wfjiozuzd2C8X76HZuOfe+ZgTh0sBxX5likx53CRSPTanLEO88QiIeHco5IEFxSwDSi6xc aptwEwojR0eFLAvhxGdRIk7XZQX21NjrvTUIJTU+5SsCo5/HpQm9KfLej2SG+tq96oy744 m5nLTWodL3BmkqgFpjI9tniZLPdvPB1AkBWBOrNMmxime5SbeJZQ5D6Pswn1TQ== Received: by freefall.freebsd.org (Postfix) id 0C814B7A; Sun, 14 Feb 2021 21:00:44 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id D4BCCCF0 for ; Sun, 14 Feb 2021 21:00:43 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Df04q1bXWz4Y2l for ; Sun, 14 Feb 2021 21:00:43 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0D74E11472 for ; Sun, 14 Feb 2021 21:00:42 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 11EL0f78057451 for ; Sun, 14 Feb 2021 21:00:41 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11EL0f2U057433 for vbox@FreeBSD.org; Sun, 14 Feb 2021 21:00:41 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202102142100.11EL0f2U057433@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: vbox@FreeBSD.org Subject: Problem reports for vbox@FreeBSD.org that need special attention Date: Sun, 14 Feb 2021 21:00:41 +0000 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1613336445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=suJdL4X9m25vr2mUZDV6kl8c73wo9BiXUGRUctZ0XhU=; b=xl49dpMMNcm0HMFnYN4+6raQZIhOyiC9kbkWadlUuGE1bRtNxHlU/fmlTmgeNjpjIAkFEd nmuwcm+lqTIIihmms37Gv2bjYezKHD1vQtspUYia+ltFPs37V6tXPwKe11SIe43++c1HPM 1TB/hl8IQQhn5MYr2Dc7yZ7Yixtp+k1fLXQFKE0EjmPCLtUQiz5brMa9+72u2icgkfz8AK UbhRpCy0NhhsLaBMoYxE3jSQ0xPMZq1XyeoFD7NkKlQ+zjI6M+29T9+5FImmKS7KhKQRl2 0RNFp+lL1cA890R4Ufw8AOhjBr7tb33UoJQP1yfwURt0TV0dDl9ifECjj52JKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1613336445; a=rsa-sha256; cv=none; b=txRkWlN+rNo9cIMVDopVCMlWbSpn1B3xIq9Hfl2rgYb+GzmlqgTU9A+EzqmyP6+kD0Lkl2 i2Kbr9kaFBsbji8WC4LYKbl0T2zD1EW+eC20qPrEx4S8zQbPN5nfRrlWnG2c2m/GulBu6y FVQKafA9tEUyAFcHhpi0GYx3HFjs0zGM8hxBQs4V0sfgrN5AYBhj/30R3mGsCJDxEUmnx7 bu6qqGYpJLDIqafAVLIEXAhrt2eopQL+slTSJm3e+bVhbxinqeTIZMbcSahYNPQglSeBrb QBY3OWCW7YzDK97WyV8kPg2V3HrhSA9Uz+2om1voGTZhkQlq48ce+qjmXSJhGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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: Sun, 14 Feb 2021 21:00:47 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 242637 | emulators/virtualbox-ose: Fix bridging when ng_et 1 problems total for which you should take action. From owner-freebsd-emulation@freebsd.org Mon Feb 15 11:40:47 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 0106752A6D6 for ; Mon, 15 Feb 2021 11:40:47 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from p-impout005.msg.pkvw.co.charter.net (p-impout005aa.msg.pkvw.co.charter.net [47.43.26.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DfMcF727sz4T78 for ; Mon, 15 Feb 2021 11:40:45 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from localhost ([96.28.177.163]) by cmsmtp with ESMTP id BcF2ll7YWeKjEBcF2lfSar; Mon, 15 Feb 2021 11:40:39 +0000 X-Authority-Analysis: v=2.3 cv=ALzgjvLx c=1 sm=1 tr=0 a=xqrt2BZAGHte7XHhrxJgbA==:117 a=xqrt2BZAGHte7XHhrxJgbA==:17 a=HpEJnUlJZJkA:10 a=0Q3p5KFhAAAA:8 a=NIObRGWJCemr9uD_DaAA:9 a=H6H7xLKjjQtGMdwgQydD:22 Date: Mon, 15 Feb 2021 11:40:59 +0000 From: "Thomas Mueller" To: freebsd-emulation@freebsd.org CC: JB 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> X-CMAE-Envelope: MS4wfHqjcC55O9kzeKjKuaj/xwuXoBjwA8lccHAA1XRuyQwzAOCxmJWdBKniZbZ8Z0cTuJqO26sWZbN/XMIaiFNSbv9BS8/+1o1sLIWkODGw1WH/tPUXWRxX 2Yn5SbuO2ijiTY8Lnr0YKCetxwYKK2BZ5REr4zI0VWcwzywYi+hwrR1JaCF+xP7hSN9h4MWTPtSOfSltdkDtkpCANnmJliHSAlBKlK7xFa7Vhbc6T6pKl5O6 X-Rspamd-Queue-Id: 4DfMcF727sz4T78 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mueller6722@twc.com designates 47.43.26.136 as permitted sender) smtp.mailfrom=mueller6722@twc.com X-Spamd-Result: default: False [2.20 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[twc.com]; R_SPF_ALLOW(-0.20)[+ip4:47.43.26.0/24]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[96.28.177.163:received]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[twc.com]; ASN(0.00)[asn:40294, ipnet:47.43.24.0/21, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[47.43.26.136:from]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[twc.com]; SPAMHAUS_ZRD(0.00)[47.43.26.136:from:127.0.2.255]; MISSING_MID(2.50)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_CC(0.00)[protonmail.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, 15 Feb 2021 11:40:47 -0000 from JB: > > So I guess Linux service is restarted by "service linux restart"? > # service | grep List > -l List all scripts in /etc/rc.d and /usr/local/etc/rc.d > # service -l | grep ux > 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 other modules won't be loaded until you start the `linux' service with 'linux_mounts_enable' enabled (or you mount them yourself with fstab, manually, or another script): > sysrc linux_mounts_enable=YES > > 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 path, '/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 former: > 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. But, better that than a slow pace of development. I was not aware of sysrc, see it is in FreeBSD but not NetBSD. It looks like "service mountd restart" does the same thing as "/etc/rc.d/mountd restart"; this was on NetBSD. I took a look at the man page for sysrc. I browsed the URL you gave me, might not be directly applicable to my case. I see it requires iocage (which I don't have) and debootstrap (which I never used but was aware of). Debootstrap is in FreeBSD ports but not NetBSD pkgsrc, however I don't see why one could not download the necessary files, apply the scripts, and make debootstrap outside FreeBSD ports or pkgsrc framework. I am inclined toward compatibility layer rather than jail if possible and would want to try under both FreeBSD and NetBSD. I would probably have to do chroot. Tom