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: Unknown key 'wsl2.hostAddressLoopback' in C:\Users\<username>\.wslconfig:9 #10965

Closed
1 of 2 tasks
oldshensheep opened this issue Dec 31, 2023 · 3 comments
Closed
1 of 2 tasks

Comments

@oldshensheep
Copy link

Windows Version

Microsoft Windows [Version 10.0.22635.2915]

WSL Version

2.0.15.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.133.1-microsoft-standard-WSL2

Distro Version

ArchLinux

Other Software

No response

Repro Steps

my wslconfig in C:\Users<username>.wslconfig

[wsl2]
swap=0
memory=8G

dnsTunneling=true
firewall=true
autoProxy=true
networkingMode=mirrored
hostAddressLoopback=true

Expected Behavior

Working, as my Windows version is 23H2 > 22H2 https://learn.microsoft.com/en-us/windows/wsl/wsl-config#main-wsl-settings

Actual Behavior

wsl: Unknown key 'wsl2.hostAddressLoopback' in C:\Users<username>.wslconfig:9

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@elsaco
Copy link

elsaco commented Dec 31, 2023

That feature is still experimental, as explained at https://learn.microsoft.com/en-us/windows/wsl/wsl-config#main-wsl-settings

Try:

[wsl2]
swap=0
memory=8G

dnsTunneling=true
firewall=true
autoProxy=true
networkingMode=mirrored

[experimental]
hostAddressLoopback=true

@oldshensheep
Copy link
Author

@elsaco thanks, this worked. However, the document only mentions that autoMemoryReclaim and sparseVhd are experimental
see this https://learn.microsoft.com/en-us/windows/wsl/wsl-config#experimental-settings There may be a documentation error.

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

No branches or pull requests

2 participants