Bug 1376510 - No sound when VM is started with both Spice and VNC
Summary: No sound when VM is started with both Spice and VNC
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.1.0-alpha
: ---
Assignee: jniederm
QA Contact: Shira Maximov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-15 15:41 UTC by jniederm
Modified: 2019-02-06 11:46 UTC (History)
7 users (show)

Fixed In Version:
Clone Of: 1371243
: 1672981 (view as bug list)
Environment:
Last Closed: 2017-02-15 14:47:35 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
michal.skrivanek: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 63093 0 None MERGED core: Graphics devices sorted for VM creation 2020-12-13 16:42:00 UTC

Description jniederm 2016-09-15 15:41:20 UTC
+++ This bug was initially created as a clone of Bug #1371243 +++

Description of problem:
When graphics protocol is set to "SPICE + VNC", libvirt stars qemu process with environment variable QEMU_AUDIO_DRV=none which causes that client can't hear the VM. (If graphical protocol is set to "SPICE" only, then libvirt sets QEMU_AUDIO_DRV=spice and audio works fine.)

Version-Release number of selected component (if applicable):
rhevm 3.6.8.1-0.1.el6,
ovirt 4.1.0-0.0.master.20160802171327.gitd8decfe.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. Create a VM with settings: Optimized for=Desktop, Graphics Protocol=SPICE+VNC, check "Soundcard enabled" (Console side-tab)
2. Run the VM
3. Connect to the host the VM is running on and on that host:
4. Check qemu process environment variables (also in /var/log/libvirt/qemu/{vm-name}.log

Actual results:
QEMU_AUDIO_DRV=none and consequently no sound from VM

Expected results:
VM sound is accessible even with graphics protocol set to "SPICE + VNC". 

Additional info:
Origin: http://lists.ovirt.org/pipermail/users/2016-August/042233.html

--- Additional comment from Moran Goldboim on 2016-08-30 08:56:44 CEST ---

is it a regression? do we know from when?

--- Additional comment from Tomas Jelinek on 2016-08-30 09:08:36 CEST ---

I don't think it ever worked. When you use only SPICE or only VNC, the sound works. Than we introduced the feature of SPICE + VNC together and the sound does not work in this case. So it is not really a regression but a bug in the feature.

--- Additional comment from Gianluca Cecchi on 2016-08-30 09:54:44 CEST ---

Confirmed (environment described in the additional info web link of description section) with:


--- Additional comment from Gianluca Cecchi on 2016-08-30 09:55:24 CEST ---

Engine: oVirt 3.6.6.2-1.el7.centos
Host CentOS 7.2 based on 3.6.6 with:
qemu-kvm-ev-2.3.0-31.el7_2.10.1.x86_64
libvirt-daemon-1.2.17-13.el7_2.4.x86_64
vdsm-4.17.28-0.el7.centos.noarch

--- Additional comment from  on 2016-08-30 16:27 CEST ---



--- Additional comment from  on 2016-08-30 16:42 CEST ---



--- Additional comment from  on 2016-08-30 16:44:17 CEST ---

The device is actually present but sound is not transferred over the protocol.

Comment 1 Red Hat Bugzilla Rules Engine 2016-09-15 15:41:32 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 2 jniederm 2016-09-15 15:44:54 UTC
Patch http://gerrit.ovirt.org/63093 provides a workaround that ensures that in case of SPICE+VNC sound will be always available for SPICE.

Comment 3 Sandro Bonazzola 2016-12-12 13:53:33 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 4 Shira Maximov 2016-12-13 13:25:25 UTC
Verified on : 
oVirt Engine Version: 4.1.0-0.0.master.20161120231325.gitba51756.el7.centos

verification steps: 

1. Create a VM with settings: Optimized for=Desktop, Graphics Protocol=SPICE+VNC, check "Soundcard enabled" (Console side-tab)
2. Run the VM
3. Connect to vm via console and play music - WORKED


Note You need to log in before you can comment on or make changes to this bug.