Error with seclabel "apparmor" since upgrading from 18.04 to 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This configuration seems to no longer work after upgrading a machine from Ubuntu 18.04 to Ubuntu 20.04:
<seclabel type='dynamic' model='apparmor' relabel='yes'/>
When starting a domain with this configuration in the XML definition, the following error appears and the domain fails to start:
error: unsupported configuration: Security driver model 'apparmor' is not available
Is this to be expected? I wouldn't expect this on first glance because the apparmor profiles are still included:
$ dpkg -S /etc/apparmor.
libvirt-
$ apt-cache policy libvirt-
libvirt-
Installed: 6.0.0-0ubuntu8.3
Candidate: 6.0.0-0ubuntu8.3
$ apt-cache policy libvirt-daemon
libvirt-daemon:
Installed: 6.0.0-0ubuntu8.3
Candidate: 6.0.0-0ubuntu8.3
$ apt-cache policy apparmor
apparmor:
Installed: 2.13.3-7ubuntu5.1
Candidate: 2.13.3-7ubuntu5.1
Files like /etc/apparmor.
Am I missing something, is this a driver I need to install separately?
Changed in libvirt (Ubuntu): | |
status: | New → Incomplete |
I've just noticed a "Failed to start Load AppArmor profiles." "See 'systemctl status apparmor.service' for details." error at startup. I suspect it may be related. Will investigate.