Comment 41 for bug 1246929

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

At this point I don't know where the problem lies. When I follow

https://wiki.ubuntu.com/PulseAudio/Log

I don't see any attemps to connect by qemu. (Should I?)

I've disabled seccomp (which I think is disabled by default), allowed all capabilities in the apparmor profile, and checked that /dev/snd/* is allowed by cgroups and the qemu process runs with full capabilities (in /proc/$$/status) as user serge:serge and once as serge:kvm (as a test).

I wrapped qemu in a sh script which runs it under strace -f. The strace output is attached here. Note that the EACCES for opening /dev/shm/pulse* is for files owned by root - the files owned by serge were able to be opened.

I see an attempt to attach to /var/run/dbus/system_bus_socket which seems to succeed.

At this point I don't see why this fails to give me sound, while a manual 'QEMU_AUDIO_DRV=pa kvm -hda x.img -cdrom saucy.iso -m 1024 -vnc :1' succeeds.