I've set up a CentOS 8 host and am using QEMU to run a Windows 10 VM with passthrough of a dedicated GPU. Everything works nicely except for sound: I can't manage to get any sound to play. The Windows guest seems to think there is a working sound device, everything inside the guest looks fine and there is a volume control there too. However, no sound plays on the host. PulseAudio Volume Control does not list a playback device for the corresponding VM.
I should add that on the same host, I am also running three Linux guests. All of those guests are listed as playback streams in PulseAudio Volume Control and produce sound output without problems. It appears to me it must either be the fact that this is a Windows guest, the fact that it uses GPU passthrough instead of a virtual display, or an interplay of both that creates this issue.
I've googled a lot already and tried all the solutions I came across:
- Tried switching between the available virtual audio devices AC97, ich6 and ich9
- Many sources suggest to add
to the guest's XML config. Although I dislike doing random things which I don't properly understand, I added this, but no change.
Code: Select all
<qemu:commandline> <qemu:env name='QEMU_AUDIO_DRV' value='pa'/> <qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/> </qemu:commandline>
- I've also tried what's suggested here:
https://wiki.archlinux.org/index.php/Pu ... _same_time - I've also added to /etc/libvirt/qemu.conf the option
Code: Select all
nographics_allow_host_audio=1