© Hayden Barnes 2021
H. BarnesPro Windows Subsystem for Linux (WSL)https://doi.org/10.1007/978-1-4842-6873-5_6

6. Configuring WSL 2

Hayden Barnes1  
(1)
Columbus, GA, USA
 

WSL 2 brings several new settings to WSL because of its architecture. As a lightweight VM, some of these settings may be familiar to users of other virtualization software, such as Hyper-V or VirtualBox, where you can define the amount of memory or processors for a specific VM. In WSL 2, you can define these parameters for the WSL 2 environment. The following settings require WSL 2 and are available in Windows 10 build 18980 or higher.

.wslconfig

WSL 2-specific settings are defined in a separate file. It is located in your Windows user home folder in a file named .wslconfig. The settings ...

Get Pro Windows Subsystem for Linux (WSL): Powerful Tools and Practices for Cross-Platform Development and Collaboration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.