diff --git a/vcan-in-wsl2/vcan-in-wsl2.sh b/vcan-in-wsl2/vcan-in-wsl2.sh index 34a8d45..aa85c92 100644 --- a/vcan-in-wsl2/vcan-in-wsl2.sh +++ b/vcan-in-wsl2/vcan-in-wsl2.sh @@ -1,6 +1,9 @@ +# update +sudo apt-get update + # required packages sudo apt install -y libelf-dev dwarves flex bison libssl-dev \ - libncurses-dev + libncurses-dev bc make build-essential # The below few connamds will checkout the 1GB default kernel git clone https://github.com/microsoft/WSL2-Linux-Kernel @@ -20,11 +23,16 @@ make menuconfig #build the kernel make -j4 +#make modules and install them +make modules +sudo make modules_install + # We'll need to store our custom kernel in the Windows environment and # launch it when we start wsl2. # Change the path below to where you want to store it cp vmlinux /mnt/c/Users// cat >> /mnt/c/Users//.wslconfig << "ENDL" +[wsl2] kernel=C:\\Users\\\\vmlinux ENDL