From nobody Wed Apr 03 11:25:29 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 4V8j990j1rz5Gb3P for ; Wed, 3 Apr 2024 11:25:33 +0000 (UTC) (envelope-from meka@tilda.center) Received: from chubby.tilda.center (meka.rs [109.93.255.137]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4V8j985St0z4HG7 for ; Wed, 3 Apr 2024 11:25:32 +0000 (UTC) (envelope-from meka@tilda.center) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.111.5] (hal9000.meka.rs [192.168.111.5]) by chubby.tilda.center (Postfix) with ESMTPSA id 0FA4C27D30; Wed, 03 Apr 2024 11:25:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------3C01uzIq5yzbv6OwX2UC0KzB" Message-ID: <21bbf358-ff86-485d-aecd-9e8c28e7fca5@tilda.center> Date: Wed, 3 Apr 2024 13:25:29 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: Trying to add SystemD to Linux installed on the Linuxulator... To: Mario Marietto , FreeBSD virtualization References: Content-Language: en-US From: =?UTF-8?Q?Goran_Meki=C4=87?= In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8400, ipnet:109.92.0.0/15, country:RS] X-Rspamd-Queue-Id: 4V8j985St0z4HG7 This is a multi-part message in MIME format. --------------3C01uzIq5yzbv6OwX2UC0KzB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------3C01uzIq5yzbv6OwX2UC0KzB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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

--------------3C01uzIq5yzbv6OwX2UC0KzB--