

- #Reload vnc connect to kvm guest how to#
- #Reload vnc connect to kvm guest install#
- #Reload vnc connect to kvm guest windows 8.1#
Make discoverable PulseAudio network sound devices available locally.
#Reload vnc connect to kvm guest install#
In ~/.pulse/nf I commented/modified the following lines: enable-shm = yesĪlso I installed paprefs ( apt-get install paprefs) and checked: If someone wants to modify the answer and get rid of the unnecessary steps then please do it.īesides what I said above when using VNC (changing the settings in nf & libvirt-bin and making sure my user was part of the required groups) I also made sure my user was part of the pulse & pulse-access groups. Some of the following steps might not be required in order to make it work, but it did work for me after making them.

Okay, after a lot of trial and error I finally managed to get it working as it should, without any hiccups. my current user) but I don't understand how I can share audio with myself.ĭoes someone know how I can use Pulse so I can share audio with my VM or provide another solution for mixing sound from the guest and host without glitchy audio? I have managed to track down this article for Fedora 12Įxplaining that it is possible to run Pulseaudio as an unprivileged user (aka.
#Reload vnc connect to kvm guest how to#
Every article I found explaining how to enable this suggests running Pulseaudio in system mode which, obviously, is a security issue, but would also make my pulse audio widgets in Plasma5 not work as expected. Unfortunately this is where I stopped finding useful information. Looking at the host processes I noticed that libvirt spawned another Pulseaudio instance under my current user (effectively having 2 Pulseaudio instances) instead of using the instance that was already available.Īfter a bit more Googling I found that pulseaudio can share it's audio with other users if the module-native-protocol-tcp was enabled. Following this bug report I understood that audio can be sent through the regular backends if the VNC client does not support it by changing the user and group the VM runs under to my current user and adding a VNC setting in the /etc/libvirt/nf like so: vnc_allow_host_audio = 1īut also making my user part of the kvm & libvirtd groups and furthermore adding this line in /etc/default/libvirt-bin: export QEMU_AUDIO_DRV=paĭoing this gave me the desired effect and the guest audio would run smoothly but the host audio would not work until I would have closed the guest. I have also tried using VNC instead of Spice but the client does not come with sound support. What I mean by partial is that the sound quality becomes somewhat usable but there are still glitches in the audio as some users also pointed out in the bug reports above. The solution which kind of works for me right now is using Spice for audio, and the ICH6 as setting for the sound card, but because of a known bug in Spice which I could only find reported for Fedora and Red Hat, the audio is pretty bad and the only partial workaround is to put in my VM domain config.
#Reload vnc connect to kvm guest windows 8.1#
For the past days I've been trying to get a 圆4 Windows 8.1 VM's audio mixed with the host audio with mixed success.
