Apparmor deny when trying to use hugetlbfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Low
|
Serge Hallyn |
Bug Description
When starting a VM with hugepages support, I get an apparmor deny message and the VM starts with normal pages.
dmesg shows:
[ 449.428584] type=1400 audit(128528244
# lsb_release -rd
Description: Ubuntu maverick (development branch)
Release: 10.10
To reproduce, I did this:
echo "hugetlbfs /dev/hugepages hugetlbfs defaults 0 0" >> /etc/fstab
echo "vm.nr_hugepages = 1024" >> /etc/sysctl.conf
WARNING: this will use 2G of RAM. Don't try to apply sysctl settings on a running system...
Added to my domain xml (somewhere under the domain tag):
<memoryBacking>
Then rebooted and tried to start the domain.
tags: | added: apparmor |
Changed in libvirt (Ubuntu): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
status: | Triaged → In Progress |
Can you add this to /etc/apparmor. d/abstractions/ libvirt- qemu: libvirt/ qemu/* w,
owner /dev/hugepages/
and try again?