qemu spice disabled by apparmor.

Bug #913023 reported by Peter Silva
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

trying to get sound working for vm's under precise. Precise seems to have all the pieces needed for SPICE protocol, which looks to be an improvement. so to get it working:

virsh edit w7vm1-netflix
to edit my windows 7 image, to change the binary invoked from qemu-system-x86_64 to qemu-system-x86_64-spice
but then when I started the vm up with virt-manager, I got a dialog like so:

Error starting domain: internal error Process exited while reading console log output: libvir: error : cannot execute binary /usr/bin/kvm-spice: Permission denied

after reading /var/log/syslog... I went into /etc/apparmor.d/abstractions/libvirt-bin to add entries for spice support. (patch attached.)

I now have sound in my vm guests!

Tags: patch

Related branches

Revision history for this message
Peter Silva (peter-bsqt) wrote :
Revision history for this message
Peter Silva (peter-bsqt) wrote :

oh crap, I think the patch is backwards... you get the idea...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix to apport config for libvirt to get sound on spice guests." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 913023] Re: qemu spice disabled by apparmor.

Quoting Peter Silva (<email address hidden>):
> oh crap, I think the patch is backwards... you get the idea...

Thanks, Peter, I'll take a look and push this next week!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.9.7-2ubuntu10

---------------
libvirt (0.9.7-2ubuntu10) precise; urgency=low

  * debian/control: move (cgroup-lite | cgroup-bin) from Suggests to Depends.
    Libvirt-lxc is broken without it.
  * apparmor/usr.lib.libvirt.virt-aa-helper: add 'deny /dev/dm-*' to silence
    warnings about lvm backing stores (LP: #912007)
  [ Peter Silva ]
  * apparmor/libvirt-qemu: add rules to enable spice audio
    (LP: #913023)
 -- Serge Hallyn <email address hidden> Mon, 09 Jan 2012 10:15:57 +0100

Changed in libvirt (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.