KVM - Gaming VM doesn't share Audio with Host

tinfoil-hat

Active Member
Joined
Oct 24, 2021
Messages
349
Reaction score
173
Credits
2,418
Hi there,
I have set up a Windows Gaming VM trough KVM via GPU Passtrough. However I want to output the sounds of my Windows VM on my Host machine. The I read in threads and forums, you have to edit the XML and add:
Code:
  <qemu:commandline>
    <qemu:env name="QEMU_AUDIO_DRV" value="pa"/>
    <qemu:env name="QEMU_PA_SERVER" value="/run/user/1000/pulse/native"/>
  </qemu:commandline>
my UID is 1000
and Edit the
Code:
/etc/libvirt/qemu.conf
and insert
Code:
nographics_allow_host_audio = 1
After that I restarted pulseaudio and qemu / libvirt

However my Windows VM doesn't show any Audio Device, that seemed relevant (I get some previous connected USB/Blutooth devices)

Thank you for reading and helping
 


When I create a vm they get a virtual sound device(HDA ICH9) by default and when I play a something that requires sound I get sound through my host speakers. Don't you get sound when not having setup that or is there a specific reason you want it setup like that?
 

Members online


Top