libvirt apparmor profile is preventing libvirt from running eucalyptus VMs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Jamie Strandboge |
Bug Description
On the eucalyptus NC, when we try to start a VM, the process is unable to do so with the following error being thrown by libvirt (reported in nc.log):
[Wed Sep 16 16:52:19 2009][002628]
I believe that the problem involves apparmor not allowing the VM (through libvirt) to create the console.log file that we specify in the libvirt XML VM description file. Here is the message from dmesg after a failed VM start:
[ 5345.573395] type=1503 audit(125314510
parent=1 profile=
"w::" denied_mask="w::" fsuid=0 ouid=0 name="/
n/i-4CFC08E8/
and the output in /var/log/
LC_ALL=C PATH=/usr/
qemu: could not open serial device 'file:/
I also note that the directory/serial file is not being listed in the dynamically created libvirt apparmor profile:
root@explorer:
# DO NOT EDIT THIS FILE DIRECTLY. IT IS MANAGED BY LIBVIRT.
/var/
/var/
/var/
/var/
I've confirmed that, when apparmor is stopped, libvirtd and eucalyptus-nc restarted, then eucalyptus-nc can start the VM.
Related branches
Changed in eucalyptus (Ubuntu): | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in eucalyptus (Ubuntu): | |
milestone: | none → ubuntu-9.10-beta |
Daniel, can you please give the output of:
$ dmesg | grep audit
Also, can you give me the paths to the pid file, log file and monitor file for this virtual machine?