sudo apt install build-essential flex bison libssl-dev libelf-dev dwarves
git clone https://github.com/microsoft/WSL2-Linux-Kernel.git
cd WSL2-Linux-Kernel
cp Microsoft/config-wsl .config
make -j $(expr $(nproc) - 1)- Copy
\\wsl$\<DISTRO>\home\<USER>\WSL2-Linux-Kernel\arch\x86\boot\bzimageto %userprofile% - Put on %userprofile% the .wslconfig file (or add the kernel config on an existing one)
- Shutdown WSL with
wsl --shutdown - Reopen WSL2 Flavor
- Copy the Makefile on home folder
- run
makeon home