본문 바로가기

Windows

How to set up WSLv2

1. Microsoft Store에서 Windows Terminal 설치

 

2. 필요한 feature 설치

Terminal을 관리자 권한으로 실행하고, DISM으로 필요한 feature 설치

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

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

 

3. Linux Kernel Update

아래 경로에서 업데이트 패키지 다운로드 후 설치

https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

 

4. WSL 버전 변경(Powershell 관리자 권한 실행)

PS C:\Users\jhaewon> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.

 

5. Microsoft Store를 통해 Ubuntu 설치

설치 완료 후 Ubuntu 실행하고 사용자 이름과 패스워드 설정

Windows Terminal에서 Ubuntu 별도 탭 실행 가능

 

[참고 자료]

https://docs.microsoft.com/ko-kr/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package

https://www.lainyzine.com/ko/article/how-to-install-wsl2-and-use-linux-on-windows-10/