Windwos 10 WSL2 Install - jinwooklim/my-exp GitHub Wiki
WSL2 설치
- bios에서 cpu virtualization 켜져 있는지 확인
- powershell에서
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- powershell에서
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- https://docs.microsoft.com/ko-kr/windows/wsl/wsl2-kernel 에서 msi 파일 설치
- powershell에서
wsl --set-default-version 2
- Mircosoft Store에서 linux 배포판 설치 및 user 설정
- powershell에서 wsl -l -v로 wsl2로 설치되었는지 확인
- 사용 !
WSL2 CUDA
- https://developer.nvidia.com/cuda/wsl 들어가서 driver 설치
구조 참조 : https://devblogs.microsoft.com/directx/directx-heart-linux/
설치 참조 : https://muritzy.tistory.com/2409
기타 Tip
JetBrain 계열 terminal 을 wsl 로 적용하는법
Settings>Tools>Terminal
Application Settings 의 Shell path를 C:\Windows\System32\wsl.exe 로 지정
기타 문제점
WSL1은 ethernet을 host와 공유하였으나(윈도우에서 127.0.0.1로 WSL접속 가능)
하지만, WSL2은 이더넷이 분리되어 동적으로 IP가 할당됨. ssh로 연결하려면 WSL내 리눅스 ip를 얻은후 로그인이 필요함