Bug 1707260 - virt-viewer 8 windows has no sound
Summary: virt-viewer 8 windows has no sound
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-viewer
Version: unspecified
Hardware: x86_64
OS: Windows
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2019-05-07 07:32 UTC by Dominik Csapak
Modified: 2019-11-16 12:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Dominik Csapak 2019-05-07 07:32:01 UTC
Description of problem:

virt-viewer 8.0 has no sound

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. start qemu (current master & 3.0.1) vm with spice and audio hardware, e.g. :

qemu-system-x86_64 -device 'qxl-vga,id=vga' -spice 'port=61000,disable-ticketing' -device 'virtio-serial,id=spice' -chardev 'spicevmc,id=vdagent,name=vdagent' -device 'virtserialport,chardev=vdagent,name=com.redhat.spice.0' -device 'AC97' -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide2,id=ide0,bootindex=100' -drive 'file=/tmp/Fedora-Workstation-Live-x86_64-29-1.2.iso,if=none,id=drive-ide2,media=cdrom' -m 2048 -smp sockets=1,cores=4 --enable-kvm

2. start virt-viewer 8.0 on windows and connect

Actual results:

no sound output

Expected results:

working sound

Additional info:

works with virt-viewer 5/6/7

Comment 1 Dominik Csapak 2019-05-07 08:12:55 UTC
a small update:

it seems to work when there is audio when the connection starts, but there is no sound when either:

no audio is running during connect
when there is about ~5-6 silence

Comment 2 aab 2019-10-29 15:28:59 UTC
I would agree there is a bug issue with virt-viewer-x64-8.0.

My environment Proxmox-ve: 6.0-2 (running kernel: 5.0.15-1-pve) as the host.
Window 7x64 guest running spice and using the code below added to my 000.conf file:

args: -device intel-hda,id=sound5,bus=pci.0,addr=0x18 -device hda-micro,id=sound5-codec0,bus=sound5.0,cad=0 -device hda-duplex,id=sound5-codec1,bus=sound5.0,cad=1

The workstation I'm using to remote connect to my guest is Windows 10x64 (1809). With virt-viewer-x64-8.0 the Windows start up sound would be audible when the guest vm started, but nothing after. I uninstalled version 8.0, downloaded and installed virt-viewer-x64-7.0. Sound is now working consistently.

My original post: https://forum.proxmox.com/threads/spice-connection-audio-problem.52830/#post-274348

Comment 3 WM 2019-11-16 12:03:01 UTC
I have the same audio problem with proxmox - virt-viewer setup

1st time starting an audio source it is OK. Stopping audio source and starting it the 2nd time there is no audio.

Setup proxmox 6.0-11 , virt viewer 8.0-256.

I tried all options for sound devices : intel-hda, ich9-intel-hda, AC97  all give the same problem.
Same problem with both W10 VM and Linux Mint VM

Proxmox server has no audio device itself.

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