Skip to content

Cannot enable Mirrored network on WSL #11154

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

Open
1 of 2 tasks
ecomter opened this issue Feb 14, 2024 · 20 comments
Open
1 of 2 tasks

Cannot enable Mirrored network on WSL #11154

ecomter opened this issue Feb 14, 2024 · 20 comments
Labels

Comments

@ecomter
Copy link

ecomter commented Feb 14, 2024

Windows Version

Microsoft Windows [Version 10.0.26052.1000]

WSL Version

2.1.1.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-microsoft-standard-WSL2

Distro Version

Ubuntu 18.04

Other Software

No response

Repro Steps

I set the network type to mirrored in the .wslconfig file.
networkingMode=mirrored
and then restart WSL

Expected Behavior

Everything's getting good. It should work.

Actual Behavior

When I start wsl it reports an error:

无法初始化Mirrored网络。若要切换回NAT网络请从 C:\Users\ecomter\.wslconfig中删除“experimental.networkingMode”
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x803b0015

Diagnostic Logs

WslNetworkingLogs-2024-02-14_17-09-15.zip

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.

@chanpreetdhanjal
Copy link

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@ecomter
Copy link
Author

ecomter commented Feb 15, 2024

I have finished it in the title “Diagnostic Logs” of the first answer.
WslNetworkingLogs-2024-02-14_17-09-15.zip

@ecomter
Copy link
Author

ecomter commented Feb 17, 2024

Is there a available solution yet, please? I found in the Microsoft documentation that it might mean HCN_E_REQUEST_UNSUPPORTED error which is "The specified request is unsupported". I am hosting my virtual machine in azure, hope this helps!

@keith-horton
Copy link
Member

Hi there. can you clarify what version of Windows is running in your virtual machine? Is this a server SKU? is it a headless server SKU? I'm reading code where it looks like it's blocking it for some reason.

@ecomter
Copy link
Author

ecomter commented Feb 21, 2024

It's Windows Server 2025 Datacenter Azure Edition Build 26052 running on Microsoft Azure, I connect to it by RDP. So I think it is a Headless server SKU

@keith-horton
Copy link
Member

Yeah, sorry. I found code in another component that's blocking Mirrored mode from running on Server SKUs :(

I'm going to try and fix this for the next release. I will have to pitch this to folks who work on servicing for existing releases.

@L2
Copy link

L2 commented May 15, 2024

Yeah, sorry. I found code in another component that's blocking Mirrored mode from running on Server SKUs :(

I'm going to try and fix this for the next release. I will have to pitch this to folks who work on servicing for existing releases.

Hi @keith-horton , just a friendly ping to see if you were able to get Mirrored mode working with Windows Server (2022 in particular) and if there's any eta on the release for the next WSL pre-release build. Thanks!

@joshmouch
Copy link

It's Windows Server 2025 Datacenter Azure Edition Build 26052 running on Microsoft Azure, I connect to it by RDP. So I think it is a Headless server SKU

I'm also getting this on Windows Datacenter Server 2025 preview.

@captainhook
Copy link

I have settled with port forwarding for now as detailed in #4150

Hopefully this constraint is removed for Windows Server SKUs soon.

@KinComet
Copy link

Still exists on Windows Server VNext Preview (Canary) - Build 26280

@FrostleafChan
Copy link

Still getting this on Windows Server 2025 Version 24H2 Build 26100.2033.
CreateInstance/CreateVm/ConfigureNetworking/0x803b0015, falling back to networkingMode=none.

@Vossiewos
Copy link

Still getting this on Windows Server 2025 Version 24H2 Build 26100.2033. CreateInstance/CreateVm/ConfigureNetworking/0x803b0015, falling back to networkingMode=none.

Same. I'm hoping to run an up-to-date squid version under WSL, but in NAT mode, all requests logged are comming from the default-gateway of the WSL subnet instead of the true client, so there is no distinction between requests. (it's not only DNAT-ting on the Windows host, but also SNAT-ting) really was hoping that Mirrored Network mode would solve this for me.

@arixmkii
Copy link

arixmkii commented Feb 9, 2025

Have same issue with new install of Server 2025 and WSL 2.4.10

@firezym
Copy link

firezym commented Feb 19, 2025

Have same issue with new install of Server 2025 26100.3194 and WSL2 2.4.11.0

@MJRT
Copy link

MJRT commented Feb 19, 2025

Have same issue after updated to win11 24H2(26100.3194)

@MJRT
Copy link

MJRT commented Feb 20, 2025

Have same issue after updated to win11 24H2(26100.3194)

Changing the networking mode to VirtioProxy and restarting Windows works for me!

@fyq163
Copy link

fyq163 commented Mar 16, 2025

mine even have more errors

wsl: 指定的请求不受支持。 Error code: CreateInstance/CreateVm/ConfigureNetworking/0x803b0015 wsl: Failed to configure network (networkingMode Mirrored), falling back to networkingMode None. wsl: A localhost proxy configuration was detected but not mirrored into WSL. WSL in NAT mode does not support localhost proxies.

@kidfruit
Copy link

Same here. Server 2025 datacenter 26100.3476 and wsl 2.4.12

@acdzh
Copy link

acdzh commented May 21, 2025

Have same issue with new install of Server 2025 26110.4061 and WSL 2.4.13.0

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

No branches or pull requests