Instructions for building an x86_64 WSL2 kernel with an Ubuntu distribution using bash are as follows: Install the build dependencies: $ sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio qemu-utils Modify WSL2 kernel configs (optional): $ make menuconfig KCONFIG_CONFIG=Microsoft/config-wsl Build the kernel using the WSL2 kernel configuration and put the modules in a mo