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
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)...

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1461012

Title:
  Hugepage and KSM not configured correctly under systemd

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to