How to express memfd_create usage for anonymous files for huge pages correctly in apparmor?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Today I upgraded from 22.04 to 24.04
10.0.0-2ubuntu8.2
I have a VM with 16GB of hugepages allocated to it.
This no longer works.
I can not defeat the virtual machine start up error (from virtual manager):
Error starting domain: internal error: QEMU unexpectedly closed the monitor (vm='ubuntu24.04'): 2024-07-
Traceback (most recent call last):
File "/usr/share/
callback(
File "/usr/share/
callback(*args, **kwargs)
File "/usr/share/
ret = fn(self, *args, **kwargs)
File "/usr/share/
self.
File "/usr/lib/
raise libvirtError(
libvirt.
I have done this:
sudo aa-complain /etc/apparmor.
sudo aa-complain /etc/apparmor.
While I did not have to take any such steps with 22.04, I have mounted
sudo mount -t hugetlbfs -o mode=1770,gid=kvm none /dev/hugepages
and these permissions are observed:
root@black:
drwxrwx--t 3 root kvm 0 Jul 16 14:47 /dev/hugepages
root@black:
uid=64055(
I have edited /etc/libvirt/
log entries don't add anything (for me):
2024-07-
2024-07-16 04:54:51.477+0000: shutting down, reason=failed
kernel stuff:
# cat /proc/cmdline
BOOT_IMAGE=
summary: |
- hugespages causes permissions error + hugepages causes permissions error |
description: | updated |
description: | updated |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → Invalid |
summary: |
- hugepages causes permissions error + hugepages causes permissions error [invalid, page pool too small] |
Changed in libvirt (Ubuntu): | |
status: | Invalid → New |
When I reboot I see a directory libvirt and then libvert/qemu
tim@black: /dev/hugepages$ tree -pug
[drwxrwx--t root hugetlb ] .
└── [drwxr-xr-x root root ] libvirt
└── [drwxr-xr-x root root ] qemu
3 directories, 0 files