Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

WSL2 fails to start with networkingMode=bridged #9218

Closed
1 of 2 tasks
Kilill opened this issue Nov 27, 2022 · 3 comments
Closed
1 of 2 tasks

WSL2 fails to start with networkingMode=bridged #9218

Kilill opened this issue Nov 27, 2022 · 3 comments

Comments

@Kilill
Copy link

Kilill commented Nov 27, 2022

Version

Microsoft Windows [Version 10.0.19045.2311]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.74.2-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 2 19:50:29 UTC 2022

Distro Version

Ubuntu 20.04.3 LTS

Other Software

No response

Repro Steps

create a virtual switch according to : [(https://github.com/luxzg/WSL2-fixes/blob/master/networkingMode%3Dbridged.md#install-wsl-2-preview)]

fresh install of wsl:
wsl --install
terminated and shutdown wsl

add the lines:

[wsl2]
networkingMode=bridged
vmSwitch=WSL_external

to .wslconfig

try runnig wsl

Expected Behavior

wsl should start

Actual Behavior

wsl command terminates with:

The virtual machine or container JSON document is invalid.
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x8037010d

removing the networkingMode=bridged line from the config allows wsl to start

Diagnostic Logs

No response

@elsaco
Copy link

elsaco commented Nov 27, 2022

@Kilill WSL network bridging, as per mentioned guide, works in Windows 11 only. Looks like you're using Windows 10.

@Kilill
Copy link
Author

Kilill commented Nov 28, 2022

Yeah noticed that, but afaik that guide was also done for the prerelease of WSL 2 before it transitioned into V1.0 and supposedly supported on W10...

@elsaco
Copy link

elsaco commented Nov 28, 2022

I have it working on Windows 11 but on Windows 10 it keeps throwing errors:

The virtual machine or container JSON document is invalid.
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x8037010d
The virtual machine or container JSON document is invalid.
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x8037010d
The virtual machine or container JSON document is invalid.
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x8037010d
Press any key to continue...

WSL version used for testing:

PS C:\Users\elsaco> wsl --version
WSL version: 1.0.0.0
Kernel version: 5.15.74.2
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2311

@microsoft microsoft locked and limited conversation to collaborators Nov 28, 2022
@benhillis benhillis converted this issue into discussion #9227 Nov 28, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants