Public bug reported: Libvirt doesn't update the VM's apparmor file when creating a external snapshot of a host with miltiple disks. It result in failing to create the snapshot.
There is also a Red Hat Bugzilla bug: https://bugzilla.redhat.com/show_bug.cgi?id=1746684# root@CmsrvVH3:~# virsh -c qemu+ssh://root@CmsrvVH2/system snapshot-create-as CmsrvLAP2 --name onderhoudscript --disk-only --atomic --no-metadata --diskspec vda,file=/srv/poolVMS/CmsrvLAP2.onderhoudscript --diskspec vdb,file=/srv/poolVMS/CmsrvLAP2-SWAP.onderhoudscript --quiesce fout: internal error: unable to execute QEMU command 'transaction': Could not create file: Permission denied when I edit the apparmor profile of the guest and add this line: "/srv/poolVMS/CmsrvLAP2*" rwk, All works fine. I can clearly see that libvirt doesn't add the line on the /etc/apparmor.d/libvirt/libvirt-[UUID].files Also on guest with only one disk, everything works fine. Some extra info: root@CmsrvVH2:~# libvirtd --version libvirtd (libvirt) 5.4.0 root@CmsrvVH2:~# cat /etc/*release* DISTRIB_ID=Ubuntu DISTRIB_RELEASE=19.10 DISTRIB_CODENAME=eoan DISTRIB_DESCRIPTION="Ubuntu Eoan Ermine (development branch)" ... ** Affects: libvirt (Ubuntu) Importance: Undecided Status: New ** Tags: apparmor -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1845506 Title: Libvirt snapshot doesn't update apparmor profile To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1845506/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs