Comment 25 for bug 799997

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : Re: error happen when using virsh to start a vm " internal error cannot generate AppArmor profile"

This is happening to me on precise. I try to create a virtual machine in virt-manager, customize the configuration, click Begin Installation, then the error pops up:

Unable to complete install: 'internal error cannot load AppArmor profile 'libvirt-f0986b73-5557-62bb-1f46-261d044dec4e''

where that uuid is not in /etc/apparmor.d/libvirt/. I tried creating the libvirt-*{,.files} in that directory, but the vm creation appears to generate a new uuid each time.

Unable to complete install: 'internal error cannot load AppArmor profile 'libvirt-f0986b73-5557-62bb-1f46-261d044dec4e''

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1909, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1236, in start_install
    noboot)
  File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1304, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2166, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error cannot load AppArmor profile 'libvirt-f0986b73-5557-62bb-1f46-261d044dec4e'