[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1772262] Re: Adding -spice doesn't respect environment
[Qemu-devel] [Bug 1772262] Re: Adding -spice doesn't respect environment variable QEMU_AUDIO_DRV
Tue, 22 May 2018 12:59:38 -0000
** Changed in: qemu
Status: New => Invalid
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
Adding -spice doesn't respect environment variable QEMU_AUDIO_DRV
Status in QEMU:
When -spice is added to the commandline, QEMU_AUDIO_DRV=alsa is not
respected and I receive no audio from the guest using the alsa driver.
When -spice options are omitted, audio works as usual.
I want to channel mouse and keyboard events to the guest using spice
(with looking-glass) instead of a third-party product over a network
interface (with synergy), but audio ends up over the spice protocol as
well instead of using alsa despite asking otherwise. For example, one
will only hear audio when a program like spicy is running. Naturally
it would be nice if this were not needed, since spice audio is gappier
than regular audio on my machine.
Perhaps if -spice added an option similar to agent-mouse=off but for
audio, (say audio-pipe=off or so for example,) this might mitigate the
issue in a more naive fashion UX-wise, without having to force the
issue with environment variables that unfortunately for me don't seem
to work. :(
QEMU emulator version 2.12.0
-cpu host,hv-time,kvm=off \
-smp cores=4 \
-m 8G \
-M q35 \
-vga none \
-netdev tap,id=hostnet,ifname=tap1,script=no,downscript=no \
-net nic,model=virtio,macaddr=52:54:FD:BF:F7:9A,netdev=hostnet \
-netdev user,id=usernet,smb=/media/DRIVE-C/tux/vms/share \
-net nic,model=virtio,macaddr=52:54:2E:40:4F:C8,netdev=usernet \
-device usb-ehci,id=ehci \
-device ich9-intel-hda \
-device hda-micro \
-drive if=virtio,file=vm/win10/disk.img,media=disk \
-boot menu=on,splash=splash/boot.jpg,splash-time=5000 \
-name win10 \
-device ivshmem-plain,memdev=ivshmem \
-device virtio-serial-pci \
-chardev spicevmc,id=spicechannel0,name=vdagent \
When the last four options are not present, audio works as expected.
This is with both a windows 10 guest and a windows 7 guest.
To manage notifications about this bug go to: