Sound stutters/lags/pops (on host machine) whenever Hyper-V is doing something

Michael Bäck 16 Reputation points
2021-07-07T21:55:30.35+00:00

It was suggested to me on the community forums that I post my question here instead. Eventhough this is about a Windows 10 Pro machine I use to work and also game on.

For a while now I have been running WSL2 on my Windows 10 Pro machine without issues but a couple of updates ago, I'm not entirely sure when, I started hearing stutters or pops in my sound every now and then. I tried LatencyMon and it found a bunch of issues, three different sources of audio lag that it could identify (screenshots of LatencyMon below thread). I tried putting my system on high performance first, reverted to some old graphics drivers second (because I read somewhere that newer nvidia drivers could do this) and re-installed my network drivers because it said it could be related to network drivers. But today I listened a little more closely and I checked the system logs whenever I heard this audio crackle and it turns out that every single time Hyper-V is doing something in the background, something with network. I also tried disabling the Hyper-V Network Connection (WSL) but it doesn't seem to fix it entirely. I can't find any threads on this, except a very old thread that seems to have been fixed by turning system to high performance, this is as I said, already done. These log texts are included:

112741-hyperv.png

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: ).

Also, whenever I go to my terminal and fire up ubuntu or kali, and then do a wsl --shutdown, the audio stutters again. Always. To be clear, I am not running Kali when this is happening, the above log entires happen every three minutes and every three minutes my sound stutters. WSL can be shut or running, it doesn't matter.

I have a few theories to when this started happening, I'm not exactly sure which one of them it is because they all happened in the same period and I am slow to notice things sometimes. I ran a program called Wallpaper Engine that, when I updated my graphics drivers "greenscreened" (bsod for insider edition) my system. I uninstalled that program directly after. Also, around that time, I updated windows to some new version 21H1 or some sub-update. I updated my bios to fix usb stability issues they had (amd/asus rog strix b-550-f), known issues with pci-e 4.

Does anyone know anything about this? What can I do to figure this out further?

112751-2021-07-05-04-45-49-window.png
112703-2021-07-05-04-48-20-window.png
112761-2021-07-05-04-55-41-window.png

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2021-07-08T02:49:30.953+00:00

    Hi,

    Please use SFC tool trying to check there are corrupted system files, we can type the command "sfc /scannow" in the CMD.

    Reference:

    Use the System File Checker tool to repair missing or corrupted system files

    If the issue persists, please try to reinstall the Hyper-V role on this host to see if it works.

    Thanks,


    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    1 person found this answer helpful.

  2. Anonymous
    2021-07-12T05:23:59.037+00:00

    Hi,

    If you do not enable Hyper V itself but some virtualization features were enabled.

    Please try below commands to see if you can disable the virtualization features and if the issue could be resolved.

    CMD
    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor -All

    Or Powershell
    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor

    If issue persists, will you consider uninstalling WSL?

    Thanks,


    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.


  3. Michael Bäck 16 Reputation points
    2021-07-13T23:15:15.853+00:00

    I turned on amd cpu optimization in bios and re-installed the latest nvidia drivers to test. I'm not sure if it got worse or better yet, more testing needs to be done.


  4. Michael Bäck 16 Reputation points
    2021-07-16T20:24:54.903+00:00

    Issue opened on Microsoft WSL github https://github.com/microsoft/WSL/issues/7178

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.