Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL 2.0 warning when using "swap=0GB" with "Invalid memory string" #10503

Open
AaronFriel opened this issue Sep 19, 2023 · 2 comments
Open

WSL 2.0 warning when using "swap=0GB" with "Invalid memory string" #10503

AaronFriel opened this issue Sep 19, 2023 · 2 comments
Assignees

Comments

@AaronFriel
Copy link

This .wslconfig file will report an error on starting the WSL2 host compute system instance / virtualized environment:

[wsl2]
swap=0GB

The error is:

$ wsl
wsl: Invalid memory string '0GB' for .wslconfig entry 'wsl2.swap'

This line isn't logged 1.2.5.

@zcobol
Copy link

zcobol commented Sep 20, 2023

@AaronFriel the instructions at https://learn.microsoft.com/en-us/windows/wsl/wsl-config specifies 0 for no swap file and it works when swap=0 is set in .wslconfig

@benhillis
Copy link
Member

Fixed with https://github.com/microsoft/WSL/releases/tag/2.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants