microsoft / microsoft/WSL

WSL Hyper-V-VmSwitch restarts network every few minutes causing sound stuttering on host machine

Open
#7,178 27 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Windows Build Number

Version 10.0.19043.1110

WSL Version
  • WSL 2
  • WSL 1
Kernel Version

Linux version 5.4.72-microsoft-standard-WSL2

Distro Version

Kali

Other Software

No response

Repro Steps

Boot machine, sit and wait. No other steps are necessary for this to happen on my machine. Not sure what I can do to mitigare this.

Expected Behavior

WSL2 should not restart network interface Hyper-V-VmSwitch every 2-10 minutes.

Actual Behavior

Every 2-10 minutes (sometimes a break of up to half an hour) Hyper-V-VmSwitch restarts it's network interface and logs it to windows logs, which causes sound stuttering on my usb headphones.

Networking driver in Virtual Machine is loaded and the protocol version is negotiated to the most recent version (Virtual machine ID 4E28C58C-BE6A-451D-A5E8-E944A5756E4D).

NIC 4E28C58C-BE6A-451D-A5E8-E944A5756E4D--FC785225-9131-5661-AC0C-3A157C61AE15 (Friendly Name: ) successfully connected to port 32097E04-6456-4FBB-AA70-A91218419EFB (Friendly Name: 5E03A28A-6836-45A1-AE15-0C24DBFDE003) on switch E4E1D1EB-6009-48AD-8CC8-E195490F0524(Friendly Name: WSL).

The operation 'Create' succeeded on nic 4E28C58C-BE6A-451D-A5E8-E944A5756E4D--FC785225-9131-5661-AC0C-3A157C61AE15 (Friendly Name: ). Port 32097E04-6456-4FBB-AA70-A91218419EFB (Friendly Name: 5E03A28A-6836-45A1-AE15-0C24DBFDE003) successfully created on switch E4E1D1EB-6009-48AD-8CC8-E195490F0524 (Friendly Name: WSL).

The operation 'Delete' succeeded on nic 0E162F26-4FC8-452F-972A-43E573F7DEFA--FC785225-9131-5661-AC0C-3A157C61AE15 (Friendly Name: ).

hyperv

Diagnostic Logs

diagnostics.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

No source file or test is named. Start by reviewing diagnostics.zip alongside the reported Windows event-log entries and the WSL 2 networking repro; done means identifying and preventing the recurring Hyper-V-VmSwitch restart without host audio stuttering.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.