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.7 bridge mode doesn't work on Win 10 Pro without extra hackery #10711

Closed
1 of 2 tasks
zenczykowski opened this issue Nov 4, 2023 · 6 comments
Closed
1 of 2 tasks

Comments

@zenczykowski
Copy link

Windows Version

Microsoft Windows [Version 10.0.19045.3636]

WSL Version

2.0.7.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Fedora 39

Other Software

not important, it doesn't get that far

Repro Steps

PS C:\Users\MaZe> wsl --version
WSL version: 2.0.7.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.19045.3636
PS C:\Users\MaZe> wsl
Failed to configure network (networkingMode Bridged). To disable networking, set wsl2.networkingMode=None in C:\Users\MaZe.wslconfig
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HCS/0x8037010d

this is with

PS C:\Users\MaZe> type ..wslconfig
[wsl2]
dhcp = false
ipv6 = true
networkingMode = bridged
vmSwitch = External

and hyperV switch created External bridge

Expected Behavior

it should use the ready bridge

Actual Behavior

it errors out (see above)

Note that bridging can be made to work, by not putting networkingMode/vmSwitch in .wslconfig and instead manually changing the WSL bridge to be 'external' mode in HyperV switch manager.

This is just annoying to do, because it means the system boots with broken networking, and then needs to be manually fixed...

Diagnostic Logs

No response

@zenczykowski
Copy link
Author

note that the failure is different if the named bridge doesn't actually exist, for example:

PS C:\Users\MaZe> wsl
The VmSwitch 'NameOfAVMSwitchThatDoesNotExist' was not found.
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/WSL_E_VMSWITCH_NOT_FOUND

so if you specify an existing VmSwitch, it does find it and it tries to use it... just something goes wrong

as a Linux kernel dev myself I'm guessing this is some stupid typo and can be fixed with a few lines of code...
(but of course who knows)

@ghost
Copy link

ghost commented Nov 7, 2023

+@craigloewen-msft, I'm pretty sure we never released bridged mode as a supported/documented feature. If the state of the universe has changed I'll let craig update this bug.

@ghost ghost closed this as completed Nov 7, 2023
@zenczykowski
Copy link
Author

Considering bridge mode works, and it's just missing integration in the startup scripts to prevent one from having to manually set it up on every boot, that's a pity.

@onwardmk
Copy link

onwardmk commented Jun 1, 2024

Considering bridge mode works, and it's just missing integration in the startup scripts to prevent one from having to manually set it up on every boot, that's a pity.

@zenczykowski did you have a workaround? My personal laptop is on Windows 10 Pro, and neither bridged nor mirrored (#10823) networking mode are supported.

@zenczykowski
Copy link
Author

zenczykowski commented Jun 1, 2024 via email

@onwardmk
Copy link

onwardmk commented Jun 3, 2024

@zenczykowski thanks so much for the detailed response. I unfortunately only use WiFi to connect to the Internet with this laptop. Even if I was on Ethernet, the process you described sounds too cumbersome since I'd have to do that every time I reboot. I wanted to use my personal laptop to tinker, but I guess I can do that on my work laptop. Thanks again!

This issue was closed.
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