From nobody Thu Apr 04 14:27:32 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V9P9S0dP4z5H64B for ; Thu, 4 Apr 2024 14:28:12 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9P9Q6Q6Pz4JdH for ; Thu, 4 Apr 2024 14:28:10 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=STZTf5oZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::52a as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5ce2aada130so786137a12.1 for ; Thu, 04 Apr 2024 07:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712240889; x=1712845689; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/1gJcZ01sI2ub310MrDrq3cVa6/8pA4mX0db4QnccsU=; b=STZTf5oZnNVALpN/OeMEK+5Axo0cloaR6LXnjd4XUGoC3lF5yw8ec+TgnGBJ/b6SH0 tNTKFIv4JvJBf7GRtvZL6V+yeWSwB0teA0fM068JRiBLJDh4Uim6tYQdaIsr6aNp1Gc9 Q9Qz49/ma/CigHAVMobjQeTZ8FlkCAUbBtszJZNBPjekQ3VDldD9CunD7CKORQe5O2eV 9m2NAhC5Hy2sZmBLQKoEMyFGXJW3ZBMD/+UsZrTUQxaJgO/UJsbz018SGMs3ZW8JiO7w IHwRW79nk/gLcg9lKjkL8dp3mtkUlC9aBd3A22Y5LVcGuSdG6P6BFMNCsOcgA6NV8upo CeEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712240889; x=1712845689; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/1gJcZ01sI2ub310MrDrq3cVa6/8pA4mX0db4QnccsU=; b=IhUGFbwcz63wl7Zj5wr9AIgPVY2MWCbfmJ7oP3dASgjZ2aS1QS7iXPJBAHjbOftxc+ yfqpPU9fu9TLMfqVQqBN8Mc57L9kyC/tA65WYgCWOK1TqB4llJTc0Znb++MCjUERFOcI 8T/o/f9FeoWcUzWPNlOP7AmFaeDWrA1TA0hdtyoLUFwNRw8dQCMojOJfoHNJPQYFbMCF 9ckVwCuRm7r5DZSZ37/XIsUYDrzQ7x6lL6/V2jVXYSCFjfbigBb7Hvr/do9uR6fYZRib NzXJAJliWqPdWTEaWhd88dMOgG+jFDqpO7C14fa8+NkozoZxXF8L2bPJC40AcTZHLcSf LeYA== X-Gm-Message-State: AOJu0YwM1ODGuSr4NFJo0qY0k57T8pSLYOZNp+ofJ0Ih8a3kgQ275CyZ ZTVSI4ikDmyVj6z3/dhIAxrONsb9dJ6q+zhegxq8qcsepXlU/ELD61M/H+Z+8H9HeswY5a05FFC 4Mxhn3FKeXe36fIA1/IwPa+sRbW45ICJIIM4= X-Google-Smtp-Source: AGHT+IEa5Y9M3BMEBKHcMvEGwd8B2Fw88C9K/GsmJHJMM2gY6osImbFuAfLngHWzocK54ZAJwGVMx1q3mwuSl02EXQ4= X-Received: by 2002:a17:90a:db41:b0:2a1:fa61:c36f with SMTP id u1-20020a17090adb4100b002a1fa61c36fmr2636203pjx.6.1712240888895; Thu, 04 Apr 2024 07:28:08 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <21bbf358-ff86-485d-aecd-9e8c28e7fca5@tilda.center> In-Reply-To: <21bbf358-ff86-485d-aecd-9e8c28e7fca5@tilda.center> From: Mario Marietto Date: Thu, 4 Apr 2024 16:27:32 +0200 Message-ID: Subject: Re: Trying to add SystemD to Linux installed on the Linuxulator... To: =?UTF-8?B?R29yYW4gTWVracSH?= Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000f3e2580615462568" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.71 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.71)[-0.711]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52a:from] X-Rspamd-Queue-Id: 4V9P9Q6Q6Pz4JdH --000000000000f3e2580615462568 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable @Goran,thanks for the suggestion. Unfortunately I realized that I can't install Waydroid on the Linuxulator,based on what a developer told me : "Use a VM. Android dev workflows cannot function without a linux kernel (obv, all android devices are linux systems for this reason, they're bound by design). Waydroid as it is, presently requires various linux drivers to be loaded which are not going to work on any other operating system: https://github.com/waydroid/waydroid/blob/main/tools/helpers/drivers.py" so,this closes this project. But anyway,I can still use a bhyve vm. But like this it is less interesting for me... On Wed, Apr 3, 2024 at 1:25=E2=80=AFPM Goran Meki=C4=87 = wrote: > On 4/3/24 12:55, Mario Marietto wrote: > > Hello. > > There was a time when the developers were working on the WSL vers. 2 > (Windows Subsystem for Linux),and they hadn't developed SystemD yet. And = I > remember well that there was an external developer that had created a dir= ty > but working hack to add it to WSL2. Yesterday I thought,why not try to > adapt it and make it work on Linux (on the CentOS,maybe or on Ubuntu) tha= t > we have installed on our Linux emulation layer on FreeBSD ? I'm a > hobbyist,I'm not sure if it is really needed. I want to leave the judgeme= nt > to you. In the meantime I'll paste the script. I'm not able to adapt the > script for the purpose only by myself,but I can help.... > > full script here : > > > https://github.com/DamionGans/ubuntu-wsl2-systemd-script/blob/master/ubun= tu-wsl2-systemd-script.sh > > -- > Mario. > > Hello, > > I think you'll have more luck with https://reviews.freebsd.org/D15865. > I'm not sure it still applies, but PID namespace virtualization is the wa= y > to go. Good luck! > > Regards, > meka > --=20 Mario. --000000000000f3e2580615462568 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
@Goran,thanks for the suggestion. Unfortunately I rea= lized that I can't install Waydroid on the Linuxulator,based on what a = developer told me :
=C2=A0
"Use a VM. Android = dev workflows cannot function without a linux kernel=20 (obv, all android devices are linux systems for this reason, they're=20 bound by design). Waydroid as it is, presently requires various linux=20 drivers to be loaded which are not going to work on any other operating=20 system: https://gi= thub.com/waydroid/waydroid/blob/main/tools/helpers/drivers.py"

so,this closes this project. But anyway,I can still u= se a bhyve vm. But like this it is less interesting for me...

On W= ed, Apr 3, 2024 at 1:25=E2=80=AFPM Goran Meki=C4=87 <meka@tilda.center&g= t; wrote:
=20 =20 =20
On 4/3/24 12:55, Mario Marietto wrote:
=20

Hello.

There was a time when the developers were working on the WSL vers. 2 (Windows Subsystem for Linux),and they hadn't developed SystemD yet. And I remember well that there was an external developer that had created a dirty but working hack to add it to WSL2. Yesterday I thought,why not try to adapt it and make it work on Linux (on the CentOS,maybe or on Ubuntu) that we have installed on our Linux emulation layer on FreeBSD ? I'm a hobbyist,I'm not sure if it is really needed. I want to leave the judgement to you. In the meantime I'll paste the script. I'm not able to adapt the script for the purpose only by myself,but I can help....

full script here :

https://github.com/DamionGans/ubuntu-wsl2-systemd-scri= pt/blob/master/ubuntu-wsl2-systemd-script.sh


--
Mario.

Hello,

I think you'll have more luck with http= s://reviews.freebsd.org/D15865. I'm not sure it still applies, but PID namespace virtualization is the way to go. Good luck!

Regards,
meka



--
Mario.
--000000000000f3e2580615462568--