microsoft / microsoft/WSL

Windows Unable to Control Network Adapters in Linux using Mirrored Mode

Open
#13,487 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

network
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [Version 10.0.26100.6584]

### WSL Version

2.6.1.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.6.87.2

### Distro Version

Ubuntu 24.04

### Other Software

_No response_

### Repro Steps

Delete all distros from WSL.

Reboot.

Set networking mode to mirrored.

Run wsl --install to install default Ubuntu.

Run wsl to get a shell prompt.

Run `ip addr show` to show network configuration. See that eth0 and eth1 are down and have no addresses associated.

Run `dmesg`. Note hv_vmbus and hv_netvsc messages.

### Expected Behavior

Network adapters should be up and have IP addresses assigned. dmesg should not be full of hv_vmbus and hv_netvsc failure messages.

### Actual Behavior

Running `ip addr show` displays the following:

`spauldo@3KZF494:/mnt/c/Users/spauldj$ ip addr show`
`1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000`
` link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00`
` inet 127.0.0.1/8 scope host lo`
` valid_lft forever preferred_lft forever`
` inet 10.255.255.254/32 brd 10.255.255.254 scope global lo`
` valid_lft forever preferred_lft forever`
` inet6 ::1/128 scope host`
` valid_lft forever preferred_lft forever`
`2: eth0: mtu 1500 qdisc mq state DOWN group default qlen 1000`
` link/ether e8:cf:83:e1:9f:22 brd ff:ff:ff:ff:ff:ff`
`3: eth1: mtu 1500 qdisc mq state DOWN group default qlen 1000`
` link/ether 80:84:89:ee:72:26 brd ff:ff:ff:ff:ff:ff`
`4: loopback0: mtu 1500 qdisc mq state UP group default qlen 1000`
` link/ether 00:15:5d:de:37:9b brd ff:ff:ff:ff:ff:ff`
`spauldo@3KZF494:/mnt/c/Users/spauldj$`

When running `dmesg`, the following messages appear repeatedly:

`[ 20.257890] hv_vmbus: probe failed for device af18d668-af9d-434c-b473-99c764c6adde (-19)`
`[ 20.403354] hv_netvsc af18d668-af9d-434c-b473-99c764c6adde (unnamed net_device) (uninitialized): unable to open channel: -19`

No routes exist, I am unable to ping anything but localhost.

### Diagnostic Logs

[WslNetworkingLogs-2025-09-16_11-22-03.zip](https://github.com/user-attachments/files/22367563/WslNetworkingLogs-2025-09-16_11-22-03.zip)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the mirrored-mode setup and inspecting the attached WslNetworkingLogs archive alongside `ip addr show` and `dmesg`. Trace the reported `hv_vmbus` and `hv_netvsc` failures; the issue is done when eth0 and eth1 have addresses and routes, and the repeated failure messages no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.