VM Sound Issues

Z

zxrtestno

Guest
Dear Spirit,

I am very glad to see SPICE Multi monitor support

facing a issue with VM sound, tried the -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 but no sound and unable to start the VM with the below message

kvm: -device intel-hda,id=sound5,bus=pci.0,addr=0x18: PCI: slot 24 function 0 not available for intel-hda, in use by qxl

kvm: -device intel-hda,id=sound5,bus=pci.0,addr=0x18: Device 'intel-hda' could not be initialized

TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -name Win732 -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga qxl -no-hpet -cpu 'kvm64,hv_spinlocks=0xffff,hv_relaxed,+x2apic,+sep' -k en-us -device 'qxl,id=vga1,ram_size=67108864,vram_size=33554432,bus=pci.0,addr=0x18' -spice 'tls-port=61000,addr=127.0.0.1,tls-ciphers=DES-CBC3-SHA,seamless-migration=on' -device 'virtio-serial,id=spice,bus=pci.0,addr=0x9' -chardev 'spicevmc,id=vdagent,name=vdagent' -device 'virtserialport,chardev=vdagent,name=com.redhat.spice.0' -m 2024 -cpuunits 1000 -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' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'file=/dev/cdrom,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.qcow2,if=none,id=drive-ide0,format=qcow2,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,mac=AE:AB:C6:4D:45:95,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code

can you please help me here?

Best Regards,
RV
 
Dear MIlkwerm,

Thanks for the details VM sound issue is resolved now.

also there is a slight lag in audio sync with the video play do you how to solve this?

Best Regards,
RV
 
Dear MIlkwerm,

Thanks for the details VM sound issue is resolved now.

also there is a slight lag in audio sync with the video play do you how to solve this?

Best Regards,
RV

As far as i know there is no solution to this yet. I too having the same issue on all VMs. Regardless of the VM is in Local storage or shared. So it does not seem like it is bandwidth issue but SPICE itself. SPICE came a very long way. I am hoping in near future this will be resolved too.
 
I've found audio sync to be effected by vCPU and overall host server load. try adding a core to the VM or reduce load on the host to improve vCPU time in the VM.

Do you mean to say your Youtube video is actually synced with Audio???? !!!

The thought of underpowered VM had occured to me. So as a test i put a Windows 7 VM with 4 vCPU on a Proxmox node with 8 core and no other VMs. Did not make any difference. Audio was still out of sync. Thus i drew the conclusion that SPICE was causing it.
Please do share how you brought both video and audio in sync!
 
Windows 7 has always been problematic for me. i have managed to sync it, but any time skipping and it goes out. (as a side note, windows media player sucks. use media player classic). I have windows XP playing both youtube and windows media player without issue. as long as host server CPU and disk IO isnt getting hammered.
 
Hi ,

I am running aSpice client in one of my Android device with KitKat 4.4 running and aSpice server on one Ubuntu Server.

I am using gstreamer as playback interface with qemu.

I am playing one set video file into spice server and capturing both audio+video over Ethernet into my Android device using aSpice client.

I have observed that video is streaming fine but not getting any audio at that time which is already there in swf file.

So, anyone has any idea or any clue to debug or solve this type of issue ?

Regards,
Ritesh Prajapati
 
Hi All,

does anyone has any update to debug or solve aSPICE audio sync issue which i mentioned in previous post?

Regards,
Ritesh Prajapati
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!