<div dir="ltr">I managed to solve this. You run pulse as the user, with anonymous auth and a unix socket at /tmp/pulse. Then, set PULSE_SERVER=unix:/tmp/pulse in the envvars for the domain xml. Works from there.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 17, 2016 at 11:45 PM, Nick Sarnie <span dir="ltr"><<a href="mailto:commendsarnex@gmail.com" target="_blank">commendsarnex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi guys,<br><br></div>I'm using libvirt and virt-manager for my GPU passthrough setup, with no-root. For the life of me, I can't figure out how to get pulseaudio working. Even though it is running as user, libvirt is trying to look in /root for pulse config files. The VM shows I have an audio device connected, but there is no sound passes through to me on the host. If I use a script with no libvirt, it works fine. If I use libvirt with no gpu passthrough, it works fine. I've pasted the log below. Please let me know if you have any ideas. <br><br></div>Thanks,<br></div>sarnex<br><br><br>Home directory not accessible: Permission denied<br>W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied<br>W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied<br>pulseaudio: pa_context_connect() failed<br>pulseaudio: Reason: Connection refused<br>pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver<br>Home directory not accessible: Permission denied<br>W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied<br>W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied<br>audio: Failed to create voice `ac97.pi'<br>Home directory not accessible: Permission denied<br>W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied<br>W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied<br>ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.1/work/alsa-lib-1.1.1/src/pcm/pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave<br>sdl: SDL_OpenAudio failed<br>sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy<br>ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.1/work/alsa-lib-1.1.1/src/pcm/pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave<br>sdl: SDL_OpenAudio failed<br>sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy<br>audio: Failed to create voice `ac97.po'<br>audio: Failed to create voice `<a href="http://ac97.mc" target="_blank">ac97.mc</a>'<br>audio: Failed to create voice `ac97.pi'<br>ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.1/work/alsa-lib-1.1.1/src/pcm/pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave<br>sdl: SDL_OpenAudio failed<br>sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy<br>ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.1/work/alsa-lib-1.1.1/src/pcm/pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave<br>sdl: SDL_OpenAudio failed<br>sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy<br>audio: Failed to create voice `ac97.po'<br>audio: Failed to create voice `<a href="http://ac97.mc" target="_blank">ac97.mc</a>'<br>2016-04-18T02:27:04.033280Z qemu-system-x86_64: terminating on signal 15 from pid 5395<br>2016-04-18 02:27:05.634+0000: shutting down<br></div>
</blockquote></div><br></div>