WSL Kernel Compile


```typesudo apt install build-essential libncurses5-dev libssl-dev bison flex libelf-devgit clone https://github.com/microsoft/WSL2-Linux-Kernel -b `uname -r` --single-branchcd WSL2-Linux-Kernelzcat /proc/config.gz > .configmake -jsudo make modules_install# 다음 내용은 modules_install로 설치 시 경로에 + 붙으면 실행cd /lib/modulessudo ln -s /lib/modules/`uname -r`+ /lib/modules/`uname -r````


### header
```typecd -make bindeb-pkgcd ..dpkg -i linux-headers-`uname -r`+_`uname -r`+-1_amd64.deb```



> [WSL2 kernel compile](https://blog.devbug.me/wsl2-kernel-compile/)





