Skip to content

Commit

Permalink
virt/wsl: add docs about resource config
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <christian@paral.in>
  • Loading branch information
paralin committed Jan 30, 2021
1 parent 9c94459 commit 25857fc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions configs/virt/wsl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ export SKIFF_WORKSPACE=wsl

Note that my-wsl-system should be the ssh server running in the Skiff system.

## Configuring WSL2

WSL2 has two methods for configuration: editing the `/mnt/persist/etc/wsl.conf`
file, and editing the `$env:USERPROFILE/.wslconfig` file in Windows.

The documentation for the settings is available at the [wsl-config docs].

[wsl-config docs]: https://docs.microsoft.com/en-us/windows/wsl/wsl-config#wsl-2-settings

An example for changing the resources allocated to WSL2:

```
# notepad $env:USERPROFILE/.wslconfig
[wsl2]
memory=3GB
swap=4GB
processors=4
```

## Upgrading the WSL2 Kernel

Expand Down

0 comments on commit 25857fc

Please sign in to comment.