Thursday, November 10, 2011

64 bit windows sound in KVM for and Amazon VOD

64 bit windows systems are not happy with these legacy drivers:
jcuff@srv:/var/lib/libvirt/network$ qemu -soundhw ?
Valid sound card names (comma separated):
pcspk       PC speaker
sb16        Creative Sound Blaster 16
ac97        Intel 82801AA AC97 Audio
es1370      ENSONIQ AudioPCI ES1370


However, hda is a new method only available in qemu 0.14 and above. As you can see the virtmanager console does not yet have this one listed, but it is easy enough to go to /etc/libvirt/qemu and change the xml file to use the latest sound driver by simply changing one line:

srv:/etc/libvirt/qemu# grep sound Win2k8.xml
sound model='hda'

which gives you the -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 line in the ps output for kvm. Then restarting your windows kvm you get the lovely intel-hda driver and life is happy again!

We needed a functioning high performance virtual machine with more than 2 sockets which drove our windows 2008 selection. We also needed a nice chunk of memory to work on our little basement server without creating a ton of vm sprawl - our totally self inflicted predicament may not reflect your own though ;-)). But maybe this helps folks out there.

So long story short, finally we have our linux box able to route playon tv over to an xbox - simple stuff indeed, but sure took some time trying to hunt all this down! Side benefit of using playon for this is that it also allows streaming of Amazon VOD from a prime account - lots of good stuff there for "free" if you are already a prime customer!

(c) 2018 James Cuff