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.

Copy

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

  1. Remove the VM's libvirtd process from apparmor by running the command.
Copy
  1. Open the XML definition of the VM for editing.
Copy
  1. Scroll to the end of the file until you see this line.
Copy

Change it to the following.

Copy
  1. If the VM was in a ShutOff state initially, start the VM from a virsh perspective.
Copy
  1. 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.
Copy

Additional Information

Please see the official AppArmor Documentation for more details on working with this Mandatory Access Control (MAC) mechanism.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard