Date: Thu, 4 Apr 2024 16:27:32 +0200 From: Mario Marietto <marietto2008@gmail.com> To: =?UTF-8?B?R29yYW4gTWVracSH?= <meka@tilda.center> Cc: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: Trying to add SystemD to Linux installed on the Linuxulator... Message-ID: <CA%2B1FSigwh8dtDBpP-R%2BQoEPVJZ3=wU6PCwbUqiSZsO_sd30MNg@mail.gmail.com> In-Reply-To: <21bbf358-ff86-485d-aecd-9e8c28e7fca5@tilda.center> References: <CA%2B1FSigNw9kq8wrvyJoQpeA1zSMRmStVO2iKPH865hkxa_JDEQ@mail.gmail.com> <21bbf358-ff86-485d-aecd-9e8c28e7fca5@tilda.center>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] @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" <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 PM Goran Mekić <meka@tilda.center> 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 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-script/blob/master/ubuntu-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 way > to go. Good luck! > > Regards, > meka > -- Mario. [-- Attachment #2 --] <div dir="ltr"><div>@Goran,thanks for the suggestion. Unfortunately I realized that I can't install Waydroid on the Linuxulator,based on what a developer told me :</div><div> <br></div><div>"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: <a href="https://github.com/waydroid/waydroid/blob/main/tools/helpers/drivers.py" rel="noopener nofollow ugc" target="_blank">https://github.com/waydroid/waydroid/blob/main/tools/helpers/drivers.py"</a></div><div><br></div><div>so,this closes this project. But anyway,I can still use a bhyve vm. But like this it is less interesting for me...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 3, 2024 at 1:25 PM Goran Mekić <meka@tilda.center> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u> <div> <div>On 4/3/24 12:55, Mario Marietto wrote:<br> </div> <blockquote type="cite"> <div dir="ltr"><span></span> <div> <div> <div id="m_6917651032425665264m_7603839603688271232gmail-t3_1bupb62-post-rtjson-content"> <p> Hello. </p> <p> 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.... </p> </div> </div> </div> <p> full script here : </p> <p> <a href="https://github.com/DamionGans/ubuntu-wsl2-systemd-script/blob/master/ubuntu-wsl2-systemd-script.sh" rel="noopener nofollow ugc" target="_blank">https://github.com/DamionGans/ubuntu-wsl2-systemd-script/blob/master/ubuntu-wsl2-systemd-script.sh</a> </p> <br> <span class="gmail_signature_prefix">-- </span><br> <div dir="ltr" class="gmail_signature">Mario.<br> </div> </div> </blockquote> <p>Hello,</p> <p>I think you'll have more luck with <a href="https://reviews.freebsd.org/D15865" target="_blank">https://reviews.freebsd.org/D15865</a>. I'm not sure it still applies, but PID namespace virtualization is the way to go. Good luck!</p> <p>Regards,<br> meka<br> </p> </div> </blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigwh8dtDBpP-R%2BQoEPVJZ3=wU6PCwbUqiSZsO_sd30MNg>
