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?
Live Migration Failure With Error "Unable to find security driver for model apparmor"
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
The live migration of an instance is failing with the following error observed in the /var/log/pf9/ostackhost.log.
ERROR nova.virt.libvirt.driver [...] [instance: 927bc3fc-d4da-4bd3-b871-9f125f478fd0] Live Migration failure: unsupported configuration: Unable to find security driver for model apparmor: libvirt.libvirtError: unsupported configuration: Unable to find security driver for model apparmorEnvironment
- Platform9 Managed OpenStack - All versions.
- Nova
- Libvirt
- AppArmor
Cause
The live migration is failing because the libvirt profile was not loaded in AppArmor.
Resolution
- Run the following command to check if the libvirt__profile is loaded in AppArmor.
xxxxxxxxxx$ sudo aa-statusapparmor module is loaded.0 profiles are loaded.0 profiles are in enforce mode.0 profiles are in complain mode.0 processes have profiles defined.0 processes are in enforce mode.0 processes are in complain mode.0 processes are unconfined but have a profile defined.- Run the following commands to add the libvirt profiles to AppArmor.
xxxxxxxxxx# sudo aa-complain /etc/apparmor.d/usr.sbin.libvirtd# sudo aa-enforce /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper- Restart the libvirtd service.
xxxxxxxxxx# service libvirtd restartVariableType 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?
Next to read:
Wrong Gateway IP Specified for External Neutron NetworkDiscard 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