Comment 41 for bug 799997

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

Yep, I've struck the original bug.

Create a basic qemu VM, which runs fine....

qemu-img create -f qcow2 /VMs/p2.img 4G

Feed it some CD ROM to install

qemu -cdrom /VMs/Downloads/some.iso -m 512 -boot d /VMs/p2.img

Then start it normally without a cd

qemu -m 512 -boot d /VMs/p2.img

Put the args above in a file and create a domain xml file from arguments....

virsh domxml-from-native qemu-argv p2.args > p2.xml
  (d-f-n creates valid xml, but are all the parameters correct?)

Suck the xml in

virsh define p2.xml

Start the vm

Get the original error above.

virsh # version
Compiled against library: libvirt 1.0.2
Using library: libvirt 1.0.2
Using API: QEMU 1.0.2
Running hypervisor: QEMU 1.4.0