Comment 32 for bug 799997

Revision history for this message
Jamie Strandboge (jdstrand) wrote : Re: error happen when using virsh to start a vm " internal error cannot generate AppArmor profile"

Due to the way libvirt handles logging, this error message could be many things and is unfortunately quite generic. For people having this problem, can you post your domain xml for the affected VM and any apparmor denials from /var/log/kern.log?

As a workaround, people don't need to 'rip out apparmor', they can simply disable the apparmor profile for libvirtd (note that apparmor is protecting a lot of different things on a typical system, so it is best to disable just the profile that is having the problem). Eg:
$ sudo aa-disable /etc/apparmor.d/usr.sbin.libvirtd

Then stop and start libvirtd.