I want to reopen this. I think there is an apparmor problem. Here is how to reproduce:
I made a new Ubuntu 24.04 desktop to an external drive on my AMD laptop. I did all suggested updates, set up virt-manager and installed hugeadm Then I download the image for the 24.04 server and installed it in a VM, I gave it 2GB ram. Verify that it boots with default memory settings. Using hugeadm, I create 4000 pages of 2MiB pages. Then I edit the XML of the vm as above, including shared memory and <hugepages/> It fails with the same permission error as reported initially. Then I sudo systemctl disable apparmor and restart Now the VM starts fine. Enabling apparmor and restarting results again in a VM that will not start with hugepages. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2073214 Title: hugepages causes permissions error [invalid, page pool too small] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2073214/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs