WSL: Cannot enable Mirrored network on WSL

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

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 21 (2 by maintainers)

Most upvoted comments

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

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.

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.

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

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.