Qemu with GlusterFS Libgfapi access to VM storage does not work in Ubuntu Xenial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using my own Qemu packages ( https:/
I used this in Ubuntu Trusty (14.04) for quite a long time without problems. I only had to add the following lines to "/etc/apparmor.
# for glusterfs
/proc/sys/
/usr/lib/
/tmp/** rw,
After updating one of my KVM/Qemu hosts to Ubuntu Xenial (16.04) it stopped working. I'm not able to migrate or start VMs on this host. If i try i get the following error from libvirt log:
Fehler: Interner Fehler: early end of file from monitor, possible problem: [2016-06-23 08:50:20.431986] E [MSGID: 104007] [glfs-mgmt.
[2016-06-23 08:50:20.432110] E [MSGID: 104024] [glfs-mgmt.
2016-06-
To find the problem i installed auditd and watched the logs with "tail -f /var/log/
type=VIRT_RESOURCE msg=audit(
My first idea was to add the follwoing line to "/etc/apparmor.
/sys/fs/
After this i found the following line in audit.log when trying to migrate:
type=AVC msg=audit(
I'm not sure what to do now because "/etc/apparmor.
change_profile -> @{LIBVIRT}
I also tried to set "/usr/lib/
What infos can i provide to get the problem solved?
tags: | added: glusterfs kvm libgfapi |
tags: | added: libvirt |
description: | updated |
I believe the info="label not found" portion of the log means that the profile for that specific VM isn't loaded into the kernel. Check /sys/kernel/ security/ apparmor/ profiles on both the source and destination machines to make sure that the VM-specific profile is loaded on both.
THanks