You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WSL/wsl-config.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,11 +318,24 @@ These options are available in Build 18980 and later.
318
318
319
319
> **Available in Windows Build 19041 and later**
320
320
321
-
You can configure global WSL options by placing a `.wslconfig` file into the root directory of your users folder: `C:\Users\<yourUserName>\.wslconfig`. This file can contain the following options:
321
+
You can configure global WSL options by placing a `.wslconfig` file into the root directory of your users folder: `C:\Users\<yourUserName>\.wslconfig`.
322
+
323
+
Here is a sample .wslconfig file:
324
+
325
+
```console
326
+
[wsl2]
327
+
kernel=C:\\temp\\myCustomKernel
328
+
memory=4GB # Limits VM memory in WSL 2 to 4 GB
329
+
processors=2 # Makes the WSL 2 VM use two virtual processors
330
+
```
331
+
332
+
This file can contain the following options:
322
333
323
334
### WSL 2 Settings
324
335
325
-
These settings affect the VM that powers any WSL 2 distribution.
336
+
Section label: `[wsl2]`
337
+
338
+
These settings affect the VM that powers any WSL 2 distribution.
0 commit comments