Hugepages are now mounted on /dev/hugepages and not in /run/hugepages
And also libvirt wants to use /dev/hugepages and more precisely /dev/hugepages/libvirt/qemu (so without the kvm in the middle of the path)
This means, the apparmor rule for huge pages points to the wrong path. The following change should be made in the profile /etc/apparmor.d/abstractions/libvirt-qemu
remove: owner "/run/hugepages/kvm/libvirt/qemu/**" rw,
add: owner "/dev/hugepages/libvirt/qemu/**" rw,
(reload the profile with service apparmor reload)
I had to create this path with the right owner-rights like this:
mkdir -p /dev/hugepages/libvirt/qemu
chown libvirt-qemu:kvm /dev/hugepages/libvirt/qemu
Now hugepages works again...
Please pay attention to the fact that in /usr/share/qemu/init/qemu-kvm-init the mountpoint /run/hugepages is created and mounted but apparently, this isn't useful any more (to my opinion)...
I've investigated this issue in Willy:
Hugepages are now mounted on /dev/hugepages and not in /run/hugepages
And also libvirt wants to use /dev/hugepages and more precisely /dev/hugepages/ libvirt/ qemu (so without the kvm in the middle of the path)
This means, the apparmor rule for huge pages points to the wrong path. The following change should be made in the profile /etc/apparmor. d/abstractions/ libvirt- qemu /kvm/libvirt/ qemu/** " rw, /libvirt/ qemu/** " rw,
remove: owner "/run/hugepages
add: owner "/dev/hugepages
(reload the profile with service apparmor reload)
I had to create this path with the right owner-rights like this: libvirt/ qemu libvirt/ qemu
mkdir -p /dev/hugepages/
chown libvirt-qemu:kvm /dev/hugepages/
Now hugepages works again...
Please pay attention to the fact that in /usr/share/ qemu/init/ qemu-kvm- init the mountpoint /run/hugepages is created and mounted but apparently, this isn't useful any more (to my opinion)...