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