Skip to content

Cannot enable Mirrored network on WSL  #11154

Open

Description

@ecomter

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

Activity

  1. github-actions commented on Feb 14, 2024

    @github-actions
    Contributor

    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.

  2. chanpreetdhanjal commented on Feb 14, 2024

    @chanpreetdhanjal
  3. ecomter commented on Feb 15, 2024

    @ecomter
    Author

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

  4. ecomter commented on Feb 17, 2024

    @ecomter
    Author

    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!

  5. keith-horton commented on Feb 20, 2024

    @keith-horton
    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.

  6. ecomter commented on Feb 21, 2024

    @ecomter
    Author

    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

  7. keith-horton commented on Mar 7, 2024

    @keith-horton
    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.

  8. L2 commented on May 15, 2024

    @L2

    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 (@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!

  9. joshmouch commented on May 26, 2024

    @joshmouch

    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.

  10. captainhook commented on May 31, 2024

    @captainhook

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

    Hopefully this constraint is removed for Windows Server SKUs soon.

  11. KinComet commented on Sep 23, 2024

    @KinComet

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

  12. ElvinStarry commented on Oct 30, 2024

    @ElvinStarry

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

  13. Vossiewos commented on Oct 30, 2024

    @Vossiewos

    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.

  14. arixmkii commented on Feb 9, 2025

    @arixmkii

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

  15. 12 remaining items

  16. intelljames commented on Sep 25, 2025

    @intelljames

    Have same issue with new install of Server 2025 26100.6584 and WSL 2.6.1.0

  17. yanshiqwq commented on Jan 1, 2026

    @yanshiqwq

    Have same issue with new install of Server 2025 26100.7462 and WSL 2.6.3.0

  18. elhananjair commented on Jan 27, 2026

    @elhananjair

    Any updates on this issue? I think starting from WSL2, many of us have started using WSL regularly on Windows Server, it would be best if this feature works.

  19. yanshiqwq commented on Jan 27, 2026

    @yanshiqwq

    Have same issue with new install of Server 2025 26100.32230 and WSL 2.7.0.0
    😇

  20. hoshiizumiya commented on May 3, 2026

    @hoshiizumiya

    shit work with the lastest windows 2025 and wsl2 version

  21. PPicku commented on May 15, 2026

    @PPicku

    Same question on me. I have Windows 2025 24H2 and WSL 2.7.3.0.

  22. LaoCaocao666 commented on May 20, 2026

    @LaoCaocao666

    Windows service 2025 24H2 WSL 2.7.3 Same question

  23. paasi6666 commented on Jun 12, 2026

    @paasi6666

    Any updates to this?

  24. dem1995 commented on Jun 19, 2026

    @dem1995

    Same question

    Edition Windows 11 Pro
    Version 23H2
    Installed on ‎6/‎15/‎2026
    OS build 22631.6199
    Experience Windows Feature Experience Pack 1000.22700.1108.0

    WSL version: 2.7.8.0
    Kernel version: 6.18.33.1-1
    WSLg version: 1.0.73.2
    MSRDC version: 1.2.6676
    Direct3D version: 1.611.1-81528511
    DXCore version: 10.0.26100.1-240331-1435.ge-release
    Windows version: 10.0.22631.6199

  25. yanshiqwq commented on Jul 11, 2026

    @yanshiqwq

    Same issue,2026/07/12,
    😇

    WSL 版本: 2.7.10.0
    内核版本: 6.18.33.2-2
    WSLg 版本: 1.0.73.2
    MSRDC 版本: 1.2.6676
    Direct3D 版本: 1.611.1-81528511
    DXCore 版本: 10.0.26100.1-240331-1435.ge-release
    Windows: 10.0.26100.32690

    Image
  26. yanshiqwq commented on Jul 11, 2026

    @yanshiqwq

    Could this be fixed before the release of Windows 12? 😂

  27. herepost commented on Jul 28, 2026

    @herepost

    是的,抱歉。我在另一个组件里发现了阻止镜像模式在服务器SKU上运行的代码:(

    我打算在下一个版本里尝试修复这个问题。我得向那些为现有发布做服务的人推介这个。

    很抱歉,当时我希望了解这个问题的修复进度。感谢

  28. dorioku commented on Aug 6, 2026

    @dorioku

    same
    WSL 版本: 2.7.11.0
    内核版本: 6.18.33.2-2
    WSLg 版本: 1.0.73.2
    MSRDC 版本: 1.2.7214
    Direct3D 版本: 1.611.1-81528511
    DXCore 版本: 10.0.26100.1-240331-1435.ge-release
    Windows: 10.0.26100.33158

    wsl: 指定的请求不受支持。
    错误代码: CreateInstance/CreateVm/ConfigureNetworking/0x803b0015
    wsl: 无法配置网络 (networkingMode Mirrored),回退到 networkingMode None。

  29. vibbix commented on Sep 22, 2026

    @vibbix
    wsl --shutdown
    Disable-NetAdapter -Name 'Ethernet 4' -Confirm:$false
    Start-Sleep 3
    wsl -d Ubuntu-24.04 -e true      # rebuilds FSE against loopback only
    Enable-NetAdapter -Name 'Ethernet 4' -Confirm:$false
    Start-Sleep 8
    wsl --shutdown
    

    I had to disable and re-enable my nic (no restart needed), and then it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions