<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 25, 2016 at 5:17 PM, Jakub Niedermertl <span dir="ltr"><<a href="mailto:jniederm@redhat.com" target="_blank">jniederm@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Gianluca,<br>
<br>
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.<br>
<br>
Jakub<br></blockquote></div><br></div><div class="gmail_extra">So, some revamping of information as some time has passed and new guests have been nstalled on the same system:<br><br></div><div class="gmail_extra">Engine version (self hosted) : <span class="">oVirt Engine Version: 3.6.6.2-1.el7.centos<br><br></span></div><div class="gmail_extra"><span class="">Host OS : CentOS 7.2 with kernel 3.10.0-327.18.2.el7.x86_64<br></span></div><div class="gmail_extra"><span class=""><br>Host oVirt version is 3.6.6 as in ovirt-release36-3.6.6-1.noarch<br></span></div><div class="gmail_extra"><span class=""><br>Host libvirt/vdsmd components:<br>[g.cecchi@ovirt01 ~]$ rpm -qa|grep -E "libvirt|vdsm"<br>libvirt-daemon-driver-network-1.2.17-13.el7_2.4.x86_64<br>libvirt-python-1.2.17-2.el7.x86_64<br>vdsm-cli-4.17.28-0.el7.centos.noarch<br>libvirt-lock-sanlock-1.2.17-13.el7_2.4.x86_64<br>libvirt-daemon-driver-secret-1.2.17-13.el7_2.4.x86_64<br>libvirt-daemon-config-network-1.2.17-13.el7_2.4.x86_64<br>vdsm-xmlrpc-4.17.28-0.el7.centos.noarch<br>libvirt-glib-0.1.9-1.el7.x86_64<br>libvirt-daemon-driver-qemu-1.2.17-13.el7_2.4.x86_64<br>libvirt-daemon-kvm-1.2.17-13.el7_2.4.x86_64<br>libvirt-client-1.2.17-13.el7_2.4.x86_64<br>vdsm-hook-vmfex-dev-4.17.28-0.el7.centos.noarch<br>libvirt-daemon-driver-storage-1.2.17-13.el7_2.4.x86_64<br>vdsm-infra-4.17.28-0.el7.centos.noarch<br>vdsm-jsonrpc-4.17.28-0.el7.centos.noarch<br>libvirt-daemon-config-nwfilter-1.2.17-13.el7_2.4.x86_64<br>vdsm-python-4.17.28-0.el7.centos.noarch<br>libvirt-gobject-0.1.9-1.el7.x86_64<br>libvirt-daemon-driver-interface-1.2.17-13.el7_2.4.x86_64<br>vdsm-yajsonrpc-4.17.28-0.el7.centos.noarch<br>libvirt-daemon-driver-nodedev-1.2.17-13.el7_2.4.x86_64<br>libvirt-gconfig-0.1.9-1.el7.x86_64<br>libvirt-daemon-driver-nwfilter-1.2.17-13.el7_2.4.x86_64<br>vdsm-4.17.28-0.el7.centos.noarch<br>libvirt-daemon-1.2.17-13.el7_2.4.x86_64<br><br></span></div><div class="gmail_extra"><span class="">Host hw : </span><span class="im">intel NUC6i5SYH<br><br></span></div><div class="gmail_extra"><span class="im">Client is Fedora 23 with virt-viewer-3.0-1.fc23.x86_64 <br></span></div><span class="im"></span><br><span class="im"></span><div class="gmail_extra"><div class="gmail_extra"><span class="im">With a Fedora 24 guest accessed using firefox, user portal and remote-viewer, sounds are ok (test speakers).<br></span></div><div class="gmail_extra"><span class="im"></span></div><span class="im">The Fedora 24 guest is configured as "Optimized for Desktop", in its console options, advanced parameters, I have "soundcard enabled" </span><span class="im"><br><br></span></div><div class="gmail_extra"><span class="im">And in web admin portal I see this line in f24 VM bottom pane, label "Vm devices":<br><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvU0tQZTNBVmZVcTg/view?usp=sharing">https://drive.google.com/file/d/0BwoPbcrMv8mvU0tQZTNBVmZVcTg/view?usp=sharing</a><br><br></span></div><div class="gmail_extra"><span class="im">Also for a CentOS 7.2 guest, with same config, sound is ok (test speakers)<br></span></div><div class="gmail_extra"><span class="im">Instead for a CentOS 6.8 guest with same config I see the device inside the OS, but no sound:<br></span></div><div class="gmail_extra"><span class="im"><br><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvbHRLSDBueVZObTA/view?usp=sharing">https://drive.google.com/file/d/0BwoPbcrMv8mvbHRLSDBueVZObTA/view?usp=sharing</a><br></span><br>In CentOS 6.8 the audio device is seen as:<br>00:08.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)<br><br>and it seems the same in CentOS 7.2 guest OS:<br>00:08.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)<br><br></div><div class="gmail_extra">Under /var/log/libvirt/qemu of host I indeed see<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">C6 c6desktop.log:<br><br>2016-08-25 23:00:37.668+0000: starting up libvirt version: 1.2.17, package: 13.el7_2.4 (CentOS Build<br>System <<a href="http://bugs.centos.org">http://bugs.centos.org</a>>, 2016-03-31-16:56:26, <a href="http://worker1.bsys.centos.org">worker1.bsys.centos.org</a>), qemu version: 2.3.0 <br>(qemu-kvm-ev-2.3.0-31.el7_2.10.1)<br>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qem<br>u-kvm -name c6desktop ...<br></div><div class="gmail_extra"><br>C7 c7desktop.log :<br><br>2016-08-25 22:59:02.531+0000: starting up libvirt version: 1.2.17, package: 13.el7_2.4 (CentOS Build<br>System <<a href="http://bugs.centos.org">http://bugs.centos.org</a>>, 2016-03-31-16:56:26, <a href="http://worker1.bsys.centos.org">worker1.bsys.centos.org</a>), qemu version: 2.3.0 <br>(qemu-kvm-ev-2.3.0-31.el7_2.10.1)<br>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=spice /usr/libexec/qe<br>mu-kvm -name c7desktop ...<br><br></div><div class="gmail_extra">Apparently all is the same in qemu-kvm command lines, comparing c6 with c7 one, but I don't understand who drives instead the QEMU_AUDIO_DRV=XXX in log file that is different between the two guests (none vs spice) and btw also in f24 it is spice:<br><br>2016-07-31 23:00:44.778+0000: starting up libvirt version: 1.2.17, package: 13.el7_2.4 (CentOS Build<br>System <<a href="http://bugs.centos.org">http://bugs.centos.org</a>>, 2016-03-31-16:56:26, <a href="http://worker1.bsys.centos.org">worker1.bsys.centos.org</a>), qemu version: 2.3.0 <br>(qemu-kvm-ev-2.3.0-31.el7_2.10.1)<br>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=spice /usr/libexec/qe<br>mu-kvm -name f24 ...<br><br></div><div class="gmail_extra">Could it be that initially c6 was created as optimized for server and then even if changing it to optimized for desktop, it doesn't get actually some parts of the change?<br><br></div><div class="gmail_extra">Or something related to ich6 drivers in CentOS 6?<br><br></div><div class="gmail_extra">In messages of C6 guest I see:<br>Aug 26 01:00:58 localhost kernel: snd_hda_intel 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10<br>Aug 26 01:00:58 localhost kernel: sr 1:0:0:0: Attached scsi generic sg0 type 5<br>Aug 26 01:00:58 localhost kernel: sound hdaudioC0D0: autoconfig for ID 22: line_outs=1 (0x3/0x0/0x0/0x0/0x0) type:line<br>Aug 26 01:00:58 localhost kernel: sound hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)<br>Aug 26 01:00:58 localhost kernel: sound hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)<br>Aug 26 01:00:58 localhost kernel: sound hdaudioC0D0: mono: mono_out=0x0<br>Aug 26 01:00:58 localhost kernel: sound hdaudioC0D0: inputs:<br>Aug 26 01:00:58 localhost kernel: sound hdaudioC0D0: Line=0x5<br><br></div><div class="gmail_extra">and related to kernel modules:<br>[g.cecchi@localhost ~]$ sudo lsmod | grep snd<br>snd_hda_codec_generic 64356 1 <br>snd_hda_intel 56602 1 <br>snd_hda_codec 144814 2 snd_hda_codec_generic,snd_hda_intel<br>snd_hwdep 6972 1 snd_hda_codec<br>snd_seq 60769 0 <br>snd_seq_device 7277 1 snd_seq<br>snd_pcm 93697 2 snd_hda_intel,snd_hda_codec<br>snd_timer 22747 2 snd_seq,snd_pcm<br>snd 73783 10 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer<br>soundcore 7958 2 snd_hda_codec,snd<br>snd_page_alloc 8856 2 snd_hda_intel,snd_pcm<br><br><br></div><div class="gmail_extra">In dmesg for C7 guest (messages is less verbose):<br>[ 3.406940] snd_hda_intel 0000:00:08.0: irq 35 for MSI/MSI-X<br>[ 3.451694] snd_hda_codec_generic hdaudioC0D0: autoconfig for ID 22: line_outs=1 (0x3/0x0/0x0/0x0/0x0) type:line<br>[ 3.451697] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)<br>[ 3.451699] snd_hda_codec_generic hdaudioC0D0: hp_outs=0 (0x0/0x0/0x0/0x0/0x0)<br>[ 3.451700] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0<br>[ 3.451701] snd_hda_codec_generic hdaudioC0D0: inputs:<br>[ 3.451703] snd_hda_codec_generic hdaudioC0D0: Line=0x5<br><br>and related to kernel modules:<br><br>[g.cecchi@c7plone ~]$ sudo lsmod|grep snd<br>snd_hda_codec_generic 74126 1 <br>snd_hda_intel 35779 4 <br>snd_hda_codec 137386 2 snd_hda_codec_generic,snd_hda_intel<br>snd_hda_core 57760 3 snd_hda_codec_generic,snd_hda_codec,snd_hda_intel<br>snd_hwdep 13608 1 snd_hda_codec<br>snd_seq 66691 0 <br>snd_seq_device 14356 1 snd_seq<br>snd_pcm 105835 3 snd_hda_codec,snd_hda_intel,snd_hda_core<br>snd_timer 29639 2 snd_pcm,snd_seq<br>snd 83425 16 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device<br>soundcore 15047 1 snd<br><br></div><div class="gmail_extra">Thanks in advance<br><br></div><div class="gmail_extra">Gianluca<br><br></div></div>