windows:wsl

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:wsl [2020/06/28 06:23] – [WSL 2 の systemd 問題] ともやんwindows:wsl [2024/02/04 13:41] (現在) – ↷ 移動操作に合わせてリンクを書き換えました。 非ログインユーザー
行 1: 行 1:
-<html> +~~CLOSETOC~~
-  <style> +
-    #result pre, #mincode pre { +
-      overflow: hidden; +
-      font-size: 10px; +
-    } +
-    #result_long pre, #mincode_long pre { +
-      height: 250px; +
-      overflow: scroll; +
-      overflow-x: hidden; +
-      font-size: 10px; +
-    } +
-    #mintbl table { +
-      font-size: 12px; +
-    } +
-    #mintbl td pre { +
-      margin: 0; +
-    } +
-    #img_long { +
-      height: 400px; +
-      overflow: scroll; +
-      overflow-x: hidden; +
-    } +
-    .dokuwiki .plugin_wrap table { +
-      width: auto; +
-    } +
-    #logo { +
-      background-color: white; +
-      padding: 10px; +
-      width: fit-content; +
-    } +
-    #logo p { +
-      margin: 0; +
-    } +
-  </style> +
-</html>+
 ====== Windows Subsystem for Linux 2 (WSL 2) ====== ====== Windows Subsystem for Linux 2 (WSL 2) ======
 ソースコード: [[https://github.com/microsoft/WSL2-Linux-Kernel|GitHub - microsoft/WSL2-Linux-Kernel: The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)]]\\ ソースコード: [[https://github.com/microsoft/WSL2-Linux-Kernel|GitHub - microsoft/WSL2-Linux-Kernel: The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)]]\\
 {{:windows:wsl_tmux.png?470|WSL 2 Terminal}} {{:windows:wsl_tmux.png?470|WSL 2 Terminal}}
 \\ \\
- Windows Subsystem for Linux 2 (以下 WSL 2) は、2019/05/06 に[[https://devblogs.microsoft.com/commandline/announcing-wsl-2/|ブログ]]で発表され、2019年6月末までに [[https://insider.windows.com/ja-jp/|Windows Insider Program]] を通じて Microsoft が Windows で Linux カーネルを出荷する試みである。[[windows:windows_10_insider_previews|Windows 10 Insider Previews]] も参照のこと。\\+ Windows Subsystem for Linux 2 (以下 WSL 2) は、2019/05/06 に[[https://devblogs.microsoft.com/commandline/announcing-wsl-2/|ブログ WSL2の発表|Windows コマンドライン]]で発表され、2019年6月末までに [[https://insider.windows.com/ja-jp/|Windows Insider Program]] を通じて Microsoft が Windows で Linux カーネルを出荷する試みである。[[windows:windows_10_insider_previews|Windows 10 Insider Previews]] も参照のこと。\\
  Linux カーネルが Windows に同梱されるのは、今回が初である。(Microsoft は過去にも 2018 年に [[https://azure.microsoft.com/en-us/blog/introducing-microsoft-azure-sphere-secure-and-power-the-intelligent-edge/|Microsoft Azure Sphere]] で Linux カーネル自体は出荷した事がある)\\  Linux カーネルが Windows に同梱されるのは、今回が初である。(Microsoft は過去にも 2018 年に [[https://azure.microsoft.com/en-us/blog/introducing-microsoft-azure-sphere-secure-and-power-the-intelligent-edge/|Microsoft Azure Sphere]] で Linux カーネル自体は出荷した事がある)\\
 \\ \\
行 51: 行 16:
  WSL は、Linux の ELF フォーマット形式のバイナリ実行ファイルを Windows でネイティブ実行できるようにするための互換レイヤーであるが、WSL 1 では一部で互換性の問題があったが、WSL 2 では Linux カーネルを Windows に内臓したことで__**完全なシステムコールの互換性**__を提供すると伴に、__**ファイルシステムのパフォーマンスが劇的に向上**__している。\\  WSL は、Linux の ELF フォーマット形式のバイナリ実行ファイルを Windows でネイティブ実行できるようにするための互換レイヤーであるが、WSL 1 では一部で互換性の問題があったが、WSL 2 では Linux カーネルを Windows に内臓したことで__**完全なシステムコールの互換性**__を提供すると伴に、__**ファイルシステムのパフォーマンスが劇的に向上**__している。\\
  
-===== インストール ===== +{{INLINETOC wide 1-2}}
-[[.:wsl:lxrunoffline|LxRunOffline システムドライブ外に WSL 環境を構築する方法]]\\ +
-※**LxRunOffline** を WSL で利用するなら、**Fedora Remix** を購入する必要はない。\\ +
-[[.:wsl:install|Windows Subsystem for Linux (WSL) Version 2 のインストール]]\\+
 \\ \\
-[[.:wsl:install_wsl1|Windows Subsystem for Linux (WSL) Version 1 のインストール]](WSL 2 ではなく WSL 1 を導入する場合)\\ 
  
-===== 日本語環境に設定 =====+===== インストール ===== 
 +WSL 2 で Fedora を利用するためのおすすめの方法は、[[.wsl:lxrunoffline|LxRunOffline]] を利用してインストールする方法です。\\ 
 + 
 +[[.wsl:install|Windows Subsystem for Linux (WSL) Version 2 のインストール]]\\ 
 +[[.wsl:lxrunoffline|LxRunOffline - システムドライブ外に WSL 環境を構築する方法]] **__(こちらの手順は最新化されています)__**\\ 
 +<wrap em>※WSL 2 + **LxRunOffline** で利用するなら、**Fedora Remix** を購入する必要はない。</wrap>\\ 
 + 
 +[[.wsl:install_wsl1|Windows Subsystem for Linux (WSL) Version 1 のインストール]](WSL 2 ではなく WSL 1 を導入する場合)\\ 
 + 
 +===== 以下は Fedora Remix での過去の手順 ===== 
 + 
 +==== 日本語環境に設定 ====
 標準のインストールだと日本語が **□** に文字化けする。\\ 標準のインストールだと日本語が **□** に文字化けする。\\
 これはターミナルのフォントが日本語フォントになっていない為である。\\ これはターミナルのフォントが日本語フォントになっていない為である。\\
行 89: 行 61:
 日本語ランゲージパックをインストールする。\\ 日本語ランゲージパックをインストールする。\\
 **sudo dnf install langpacks-ja** を実行する。\\ **sudo dnf install langpacks-ja** を実行する。\\
-<WRAP prewrap 100% #result>+<WRAP prewrap 100% #result_long>
 <code> <code>
 $ sudo dnf install langpacks-ja $ sudo dnf install langpacks-ja
行 154: 行 126:
 </WRAP> </WRAP>
  
-==== WSL 2 の systemd 問題 ====+=== WSL 2 の systemd 問題 ===
 システムロケール設定を **ja_JP.UTF-8** に変更する。\\ システムロケール設定を **ja_JP.UTF-8** に変更する。\\
 <code> <code>
行 189: 行 161:
  
 現時点 (2019/09/16 現在) の WSL 2 では、**systemd** はサポートされていない。\\ 現時点 (2019/09/16 現在) の WSL 2 では、**systemd** はサポートされていない。\\
 +[[https://github.com/microsoft/WSL/issues/1579|]]\\
 [[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 が有効化される可能性はあると思う。\\
行 214: 行 187:
 </code> </code>
  
-==== 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://gist.github.com/therealkenc/f5109716abd885b2334f6bdaf8848b29|wsltub leftovers]]\\
行 259: 行 232:
 LC_IDENTIFICATION="ja_JP.UTF-8" LC_IDENTIFICATION="ja_JP.UTF-8"
 LC_ALL= LC_ALL=
-$ sudo -s 
-[sudo] tomoyan のパスワード: 
 </code> </code>
-<html><span style="color: blue; font-size: 48px;"><b>genie 素晴らしい!!</b></span></html>\\+<html><span style="color: blue; font-size: 48px;"><b>genie🧚‍♂️ 素晴らしい!!😍</b></span></html>\\
  
-=== getty@tty1.service の無効化 ===+== getty@tty1.service の無効化 ==
 本家のドキュメント [[https://github.com/arkane-systems/genie|arkane-systems/genie]] にあるように、**getty@tty1.service** を無効にする。\\ 本家のドキュメント [[https://github.com/arkane-systems/genie|arkane-systems/genie]] にあるように、**getty@tty1.service** を無効にする。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 297: 行 268:
 </WRAP> </WRAP>
  
-=== 毎回 genie -s を実行しなくても良い方法 ===+== 毎回 genie -s を実行しなくても良い方法 ==
 WSL 2 を起動する度に systemd を有効化するのは手間である。\\ WSL 2 を起動する度に systemd を有効化するのは手間である。\\
 そこで以下のように bash 起動時に自動で有効化することが出来る。(お好みで...)\\ そこで以下のように bash 起動時に自動で有効化することが出来る。(お好みで...)\\
行 312: 行 283:
 </WRAP> </WRAP>
  
-===== 基本的なコマンドのインストール =====+==== 基本的なコマンドのインストール ====
 [[https://www.tomoyan.net/linux/fedora_minimal_install#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB|Fedora minimal インストール - 基本的なコマンドのインストール]] を参考に基本的なコマンドをインストールする。\\ [[https://www.tomoyan.net/linux/fedora_minimal_install#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB|Fedora minimal インストール - 基本的なコマンドのインストール]] を参考に基本的なコマンドをインストールする。\\
  
-==== キャッシュのキープ ====+=== キャッシュのキープ ===
 お好みで以下の設定を行っておくと RPM パッケージがキャッシュされるようになる。\\ お好みで以下の設定を行っておくと RPM パッケージがキャッシュされるようになる。\\
 <code> <code>
行 339: 行 310:
 </code> </code>
  
-==== パッケージのインストール ====+=== パッケージのインストール ===
 **tmux - 端末多重化ソフトウェア と htop - 高機能タスクマネージャー**\\ **tmux - 端末多重化ソフトウェア と htop - 高機能タスクマネージャー**\\
 \\ \\
行 371: 行 342:
 </code> </code>
  
-**lspci - これは以下の理由により入れても使えない。**\\+**lspci**\\ 
 +<code> 
 +$ sudo dnf install pciutils -y 
 +</code> 
 +**2020/09/06 追記:** 2020/05/19 に WSL が GPU コンピューティングをサポートすることを発表した。\\ 
 +[[https://devblogs.microsoft.com/commandline/the-windows-subsystem-for-linux-build-2020-summary/|The Windows Subsystem for Linux BUILD 2020 Summary | Windows Command Line]]\\ 
 +**/proc/bus/pci** が存在するようになった。\\ 
 +<WRAP prewrap 100% #mincode> 
 +<code> 
 +$ ll /proc/bus/pci 
 +合計 0 
 +dr-xr-xr-x 2 root root 0  9月  6 17:38 8285:00 
 +dr-xr-xr-x 2 root root 0  9月  6 17:38 9fd9:00 
 +dr-xr-xr-x 2 root root 0  9月  6 17:38 a1ef:00 
 +dr-xr-xr-x 2 root root 0  9月  6 17:38 aa29:00 
 +-r--r--r-- 1 root root 0  9月  6 17:38 devices 
 +</code> 
 +</WRAP> 
 +<del>**lspci - これは以下の理由により入れても使えない。**\\
 <code> <code>
 $ cat /proc/bus/pci $ cat /proc/bus/pci
 cat: /proc/bus/pci: そのようなファイルやディレクトリはありません cat: /proc/bus/pci: そのようなファイルやディレクトリはありません
-</code>+</code></del>
  
 **lsusb**\\ **lsusb**\\
行 402: 行 391:
 </code> </code>
  
-===== WSL 2 ファイルシステムへのアクセス =====+==== WSL 2 ファイルシステムへのアクセス ====
 WSL 2 のファイルシステムへのアクセスは PowerShell で **\\wsl$\<distro>** の形式で行うことができる。\\ WSL 2 のファイルシステムへのアクセスは PowerShell で **\\wsl$\<distro>** の形式で行うことができる。\\
 これは Plan 9 Network Provider (9p と省略) を利用して提供されるネットワーク共有である。\\ これは Plan 9 Network Provider (9p と省略) を利用して提供されるネットワーク共有である。\\
行 432: 行 421:
 割り当て解除は **net use x: /delete** で行う。\\ 割り当て解除は **net use x: /delete** で行う。\\
  
-===== 技術情報 =====+==== 技術情報 ====
 [[https://aka.ms/wsl2|WSL 2 | Microsoft Docs]]\\ [[https://aka.ms/wsl2|WSL 2 | Microsoft Docs]]\\
 軽量VM と Windows Sandbox\\ 軽量VM と Windows Sandbox\\
行 440: 行 429:
 [[https://www.atmarkit.co.jp/ait/articles/1710/24/news010_2.html|図解で理解できる(はず)Microsoftの仮想化技術――Windows上で稼働するLinux、動かしているのはどのテクノロジー?(その2) (2/2):その知識、ホントに正しい? Windowsにまつわる都市伝説(95) - @IT]]\\ [[https://www.atmarkit.co.jp/ait/articles/1710/24/news010_2.html|図解で理解できる(はず)Microsoftの仮想化技術――Windows上で稼働するLinux、動かしているのはどのテクノロジー?(その2) (2/2):その知識、ホントに正しい? Windowsにまつわる都市伝説(95) - @IT]]\\
  
-==== WSL1 のディスクイメージの場所 ====+=== WSL 1 のディスクイメージの場所 ===
 **wsl --set-version <distro> 1** で変換処理を行うと、**rootfs** フォルダーにディスクイメージが存在する。\\ **wsl --set-version <distro> 1** で変換処理を行うと、**rootfs** フォルダーにディスクイメージが存在する。\\
 <code> <code>
行 446: 行 435:
 </code> </code>
  
-==== WSL2 のディスクイメージの場所 ====+=== WSL2 のディスクイメージの場所 ===
 **wsl --set-version <distro> 2** で変換処理を行うと、**ext4.vhdx** にディスクイメージが存在する。\\ **wsl --set-version <distro> 2** で変換処理を行うと、**ext4.vhdx** にディスクイメージが存在する。\\
 <html> <html>
行 486: 行 475:
 </html> </html>
  
-==== その他参考文献 ====+=== その他参考文献 ===
 [[https://www.slideshare.net/SatoshiMimura/inside-wsl-180215871|Inside-WSL]]\\ [[https://www.slideshare.net/SatoshiMimura/inside-wsl-180215871|Inside-WSL]]\\
  
-===== .NET Core =====+==== .NET Core ====
 .NET Core を Fedora にインストールする方法は、以下を参照のこと。\\ .NET Core を Fedora にインストールする方法は、以下を参照のこと。\\
-[[linux:fedora_copr#net_core|Fedora Copr リポジトリ - .NET Core]]\\+[[linux:fedora:copr#net_core|Fedora Copr リポジトリ - .NET Core]]\\
  
-===== Cloud9 SDK =====+==== Cloud9 SDK ====
 [[javascript:cloud9_sdk|Cloud9 SDK]] を元にインストールしてみる。\\ [[javascript:cloud9_sdk|Cloud9 SDK]] を元にインストールしてみる。\\
 [[.:wsl:c9sdk|Cloud9 SDK on WSL2]]\\ [[.:wsl:c9sdk|Cloud9 SDK on WSL2]]\\
  
-===== Fedora Remix の Upgrade =====+==== Fedora Remix の Upgrade ====
 **Fedora 30 → 31**\\ **Fedora 30 → 31**\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 510: 行 499:
 </WRAP> </WRAP>
  
-==== 参考文献 ====+=== 参考文献 ===
 [[https://www.whitewaterfoundry.com/blog/2019/11/3/upgrade-fedora-remix-for-wsl-to-31|Upgrade Fedora Remix for WSL to 31 — Pengwin by Whitewater Foundry]]\\ [[https://www.whitewaterfoundry.com/blog/2019/11/3/upgrade-fedora-remix-for-wsl-to-31|Upgrade Fedora Remix for WSL to 31 — Pengwin by Whitewater Foundry]]\\
  
-===== トラブルシューティング =====+==== トラブルシューティング ====
  
-==== 「WSL 2 プロセスはコード 4294967295 で終了しました」が発生する場合 ==== +=== WSL 2 に接続できない場合 === 
-以下のよう表示されて bash が起動しない。\\ +[[.:wsl:trouble_shooting|WSL トラブルシューィング]] 参照。\\
-<WRAP prewrap 100% #result> +
-<code> +
-WSL 2 +
-</code> +
-</WRAP> +
-もしくは、\\ +
-<WRAP prewrap 100% #result> +
-<code> +
-WSL 2 +
-[プロセスはコード 4294967295 で終了しました] +
-</code> +
-</WRAP> +
- +
-Windows バージョンは以下の通り。\\ +
-<WRAP prewrap 100%> +
-<code powershell> +
-$ cmd /c ver +
-</code> +
-</WRAP> +
-<WRAP prewrap 100% #result> +
-<code> +
- +
-Microsoft Windows [Version 10.0.19645.1] +
-</code> +
-</WRAP> +
-**Build 19645.mn_release.20065-1502** で **WSL 2** が動作しないことに気が付いた。\\ +
- +
-=== このような時に試すこと === +
-**WSL 1** のディストリビューションは動作するか?\\ +
-<WRAP prewrap 100%> +
-<code powershell> +
-$ wsl -l -v +
-</code> +
-</WRAP> +
-<WRAP prewrap 100% #result> +
-<code> +
-  NAME           STATE           VERSION +
-* fedoraremix    Stopped         2 +
-  Fedora         Stopped         2 +
-  Fedora-WSL1    Stopped         1 +
-</code> +
-</WRAP> +
- +
-**WSL 1** のディストリビューションを起動する。\\ +
-<WRAP prewrap 100%> +
-<code powershell> +
-$ wsl -d Fedora-WSL1 +
-</code> +
-</WRAP> +
-<WRAP prewrap 100% #result> +
-<code> +
-[root@Cmon tomoyan]# uname -a +
-Linux Cmon 4.4.0-19645-Microsoft #1-Microsoft Thu Jun 05 15:02:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux +
-</code> +
-</WRAP> +
- +
-**WSL 1** のディストリビューションは問題なく動作するので、利用したいディストリビューションを **WSL 1** に戻して、不具合が解消されるまで待つことにする。\\ +
-<WRAP prewrap 100%> +
-<code powershell> +
-$ wsl --set-version fedoraremix 1 +
-</code> +
-</WRAP> +
- +
-しかし、今回は **WSL 2** から **WSL 1** に変換しようとしても、**WSL 2** と表示されるだけで変換すらできない。\\ +
-<WRAP prewrap 100% #result> +
-<code> +
-変換中です。この処理には数分かかることがあります... +
-WSL 2 +
-</code> +
-</WRAP> +
- +
-このような場合は潔く諦める。😅💦💦💦笑\\ +
-(うそです。Windows Update を確認しましょう。)\\ +
- +
-=== ちなみに以下の方法では解決しなかった === +
-<WRAP prewrap 100%> +
-<code powershell> +
-$ sudo netsh winsock reset +
-</code> +
-</WRAP> +
-<WRAP prewrap 100% #result> +
-<code> +
- +
-Winsock カタログをリセットしました。 +
-リセットを完了するためにコンピューターを再起動する必要があります。 +
-</code> +
-</WRAP> +
- +
-[[https://github.com/microsoft/WSL/issues/4904|WSL 2 - Custom Kernel - Process exited with code 4294967295 · Issue #4904 · microsoft/WSL]]\\ +
- +
-=== 最新の Windows Update で更新する === +
-{{:windows:wsl2_exit_code_4294967295_windows_update_001.png?400|WSL 2 プロセス 終了コード 4294967295 Windows Update}}\\ +
- +
-更新後に **bash** を起動する。\\ +
-<WRAP prewrap 100%> +
-<code powershell> +
-$ uname -a +
-</code> +
-</WRAP> +
-<WRAP prewrap 100% #result> +
-<code> +
-Linux Cmon-wsl 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux +
-</code> +
-</WRAP> +
- +
-==== WSL 2 で bash に接続されない場合 (build 19559.rs_prerelease.200131-1437 で発生) ==== +
-**2020/2/21 - build 19564.rs_prerelease.200207-1438** で改善\\ +
-<code> +
-Microsoft Windows [Version 10.0.19559.1000] +
-(c) 2020 Microsoft Corporation. All rights reserved. +
- +
-> bash +
- +
-> bash +
- +
-+
-</code> +
-**※プロンプが $ に切り替わらない。**\\ +
- +
-=== Windows Subsystem for Linux 1 (WSL 1) を使用するようにディストリビューションを設定してみる === +
-**wsl –set-version <Distro> 2** を実行する。\\ +
-※ここでは <Distro> は **fedoraremix** である。\\ +
-\\ +
-<code> +
-> wsl -l -v +
-  NAME           STATE           VERSION +
-* fedoraremix    Stopped         2 +
- +
-> wsl --set-version fedoraremix 1 +
-Conversion in progress, this may take a few minutes... +
-Conversion complete. +
- +
-> wsl -l -v +
-  NAME           STATE           VERSION +
-* fedoraremix    Stopped         1 +
- +
-> bash +
-+
-</code> +
-**※WSL 1 だとプロンプトが $ に切り替わる。**\\ +
- +
-=== 再び Windows Subsystem for Linux 2 (WSL 2) を使用するようにデストリビューションを設定してみる === +
-**wsl –set-version <Distro> 2** を実行する。\\ +
-※ここでは <Distro> は **fedoraremix** である。\\ +
-\\ +
-<code> +
->wsl -l -v +
-  NAME           STATE           VERSION +
-* fedoraremix    Running         1 +
- +
-> wsl --set-version fedoraremix 1 +
-Conversion in progress, this may take a few minutes... +
-The distribution is already the requested version. +
- +
-> wsl --set-version fedoraremix 2 +
-Conversion in progress, this may take a few minutes... +
-For information on key differences with WSL 2 please visit https://aka.ms/wsl2 +
-Conversion complete. +
- +
-> wsl -l -v +
-  NAME           STATE           VERSION +
-* fedoraremix    Stopped         2 +
- +
-> bash +
- +
-+
-</code> +
-**※WLS 2 だとプロンプトが $ に切り替わらない。**\\ +
-原因不明なのでひとまず WSL 1 で使用することとする。\\+
  
-==== System has not been booted with systemd as init system (PID 1). が発生する ====+=== System has not been booted with systemd as init system (PID 1). が発生する ===
 <code> <code>
 System has not been booted with systemd as init system (PID 1). Can't operate. System has not been booted with systemd as init system (PID 1). Can't operate.
行 722: 行 542:
 </WRAP> </WRAP>
  
-=== Process Monitor で WSL 2 の起動プロセスを追ってみた ===+== Process Monitor で WSL 2 の起動プロセスを追ってみた ==
 コマンドプロンプトより bash を起動すると以下のような流れで WSL 2 環境がロードされている。\\ コマンドプロンプトより bash を起動すると以下のような流れで WSL 2 環境がロードされている。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 745: 行 565:
 おおよそこのような流れのようである。\\ おおよそこのような流れのようである。\\
  
-==== genie-systemd の fork ====+=== genie-systemd の fork ===
 [[#genie-systemd_の_fork|genie-systemd の fork]] を参照。\\ [[#genie-systemd_の_fork|genie-systemd の fork]] を参照。\\
 \\ \\
行 792: 行 612:
 </WRAP> </WRAP>
  
-==== genie-systemd (最初に試した時の資料です) ====+=== genie-systemd (最初に試した時の資料です) ===
 [[https://github.com/arkane-systems/genie|arkane-systems/genie: A quick way into a systemd "bottle" for WSL]] を使用してみたいと思う。\\ [[https://github.com/arkane-systems/genie|arkane-systems/genie: A quick way into a systemd "bottle" for WSL]] を使用してみたいと思う。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 901: 行 721:
 [[https://github.com/dotnet/sdk/issues/2989|Error running self-contained Linux EXE: "This executable is not bound to a managed DLL to execute. The binding value is: 'c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2'" · Issue #2989 · dotnet/sdk]]\\ [[https://github.com/dotnet/sdk/issues/2989|Error running self-contained Linux EXE: "This executable is not bound to a managed DLL to execute. The binding value is: 'c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2'" · Issue #2989 · dotnet/sdk]]\\
  
-===== 参考文献 =====+==== 参考文献 ====
 [[https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-index|WSL 2 | Microsoft Docs]]\\ [[https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-index|WSL 2 | Microsoft Docs]]\\
 [[https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-install|WSL 2 のインストール | Microsoft Docs]]\\ [[https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-install|WSL 2 のインストール | Microsoft Docs]]\\
  • windows/wsl.1593292989.txt.gz
  • 最終更新: 2020/06/28 06:23
  • by ともやん