0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows10 WSL から WSL2へ切り替え

Posted at

WSLからWSL2にアップデートしたい。

失敗した手順

wsl --set-version Ubuntu-20.04 2

image.png

image.png

切り替わらないので
image.png

手順を確認、一応手順確認
https://docs.microsoft.com/ja-jp/windows/wsl/install-manual#step-3---enable-virtual-machine-feature


手順最初から設定(はじめからこちらの手順をすべきでした)

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

image.png

インストール
image.png

コマンドでデフォルトでWSL2に設定し、この時点ではまだVersion1になっていたので、UbuntuをWSL2のバージョンへ設定。
image.png

しばらく処理が続き完了後、確認。wsl2への変換を確認しました。

wsl -l -v

image.png

この後、Ubuntuを起動して起動できました。
完了です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?