- WSL2はHyperVに依存するため、WindowsをESXiで動かす場合は「この仮想マシンでハイパーバイザーアプリケーションを有効にする」にしておく必要がある。
PowerShell 管理者モード
PS> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
PS> Enable-WindowsOptionalFeature -online -featurename VirtualMachinePlatform
PS> wsl --set-default-version 2
コマンドプロンプトで実行
> winget install Microsoft.WindowsTerminal
> winget install Microsoft.VisualStudioCode
> winget install Canonical.Ubuntu.2004
実際に起動する場合は以下のパッチが必要
PS> cd ~\Desktop
PS> Invoke-WebRequest -Uri https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -OutFile wsl_update_x64.msi -UseBasicParsing