I'm running a RHEL6 as a development desktop with Fedora 14 (multimedia stuff) and Win XP (corporate email and calendars) running on it as KVM VMs. Everything runs great except for audio pass through. Audio works on the RHEL host. Both VMs see sound cards provided by the VM, but no sound is forthcoming. I have tried adding a PCI audio device from the physical host to the Fedora VM, but then it refuses to boot. I remember reading that physical hardware can only be passed through to VMs if it is not in use on the physical host. Any suggestions on how to get audio pass through happening? How can I get the host to "relinquish" the audio device so that a VM can use it? Thanks Michael Hall IT Communications Officer Alice Springs Town Council mhall at astc.nt.gov.au (08) 8950 0561
Hi, Michael How about trying to set ... user='foobar' group='foobar' ... vnc_allow_host_audio = 1 ... in the "/etc/libvirt/qemu.conf" file. I'm using fedora14 as a KVM host and running Windows XP guest and this solved the sound problem. Please refer to the folloing for details. http://fedoraproject.org/wiki/How_to_debug_Virtualization_problems -- Hisao On 05/10/2011 01:45 PM, Mike Hall wrote:> I'm running a RHEL6 as a development desktop with Fedora 14 (multimedia stuff) and Win XP (corporate email and calendars) running on it as KVM VMs. Everything runs great except for audio pass through. > > Audio works on the RHEL host. Both VMs see sound cards provided by the VM, but no sound is forthcoming. > I have tried adding a PCI audio device from the physical host to the Fedora VM, but then it refuses to boot. > I remember reading that physical hardware can only be passed through to VMs if it is not in use on the physical host. > > Any suggestions on how to get audio pass through happening? > How can I get the host to "relinquish" the audio device so that a VM can use it? > > Thanks > > > Michael Hall > IT Communications Officer > Alice Springs Town Council > mhall at astc.nt.gov.au > (08) 8950 0561 > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >-- ?? ?? ??????????? Linux/UNIX????? Tel:050-3132-7676 (?? 840-27676) E-Mail:hisao.taguchi at uniadex.co.jp
----- Original Message -----> From: "Mike Hall" <MHall at astc.nt.gov.au> > To: libvirt-users at redhat.com > Sent: Tuesday, May 10, 2011 12:45:05 AM > Subject: [libvirt-users] Audio pass through > > I'm running a RHEL6 as a development desktop with Fedora 14 > (multimedia stuff) and Win XP (corporate email and calendars) > running on it as KVM VMs. Everything runs great except for audio > pass through. >If you use Fedora virt-preview[1], or Fedora 15 then you can use SPICE which handles bidirectional audio [1] https://fedoraproject.org/wiki/Virtualization_Preview_Repository> Audio works on the RHEL host. Both VMs see sound cards provided by > the VM, but no sound is forthcoming. > I have tried adding a PCI audio device from the physical host to the > Fedora VM, but then it refuses to boot. > I remember reading that physical hardware can only be passed through > to VMs if it is not in use on the physical host. > > Any suggestions on how to get audio pass through happening? > How can I get the host to "relinquish" the audio device so that a VM > can use it? > > Thanks > > > Michael Hall > IT Communications Officer > Alice Springs Town Council > mhall at astc.nt.gov.au > (08) 8950 0561 > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >