Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Created November 25, 2021 08:52
Show Gist options
  • Save mamemomonga/1e1055362955aa20e0f271d2b4edd389 to your computer and use it in GitHub Desktop.
Save mamemomonga/1e1055362955aa20e0f271d2b4edd389 to your computer and use it in GitHub Desktop.
WSL2メモ

WSL2セットアップメモ

  • 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

参考URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment