This feature is part of the new version of WSL in Insider preview build 18945. This is a 20H1 build, which means it will likely be released in April 2020—it’s unclear if this feature will make it to 19H2, expected for release in October 2019.
Microsoft had already added the Linux kernel, but now WSL 2 looks even more powerful than we originally thought. Now, you can do whatever you want with the Linux kernel, including adding kernel modules. You then specify the path to your kernel file in a .wslconfig file on your system and Windows will automatically load it whenever you launch a Linux system. You don’t have to load a custom kernel—if you don’t, Windows will just use the built-in one.
As Microsoft’s Craig Loewen, program manager for the Windows Developer Platform, explains:
There are more improvements to WSL, too. The entire .wslconfig global configuration file is new, and WSL 2 users can now connect to Linux servers running on their system using localhost .
This latest insider preview build also features a redesigned Cortana experience, streamlined file search in File Explorer, and customizable text cursor indicator.
RELATED: Windows 10 Is Getting a Built-in Linux Kernel