글 작성자: cjwoov
반응형

요구 사항

 Windows 10 버전 2004 이상(빌드 19041 이상) 또는 Windows 11

 

 

버전 확인 방법

winver

 

 

기능 활성화

 [제어판] - [프로그램] - [프로그램 및 기능] - [Windows 기능 켜기/끄기]

다음 체크박스 체크(V)

[✔] Hyper-V

[✔] Linux용 Windows 하위 시스템

확인 후 윈도우 재부팅

 

 

설치

WSL2 설치

 PowerShell 실행 후 아래 명령어 입력

wsl --install

 

 

 

Linux 커널 업데이트 패키지 설치

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

 

 PowerShell에서 다음과 같은 명령어 입력

 

wsl --set-default-version 2
WSL 기본 버전을 2로 설정

 

 

Ubuntu 설치

 PowerShell에서 다음과 같은 명령어 입력

$ wsl -l -o

다음은 설치할 수 있는 유효한 배포 목록입니다.
'wsl --install -d <배포>'를 사용하여 설치하세요.

NAME            FRIENDLY NAME
Ubuntu          Ubuntu
Debian          Debian GNU/Linux
kali-linux      Kali Linux Rolling
openSUSE-42     openSUSE Leap 42
SLES-12         SUSE Linux Enterprise Server v12
Ubuntu-16.04    Ubuntu 16.04 LTS
Ubuntu-18.04    Ubuntu 18.04 LTS
Ubuntu-20.04    Ubuntu 20.04 LTS

$ wsl --install -d Ubuntu

다운로드 중: Ubuntu
설치 중: Ubuntu
Ubuntu이(가) 설치되었습니다.

 

 

 

확인

$ wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Stopped         2
반응형