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


Groups > linux.debian.user > #231201

Re: audio support in libvirt with qemu/kvm

From Christian Ehrhardt <christian.ehrhardt@canonical.com>
Newsgroups linux.debian.user
Subject Re: audio support in libvirt with qemu/kvm
Date 2021-01-27 09:40 +0100
Message-ID <BBOwO-2mG-13@gated-at.bofh.it> (permalink)
References <BAVAm-86q-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous 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