Comment 13 for bug 591489

Revision history for this message
Samir Ibradžić (sibradzic) wrote : Re: QEMU_AUDIO_DRV set to none by libvirtd in Lucid

Seems like apparmor can be fixed without disabling it, at least in 12.10;

Add these lines to /etc/apparmor.d/abstractions/libvirt-qemu:

  ####
    /{dev,run}/shm/pulse-shm* r,
    /{dev,run}/shm/pulse-shm* rwk,
    /usr/bin/pulseaudio Ux,
    @{HOME}/.pulse/ rwk,
  ####

  /etc/init.d/apparmor restart

Now, one need to fix /etc/libvirt/qemu.conf:

  vnc_allow_host_audio = 1
  user = "yourusernamehere"
  group = "yourusernamehere"

  /etc/init.d/apparmor restart