Skip to content

Instantly share code, notes, and snippets.

@abiosoft
Last active March 31, 2022 08:07
Show Gist options
  • Select an option

  • Save abiosoft/a2d093707d794be53685c012f212f97f to your computer and use it in GitHub Desktop.

Select an option

Save abiosoft/a2d093707d794be53685c012f212f97f to your computer and use it in GitHub Desktop.

Revisions

  1. abiosoft created this gist Dec 4, 2019.
    11 changes: 11 additions & 0 deletions .wslconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    [wsl2]
    kernel= # An absolute Windows path to a custom Linux kernel.
    memory= # How much memory to assign to the WSL2 VM.
    processors= # How many processors to assign to the WSL2 VM.
    swap= # How much swap space to add to the WSL2 VM. 0 for no swap file.
    swapFile= # An absolute Windows path to the swap vhd.
    localhostForwarding= # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true).

    # entries must be absolute Windows paths with escaped backslashes, for example C:\\Users\\Ben\\kernel
    # entries must be size followed by unit, for example 8GB or 512MB
    # save at C:\users\Username\.wslconfig