Why should I know this?

WSL2 커널 업데이트 본문

nope

WSL2 커널 업데이트

die4taoam 2021. 10. 11. 17:53

https://docs.microsoft.com/en-us/windows/wsl/wsl-config#in-preview-options-1

 

Configure Linux distributions

A reference guide to help you manage and configure multiple Linux distributions running on the Windows Subsystem for Linux.

docs.microsoft.com

WSL 2 setting preview options

These options are only available in the latest preview builds if you are on the latest builds of the Windows Insiders program.

guiApplications boolean true Boolean to turn on or off support for GUI applications (WSLg) in WSL.
debugConsole boolean false Boolean to turn on an output console Window that shows the contents of dmesg upon start of a WSL 2 distro instance.
nestedVirtualization boolean true Boolean to turn on or off nested virtualization for WSL2.
vmIdleTimeout number 60000 The number of milliseconds that a VM is idle, before it is shut down.

WSL 2 setting preview optionskey value default notes

 

 

-. wsl 2 버전 확인

wsl -l -v

 

PS C:\WINDOWS\system32> wsl.exe -l -v
  NAME            STATE           VERSION
* Ubuntu-18.04    Running         2

 

*참고 : WSL version 1 을 2 로 update : wsl.exe --set-version Ubuntu-20.04 2

wsl2 커널 확인

 

m@Hanbum:~$ uname -a
Linux Hanbum 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

 

wsl2 재기동

PS C:\WINDOWS\system32> wsl.exe --shutdown Ubuntu-18.04
PS C:\WINDOWS\system32> wsl.exe -l -v
  NAME            STATE           VERSION
* Ubuntu-18.04    Stopped         2
PS C:\WINDOWS\system32> wsl.exe -d Ubuntu-18.04

>>> 재기동 되어 ubuntu shell 로 들어옴.
m@Hanbum:/mnt/c/WINDOWS/system32$ uname -a
Linux Hanbum 4.19.104-gvm-microsoft-standard1 #6 SMP Mon Oct 11 17:38:42 KST 2021 x86_64 x86_64 x86_64 GNU/Linux

Comments