Skip to content

Commit 7ad301d

Browse files
Updated wsl-config.md
1 parent c8e5451 commit 7ad301d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WSL/wsl-config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,15 @@ These settings affect the VM that powers any WSL 2 distribution.
340340
| key | value | default | notes|
341341
|:----|:----|:----|:----|
342342
| kernel | string | The Microsoft built kernel provided inbox | An absolute Windows path to a custom Linux kernel. |
343-
| memory | size | 80% of your total memory on Windows | How much memory to assign to the WSL 2 VM. |
343+
| memory | size | 80% of your total memory on Windows * | How much memory to assign to the WSL 2 VM. |
344344
| processors | number | The same number of processors on Windows | How many processors to assign to the WSL 2 VM. |
345345
| localhostForwarding | boolean | `true` | Boolean specifying if ports bound to wildcard or localhost in the WSL 2 VM should be connectable from the host via localhost:port. |
346346
| kernelCommandLine | string | Blank | Additional kernel command line arguments. |
347347
| swap | size | 25% of memory size on Windows rounded up to the nearest GB | How much swap space to add to the WSL 2 VM, 0 for no swap file. |
348348
| swapFile | string | %USERPROFILE%\AppData\Local\Temp\swap.vhdx | An absolute Windows path to the swap virtual hard disk. |
349349

350+
* Note: This value is true for Windows Build 19041 and may be different in Windows builds in the Insiders program
351+
350352
Entries with the `path` value must be Windows paths with escaped backslashes, e.g: `C:\\Temp\\myCustomKernel`
351353

352354
Entries with the `size` value must be a size followed by a unit, for example `8GB` or `512MB`.

0 commit comments

Comments
 (0)