[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-user
Subject:    Re: audio support in libvirt with qemu/kvm
From:       Christian Ehrhardt <christian.ehrhardt () canonical ! com>
Date:       2021-01-27 8:21:55
Message-ID: CAATJJ0LNj8N8Ez7O5wmK0sNTdnHViPv_U2Fb1jO8QoVCeDLg3Q () mail ! gmail ! com
[Download RAW message or body]

On Tue, Jan 26, 2021 at 4:07 PM Rainer Dorsch <ml@bokomoko.de> wrote:
>
> 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.

If you have - the optional but usually installed - package
qemu-system-gui then qemu is generally able to produce sound.
You said you drive your guest via libvirt, depending on your front end
to this it might just not have a sound device [1] configured.
You can usually add a sound device and select the type it emulates,
something like the following should do it:
  <sound model="ich9">

You can then check these things (in order)
1. is the sound device in the guest seen and initialized?
2. play some continuous sound/music from the guest - is there any error?
3. check hosts pavucontrol if you need to assign the qemu process to a
particular output?


[1]: https://libvirt.org/formatdomain.html#sound-devices

> Any hint or advice is welcome.
>
> Thanks
> Rainer
> --
> Rainer Dorsch
> http://bokomoko.de/
>
>
>
> _______________________________________________
> pkg-qemu-devel mailing list
> pkg-qemu-devel@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-qemu-devel



-- 
Christian Ehrhardt
Staff Engineer, Ubuntu Server
Canonical Ltd

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic