MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.89k stars 556 forks source link

.wslconfig error #1801

Closed wuqij closed 11 months ago

wuqij commented 11 months ago

Recently I was configuring WSL2's network, but recently when I started WSL2, I got the following error:" The virtual machine or container JSON document is invalid. Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x8037010d”

.wslconfig file:

[wsl2] networkingMode=bridged vmSwitch=Kali ipv6=true

The system is Win10 The linux is Kali

OneBlue commented 11 months ago

@wuqijian-site: Bridged networking is not supported on Windows 10. If you remove those 3 configuration values the issue should be resolved.