[Bug 490370] Re: Cannot start guest when apparmor is running

Jacob Smith jsmith at argotecinc.com
Mon Nov 30 20:19:09 GMT 2009


Whoops that isn't correct - thats not where my XML resides.  And I
figured out what it is.

I was trying to get auto-connect USB recognition to work (back when it
was 9.04) and the instructions here (http://david.wragg.org/blog/2009/03
/usb-pass-through-with-libvirt-and-kvm.html) said to make this script
up:

$ cat /etc/libvirt/qemu/kvm

#!/bin/sh
exec /usr/bin/kvm `echo $* | sed 's|-usbdevice host:\([^ ]*\)|-usbdevice host:auto:*.*:\1|g'`

and (direct quote from afore mentioned website)

"Save the script as /etc/libvirt/qemu/qemu-kvm, and make it executable.
With that in place, you need to tell libvirt to use it instead of the
real KVM binary. Do that by editing the VM XML description as described
in my previous post. You need to edit the //domain/devices/emulator
entry to refer to the wrapper script, e.g.

<domain type='kvm'>
  <name>windowsxp</name>
  …
  <devices>
    <emulator>/etc/libvirt/qemu/qemu-kvm</emulator>
    …
  </devices>
</domain>

Restart the relevant VMs, and USB pass-through with autoconnect should
now work."

So now I realize it's not a bug really... now to figure out whether or
not I really need the wrapper at all...

Sorry to have filed this without finding out it was my customization in
the first place!

-- 
Cannot start guest when apparmor is running
https://bugs.launchpad.net/bugs/490370
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.



More information about the Ubuntu-server-bugs mailing list