Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #231056

Re: audio support in libvirt with qemu/kvm

From Linux-Fan <Ma_Sys.ma@web.de>
Newsgroups linux.debian.user
Subject Re: audio support in libvirt with qemu/kvm
Date 2021-01-24 23:10 +0100
Message-ID <BAVK1-8q4-3@gated-at.bofh.it> (permalink)
References <BAVAm-86q-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Rainer Dorsch writes:

> Hi,
>
> I created a virtual machine using libvirt with qemu/kvm. To make it simple, I
> installed a Debian 10 guest on a Debian 10 host. I am wondering, if it is
> possible to access (pulse-)audio from the guest.
>
> Any hint or advice is welcome.

For me it works out of the box in the way that I can hear sound played  
inside the VM and the VM can record from the microphone attached to the PC.  

In virt-manager it appears as "Sound ich9" device added to the respective  
VMs. Host and guest both use Pulseaudio. In case you do not use GUI, it  
might be enough to add the following device in the VM's XML:

    <sound model='ich9'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> 
    </sound>

I do not know if it can be made to work in a way that just a single pulse  
audio server is running -- in my configuration, the guest and host both have  
their respective pulse audio instances although the sound itself passes from  
the one to the other wihtout explicit configuration :)

HTH
Linux-Fan

öö

[...]

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

audio support in libvirt with qemu/kvm Rainer Dorsch <ml@bokomoko.de> - 2021-01-24 23:00 +0100
  Re: audio support in libvirt with qemu/kvm Linux-Fan <Ma_Sys.ma@web.de> - 2021-01-24 23:10 +0100
    Re: audio support in libvirt with qemu/kvm Rainer Dorsch <ml@bokomoko.de> - 2021-01-25 12:50 +0100
      Re: audio support in libvirt with qemu/kvm Linux-Fan <Ma_Sys.ma@web.de> - 2021-01-25 13:30 +0100
        Re: audio support in libvirt with qemu/kvm Rainer Dorsch <ml@bokomoko.de> - 2021-01-25 20:50 +0100
  Re: audio support in libvirt with qemu/kvm Christian Ehrhardt <christian.ehrhardt@canonical.com> - 2021-01-27 09:40 +0100

csiph-web