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

Closed
AaronFriel opened this issue Sep 19, 2023 · 3 comments
Closed

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

AaronFriel opened this issue Sep 19, 2023 · 3 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.

@ghost ghost assigned OneBlue Sep 19, 2023
@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.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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