[SOLVED] cannot load AppArmor profile

  • Hello,

    I've installed and configured without any problem KVM plugin.

    After an update and a reboot, now the VM doesn't start:

    Code
    500 - Internal Server Error
    Unable to - poweroninternal error: cannot load AppArmor profile 'libvirt-f4b3ff86-bced-4b36-a912-033b5156b152'

    Into /etc/apparmor.d/libvirt/ i've this files:

    Code
    -rw-r--r--  1 root root  293  3 ago 08.03 libvirt-3573a5ef-13ff-46cf-98a2-4e07f017e20b
    -rw-r--r--  1 root root  585  3 ago 08.22 libvirt-3573a5ef-13ff-46cf-98a2-4e07f017e20b.files
    -rw-r--r--  1 root root  293  5 ago 07.13 libvirt-9a69edf1-7ed0-4667-85e9-075a92d0eef9
    -rw-r--r--  1 root root  679  5 ago 08.03 libvirt-9a69edf1-7ed0-4667-85e9-075a92d0eef9.files
    -rw-r--r--  1 root root  293  3 ago 08.23 libvirt-f9447079-7e98-49ff-a833-69cd615a4c36
    -rw-r--r--  1 root root  342 16 gen  2023 TEMPLATE.lxc
    -rw-r--r--  1 root root  192 16 gen  2023 TEMPLATE.qemu

    I never used apparmor but searching on google the solution seems to be "disable apparmor into configuration" for this vm.

    With command virsh edit HA, I've tried to insert the directive

    Code
    <security>
      <apparmor>
        <mode>disable</mode>
      </apparmor>
    </security>

    after <features>...</features> but virsh return an error

    Code
    error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
    Element domain has extra content: security
    
    Failed. Try again? [y,n,i,f,?]:

    Any idea?

  • aa-complain libvirt-f4b3ff86-bced-4b36-a912-033b5156b152

    Code
    Can't find libvirt-f4b3ff86-bced-4b36-a912-033b5156b152 in the system path list. If the name of the application
    is correct, please run 'which libvirt-f4b3ff86-bced-4b36-a912-033b5156b152' as a user with correct PATH
    environment set up in order to find the fully-qualified path and
    use the full path as parameter.

    find / -iname "*f4b3ff86-bced-4b36-a912-033b5156b152*"

    Code
    find: ‘/proc/368232/task/368232/net’: Argomento non valido
    find: ‘/proc/368232/net’: Argomento non valido

    I don't understand the error message

    Code
    cannot load AppArmor profile 'libvirt-f4b3ff86-bced-4b36-a912-033b5156b152'


    aa-status return

  • luke-ws

    Changed the title of the thread from “cannot load AppArmor profile” to “[SOLVED] cannot load AppArmor profile”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!