VM Fails to Boot With: 'Unable to find security driver for label apparmor'
Problem
A virtual machine (VM) is unable to boot up with the following fault message.
Environment
- Platform9 Managed OpenStack - v3.6.0 and higher
- AppArmor
- Ubuntu 14.04
Cause
The VMs' libvirtd process is a part of the AppArmor security module.
Resolution
- Remove the VM's libvirtd process from apparmor by running the command.
- Open the XML definition of the VM for editing.
- Scroll to the end of the file until you see this line.
Change it to the following.
- If the VM was in a ShutOff state initially, start the VM from a virsh perspective.
- If you are editing the XML of an already running instance you will have to stop and start VMs for the changes to take effect.
Additional Information
Please see the official AppArmor Documentation for more details on working with this Mandatory Access Control (MAC) mechanism.
Was this page helpful?