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
no sound output
works with virt-viewer 5/6/7
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
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
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.
This also happens to me under virt-viewer-8.0-3.fc31.x86_64.
No sound. The viewer build into virt-manager does have sound with the same VM.
(In reply to Allen Smith from comment #4)
> This also happens to me under virt-viewer-8.0-3.fc31.x86_64.
> No sound. The viewer build into virt-manager does have sound with the same
I was able to get this working by doing something like:
virt-viewer -c qemu:///system win10
when my user is in libvirt group, so just perm/user error in my case.
I had the problem with ProxMox: neither my Kubuntu, nor my Windows 7 VM had sound with v8 of virt-viewer.
When I uninstalled v8, and installed v7 (per suggestions at this site: https://forum.proxmox.com/threads/spice-connection-audio-problem.52830/) I then had sound for both VMs
Yes, I had the same problem where the sound would only play the first time. I'm remoting in from Windows 10 to an Arch Linux guest.
I downgraded from virt-viewer 8.0-256 to 7.0-256 and the problem was fixed.
Hopefully, this gets fixed soon. Thanks!
I have the exact same problem.
I found a way arround it.
First I use teh VM without the sound to the point were I need the sound. I make sure the sound is playing, then I close remote viewer.
And when I reconnect to the VM the sound is playing and keeps playing. If the sound stop (end of a music or exemple) I can't get it back.
Closing this bug, since we're going to continue the discussion in the new upstream issue tracker at: https://gitlab.com/virt-viewer/virt-viewer/-/issues/2