[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [vfio-users] Non-root Passthrough Audio with libvirt



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.

On Sun, Apr 17, 2016 at 11:45 PM, Nick Sarnie <commendsarnex gmail com> wrote:
Hi guys,

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.

Thanks,
sarnex


Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
audio: Failed to create voice `ac97.pi'
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
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
sdl: SDL_OpenAudio failed
sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy
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
sdl: SDL_OpenAudio failed
sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy
audio: Failed to create voice `ac97.po'
audio: Failed to create voice `ac97.mc'
audio: Failed to create voice `ac97.pi'
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
sdl: SDL_OpenAudio failed
sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy
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
sdl: SDL_OpenAudio failed
sdl: Reason: ALSA: Couldn't open audio device: Device or resource busy
audio: Failed to create voice `ac97.po'
audio: Failed to create voice `ac97.mc'
2016-04-18T02:27:04.033280Z qemu-system-x86_64: terminating on signal 15 from pid 5395
2016-04-18 02:27:05.634+0000: shutting down


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]