Public bug reported:

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.d/usr.sbin.libvirtd
libvirt-daemon-system: /etc/apparmor.d/usr.sbin.libvirtd
$ apt-cache policy libvirt-daemon-system
libvirt-daemon-system:
  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.d/libvirt/TEMPLATE.qemu definitely do exist.

Am I missing something, is this a driver I need to install separately?

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1896937

Title:
  Error with seclabel "apparmor" since upgrading from 18.04 to 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1896937/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to