Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
VM Fails to Boot With: 'Unable to find security driver for label apparmor'
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
A virtual machine (VM) is unable to boot up with the following fault message.
xxxxxxxxxx{u'message': u'unsupported configuration: Unable to find security driver for label apparmor', u'code': 500}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.
xxxxxxxxxxapparmor_parser -R /etc/apparmor.d/libvirt/libvirt-[__vm-uuid__]- Open the XML definition of the VM for editing.
xxxxxxxxxx$ virsh edit [vm_uuid]- Scroll to the end of the file until you see this line.
xxxxxxxxxx[seclabel type='dynamic' model='apparmor' relabel='yes'/]Change it to the following.
xxxxxxxxxx[seclabel type='none'/]- If the VM was in a ShutOff state initially, start the VM from a virsh perspective.
xxxxxxxxxxvirsh start [__vm_uuid__]- 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.
xxxxxxxxxx$ openstack server stop$ openstack server startAdditional Information
Please see the official AppArmor Documentation for more details on working with this Mandatory Access Control (MAC) mechanism.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message