両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン |
windows:wsl [2019/09/18 09:22] – [System has not been booted with systemd as init system (PID 1). が発生する] ともやん | windows:wsl [2019/09/19 13:43] – [genie-systemd の fork] ともやん |
---|
[[https://github.com/systemd/systemd/issues/8036|Systemd support for Windows Subsystem for Linux (WSL) · Issue #8036 · systemd/systemd · GitHub]]\\ | [[https://github.com/systemd/systemd/issues/8036|Systemd support for Windows Subsystem for Linux (WSL) · Issue #8036 · systemd/systemd · GitHub]]\\ |
今後 Microsoft によって systemd が有効化される可能性はあると思う。\\ | 今後 Microsoft によって systemd が有効化される可能性はあると思う。\\ |
| [[https://github.com/microsoft/WSL/issues/994|Blockers for systemd? · Issue #994 · microsoft/WSL]]ここで議論中。\\ |
しかし、Fedora は **systemd** を早くに採用した歴史があるので、**systemd** が使えないのはかなり致命的である。\\ | しかし、Fedora は **systemd** を早くに採用した歴史があるので、**systemd** が使えないのはかなり致命的である。\\ |
\\ | \\ |
==== genie-systemd の fork ==== | ==== genie-systemd の fork ==== |
本家: [[https://github.com/arkane-systems/genie|arkane-systems/genie]]\\ | 本家: [[https://github.com/arkane-systems/genie|arkane-systems/genie]]\\ |
| 元ネタ: [[https://gist.github.com/therealkenc/f5109716abd885b2334f6bdaf8848b29|wsltub leftovers]]\\ |
| ブログ: [[https://randomactsofcoding.wordpress.com/2019/06/13/systemd-on-wsl2/|systemd on WSL2 | public class Random : Coding {]]\\ |
\\ | \\ |
この fork は本家に取り込まれたので手順を修正した。\\ | この fork は本家に取り込まれたので手順を修正した。\\ |
| |
C:\WINDOWS\system32\conhost.exe 0x4 (コンソール ウィンドウ ホスト) | C:\WINDOWS\system32\conhost.exe 0x4 (コンソール ウィンドウ ホスト) |
C:\Windows\System32\bash.exe (Microsoft Bash ランチャー) PE32+ executable | C:\Windows\System32\bash.exe (Microsoft Bash ランチャー) 形式: PE32+ executable |
+- C:\WINDOWS\system32\wsl.exe /bin/bash --login (Microsoft Windows Subsystem for Linux ランチャー) をロード | +- C:\WINDOWS\system32\wsl.exe /bin/bash --login (Microsoft Windows Subsystem for Linux ランチャー) をロード |
+- C:\Windows\System32\lxss\LxssManagerProxyStub.dll (Lxss Manager ProxyStub DLL) | +- C:\Windows\System32\lxss\LxssManagerProxyStub.dll (Lxss Manager ProxyStub DLL) |
| C:\WINDOWS\system32\vmcompute.exe (Hyper-V ホスト コンピューティング サービス) が起動される | | C:\WINDOWS\system32\vmcompute.exe (Hyper-V ホスト コンピューティング サービス) が起動される |
| +- C:\Windows\System32\lxss\tools\kernel | | +- C:\Windows\System32\lxss\tools\kernel 形式: ELF 64-bit LSB executable |
| +- C:\Windows\System32\lxss\tools\initrd.img | | +- C:\Windows\System32\lxss\tools\initrd.img 形式: ASCII cpio archive |
| +- C:\Windows\System32\vmwp.exe (仮想マシン ワーカー プロセス) をロード | | +- C:\Windows\System32\vmwp.exe (仮想マシン ワーカー プロセス) をロード |
| +- %USERPROFILE%\AppData\Local\Packages\<distro>\LocalState\ext4.vhdx (distro の ext4) | | +- %USERPROFILE%\AppData\Local\Packages\<distro>\LocalState\ext4.vhdx (distro の ext4) |
| +- C:\Windows\System32\lxss\tools\init | | +- C:\Windows\System32\lxss\tools\init 形式: ELF 64-bit LSB executable |
+- C:\Windows\System32\lxss\wslhost.exe (Microsoft Windows Subsystem for Linux Background Host) | +- C:\Windows\System32\lxss\wslhost.exe (Microsoft Windows Subsystem for Linux Background Host) |
+- C:\Windows\System32\conhost.exe 0xffffffff -ForceV1 (コンソール ウィンドウ ホスト) | +- C:\Windows\System32\conhost.exe 0xffffffff -ForceV1 (コンソール ウィンドウ ホスト) |