-
Notifications
You must be signed in to change notification settings - Fork 860
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
.wslconfig doesn't work: Unknown key ...
#10510
Comments
Or did I misunderstand something and the |
.wslconfig is not a globalization of wsl.conf. |
Understood. So, closing this issue. |
2 tasks
2 tasks
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows Version
Microsoft Windows [Version 10.0.22621.2283]
WSL Version
2.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Remove /etc/wsl.conf file.
wsl --shutdown
Create .wslconfig file in
C:\Users\<UserName>
with the following content:NOTE: there is another issue that .wslconfig file should have LF line endings. Otherwise, with CRLF, it doesn't work in my setup.
Start the WSL and see output in Terminal:
Also, see that, for example, docker inside WSL isn't accessible because systemd doesn't start due to broken .wslconfig.
Windows or WSL reboot doesn't fix this problem.
Expected Behavior
WSL configuration successfully loaded from
C:\Users\<UserName>\.wslconfig
file.Actual Behavior
Errors when loading WSL configuration from
C:\Users\<UserName>\.wslconfig
file.Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: