You are not logged in.

#1 2016-07-21 04:22:44

UggJesus
Member
Registered: 2016-07-21
Posts: 2

[Solved] No sound in Windows 10 VM through QEMU/KVM

I have been working on setting up a Windows 10 VM with GPU passthrough. I have successfully passed through my GTX 1070 and am running Arch off my 6700k's integrated graphics. Everything works in this VM now except sound and I cannot seem to get it to work. I am using virt-manager to edit and run the VM. If I add in a spice server and virtual display I can get audio to route through my host but the quality on both my headphones and mic is pretty bad this way. I have tried using ich9 with:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
...
<qemu:commandline>
    <qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
    <qemu:env name='QEMU_PA_SAMPLES' value='128'/>
</qemu:commandline>

but this does not work either. I also tried disabling driver enforcement in Windows 10 and installing the ac97 drivers from Realtek but this also does not work. In both of these cases my audio devices show up in the Windows sound menu but no audio will play. I could also pass through my onboard audio device but it is on the same IOMMU group as other onboard devices and as I am running linux and not linux-vfio, I think I would have to redo everything. Can anyone suggest a solution?

Last edited by UggJesus (2016-07-21 21:55:00)

Offline

#2 2016-07-21 21:58:11

UggJesus
Member
Registered: 2016-07-21
Posts: 2

Re: [Solved] No sound in Windows 10 VM through QEMU/KVM

I actually managed to solve this so I'll post the solution in case someone finds this through searching. Using the above addition through virsh and running the sound device in virt-manager as ich9 as well as changing the qemu.conf file to run as my user I got sound to work through pulseaudio for the most part. There is still an occasional crackle but this is acceptable for me for the time being. There is also a large delay on my microphone which I don't quite know how to fix.

Sources:
https://www.reddit.com/r/VFIO/comments/ … pa_server/
https://www.reddit.com/r/VFIO/comments/ … gaming_vm/

Offline

#3 2016-12-04 22:33:41

Nektarios
Member
Registered: 2013-02-19
Posts: 90

Re: [Solved] No sound in Windows 10 VM through QEMU/KVM

Hey UggJesus, FYI try this patch for the 20s delay fix: https://bbs.archlinux.org/viewtopic.php … 1#p1638091

Offline

Board footer

Powered by FluxBB