___ I wrote how to use a custom kernel in WSL2. ___
P.S. If you are using scoop and want to use Linux 5.x (next), use this
ifscoop
scoop bucket add wsl2-next https://github.com/koumaza/bucket.git
github - microsoft/WSL2-Linux-Kernel
Ubuntu
build-essential flex bison libssl-dev libelf-dev
ArchLinux
base-devel flex bison openssl libelf
shell
make KCONFIG_CONFIG=Microsoft/config-wsl
# or. AutoEnter
yes '' | make KCONFIG_CONFIG=Microsoft/config-wsl
Play with __ ~ / .wslconfig__. In front of! Let's do ʻuname -a`.
Create the following files in your home path. Replace [USERNAME].
.wslconfig
[WSL2]
kernel=C:\\Users\\[USERNAME]\\vmlinux
If you are running an instance, do wsl --shutdown
.
Of course, you can place vmlinux anywhere you like.
Linux 5.x✌
You can do everything with WSL2
Recommended Posts