[ovirt-users] how to debug no audio in guest?
Jakub Niedermertl
jniederm at redhat.com
Thu Aug 25 15:17:13 UTC 2016
Hi Gianluca,
QEMU_AUDIO_DRV=none is most probably the problem. Libvirt is supposed to set "QEMU_AUDIO_DRV" to "spice" for VMs with graphics. Please make sure that the "Optimize for" attribute is set to "Desktop" (in Edit VM dialog) and try to shutdown and start the VM again. If the QEMU process will still have QEMU_AUDIO_DRV=none set, you can try to set the variable in /etc/sysconfig/libvirtd by adding line "QEMU_AUDIO_DRV=spice" and restart the libvirtd service.
Jakub
----- Original Message -----
> From: "Michal Skrivanek" <michal.skrivanek at redhat.com>
> To: "Gianluca Cecchi" <gianluca.cecchi at gmail.com>
> Cc: "users" <users at ovirt.org>
> Sent: Wednesday, August 24, 2016 4:43:43 PM
> Subject: Re: [ovirt-users] how to debug no audio in guest?
>
>
>
>
>
> On 11 Jun 2016, at 05:42, Gianluca Cecchi < gianluca.cecchi at gmail.com >
> wrote:
>
> Hello,
> I'm testing video and audio capacity inside a guest.
> Guest chosen is CentOS 6 with latest updates.
> oVirt is 3.6.6 on an intel NUC6i5SYH with CentOS 7.2 OS
>
> BTW: is it of any importance audio adapter on the host?
> In case lspci on host gives
> 00:1f.3 Audio device: Intel Corporation Device 9d70 (rev 21)
>
> Client connecting from user portal is Fedora 23 on an Asus laptop U36SD where
> audio works and lspci gives
> 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family
> High Definition Audio Controller (rev 05)
>
> On CentOS 6 guest the audio adapter detected by OS with lspci is
> 00:08.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family)
> High Definition Audio Controller (rev 01)
>
> It seems all ok, apart that on guest actually I don't get any audio, also
> from test speakers page ;-)
> Both on guest and on client the volume bar is near the maximum.
>
> Any hints about debugging?
> From host point of view the qemu-kvm command line is this one below
>
> I don't understand the env variable
> QEMU_AUDIO_DRV=none
> ???
>
> If it can be of any importance, I initially configured the guest without
> sound card and in fact in gnome I saw the audio card as "dummy".
> Then I powered off the guest and enabled sound card from user portal edit vm
> (I see it enabled also from admin portal btw...) and then powered on the VM.
> Now the sound card seems to be present but no audio
>
> Sorry for late response:/
> This would be best answered by spice guys I guess
> Latest virt-viewer?
>
>
>
>
>
> Thanks in advance,
> Gianluca
>
> 2016-06-11 09:22:13.698+0000: starting up libvirt version: 1.2.17, package:
> 13.el7_2.4 (CentOS BuildSystem < http://bugs.centos.org >, 2016-03-
> 31-16:56:26, worker1.bsys.centos.org ), qemu version: 2.3.0
> (qemu-kvm-ev-2.3.0-31.el7_2.10.1)
> LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
> QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name c6desktop -S -machine
> pc-i440
> fx-rhel7.2.0,accel=kvm,usb=off -cpu Broadwell-noTSX -m
> size=3145728k,slots=16,maxmem=4294967296k -realtime mlock=off -smp
> 1,maxcpus=16,socket
> s=16,cores=1,threads=1 -numa node,nodeid=0,cpus=0,mem=3072 -uuid
> 68a82ada-a1d2-44d0-85b0-f3a08cc2f579 -smbios type=1,manufacturer=oVirt,produ
> ct=oVirt
> Node,version=7-2.1511.el7.centos.2.10,serial=AC1EDDD3-CAF1-2711-EE16-B8AEED7F1711,uuid=68a82ada-a1d2-44d0-85b0-f3a08cc2f579
> -no-user
> -config -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-c6desktop/monitor.sock,server,nowait
> -mon chardev=charmo
> nitor,id=monitor,mode=control -rtc base=2016-06-11T09:22:13,driftfix=slew
> -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boo
> t menu=on,strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x9.0x7
> -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x
> 9.0x2 -device
> ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x9.0x1 -device
> ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,
> multifunction=on,addr=0x9 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x3
> -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pc
> i.0,addr=0x4 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device
> ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive
> file=/rhev/data-center/00000001-0001-0001-0001-000000000343/572eabe7-15d0-42c2-8fa9-0bd773e22e2e/images/aff55e62-6a41-4f75-bbd3-78561eae18f3/
> f520473e-8fbe-4886-bb64-921b42edf499,if=none,id=drive-virtio-disk0,format=raw,serial=aff55e62-6a41-4f75-bbd3-78561eae18f3,cache=none,werror=s
> top,rerror=stop,aio=threads -device
> virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
> -netdev t
> ap,fd=28,id=hostnet0,vhost=on,vhostfd=29 -device
> virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:16:01:51,bus=pci.0,addr=0x7
> -chardev soc
> ket,id=charserial0,path=/var/run/ovirt-vmconsole-console/68a82ada-a1d2-44d0-85b0-f3a08cc2f579.soc
> k,server,nowait -device isa-serial,chardev=charserial0,id=serial0 -chardev
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/68a82ada-a1d2-44d0-85b0-f3a08cc2f579.com.redhat.rhevm.vdsm,server,nowait
> -device
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm
> -chardev
> socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/68a82ada-a1d2-44d0-85b0-f3a08cc2f579.org.qemu.guest_agent.0,server,nowait
> -device
> virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0
> -chardev spicevmc,id=charchannel2,name=vdagent -device
> virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0
> -spice
> port=5901,tls-port=5902,addr=0,x509-dir=/etc/pki/vdsm/libvirt-spice,seamless-migration=on
> -vnc 0:3,password -device
> qxl-vga,id=video0,ram_size=67108864,vram_size=8388608,vgamem_mb=16,bus=pci.0,addr=0x2
> -device intel-hda,id=sound0,bus=pci.0,addr=0x8 -device
> hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev
> spicevmc,id=charredir0,name=usbredir -device
> usb-redir,chardev=charredir0,id=redir0 -chardev
> spicevmc,id=charredir1,name=usbredir -device
> usb-redir,chardev=charredir1,id=redir1 -chardev
> spicevmc,id=charredir2,name=usbredir -device
> usb-redir,chardev=charredir2,id=redir2 -chardev
> spicevmc,id=charredir3,name=usbredir -device
> usb-redir,chardev=charredir3,id=redir3 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -msg timestamp=on
> 2016-06-11T09:22:13.748410Z qemu-kvm: warning: CPU(s) not present in any NUMA
> nodes: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
> 2016-06-11T09:22:13.748524Z qemu-kvm: warning: All CPU(s) up to maxcpus
> should be described in NUMA config
> main_channel_link: add main channel client
> main_channel_handle_parsed: net test: latency 21.910000 ms, bitrate 51635025
> bps (49.242997 Mbps)
> inputs_connect: inputs channel client create
> red_dispatcher_set_cursor_peer:
> main_channel_handle_parsed: agent start
> main_channel_handle_parsed: agent start
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
More information about the Users
mailing list