I have VMs failing to start with 2017-02-17 15:38:44.458 264015 ERROR nova.compute.manager [instance: 0c97ab16-2d30-43fa-b0e4-a064a842b5ed] libvirtError: internal error: process exited while connecting to monitor: 2017-02-17T15:38:43.907222Z qemu-system-x86_64: -netdev tap,ifname=tapf34ef99e-18,id=hostnet0,vhost=on,vhostfd=28: network script /etc/qemu-ifup failed with status 256
Seems to be that /etc/qemu-ifup is being blocked by apparmor:
type=AVC msg=audit(1487347189.015:28536): apparmor="DENIED" operation="exec" profile="libvirt-4a03fea7-e966-48e4-80ac-aa138db67243" name="/etc/qemu-ifup" pid=285438 comm="qemu-system-x86" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
type=PATH msg=audit(1487347189.015:28536): item=0 name="/etc/qemu-ifup" inode=66403 dev=08:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 nametype=NORMAL
root@ubuntu-trusty-5773:/etc/apparmor.d/abstractions# cat /etc/apparmor.d/libvirt/libvirt-4a03fea7-e966-48e4-80ac-aa138db67243
#
# This profile is for the domain whose UUID matches this file.
#
I have VMs failing to start with 2017-02-17 15:38:44.458 264015 ERROR nova.compute. manager [instance: 0c97ab16- 2d30-43fa- b0e4-a064a842b5 ed] libvirtError: internal error: process exited while connecting to monitor: 2017-02- 17T15:38: 43.907222Z qemu-system-x86_64: -netdev tap,ifname= tapf34ef99e- 18,id=hostnet0, vhost=on, vhostfd= 28: network script /etc/qemu-ifup failed with status 256
Log excerpt: cdn.pasteraw. com/b3tw4cjefom fi3e9k09hvodrfu n85z
http://
Seems to be that /etc/qemu-ifup is being blocked by apparmor: 1487347189. 015:28536) : apparmor="DENIED" operation="exec" profile= "libvirt- 4a03fea7- e966-48e4- 80ac-aa138db672 43" name="/ etc/qemu- ifup" pid=285438 comm="qemu- system- x86" requested_mask="x" denied_mask="x" fsuid=0 ouid=0 1487347189. 015:28536) : item=0 name="/ etc/qemu- ifup" inode=66403 dev=08:01 mode=0100755 ouid=0 ogid=0 rdev=00:00 nametype=NORMAL
type=AVC msg=audit(
type=PATH msg=audit(
root@ubuntu- trusty- 5773:/etc/ apparmor. d/abstractions# cat /etc/apparmor. d/libvirt/ libvirt- 4a03fea7- e966-48e4- 80ac-aa138db672 43
#
# This profile is for the domain whose UUID matches this file.
#
#include <tunables/global>
profile libvirt- 4a03fea7- e966-48e4- 80ac-aa138db672 43 { libvirt- qemu> libvirt- 4a03fea7- e966-48e4- 80ac-aa138db672 43.files>
#include <abstractions/
#include <libvirt/
} trusty- 5773:/etc/ apparmor. d/abstractions# cat /etc/apparmor. d/libvirt/ libvirt- 4a03fea7- e966-48e4- 80ac-aa138db672 43.files log/libvirt/ **/instance- 00000008. log" w, lib/libvirt/ qemu/domain- instance- 00000008/ monitor. sock" rw, run/libvirt/ **/instance- 00000008. pid" rwk, libvirt/ **/instance- 00000008. pid" rwk, run/libvirt/ **/*.tunnelmigr ate.dest. instance- 00000008" rw, libvirt/ **/*.tunnelmigr ate.dest. instance- 00000008" rw, lib/nova/ instances/ 4a03fea7- e966-48e4- 80ac-aa138db672 43/console. log" rw, lib/nova/ instances/ 4a03fea7- e966-48e4- 80ac-aa138db672 43/console. log" rw, libvirt/ qemu/channel/ target/ domain- instance- 00000008/ **" rw,
root@ubuntu-
# DO NOT EDIT THIS FILE DIRECTLY. IT IS MANAGED BY LIBVIRT.
"/var/
"/var/
"/var/
"/run/
"/var/
"/run/
"/var/
"/var/
# for qemu guest agent channel
owner "/var/lib/
/dev/vhost-net rw,
root@ubuntu- trusty- 5773:/etc/ apparmor. d/abstractions# dpkg -S libvirt-qemu d/abstractions/ libvirt- qemu
libvirt-bin: /etc/apparmor.
root@ubuntu- trusty- 5773:/etc/ apparmor. d/abstractions# dpkg -l libvirt-bin Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= ======= ======= ===-=== ======= ======= ======= =-===== ======= ======= ======- ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === .6~cloud0 amd64 programs for the libvirt library
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii libvirt-bin 1.3.1-1ubuntu10
Seeing identical behavior on Xenial ubuntu- xenial- 5165:~$ dpkg -l libvirt-bin Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= ======= ======= ===-=== ======= ======= ======= =-===== ======= ======= ======- ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
ubuntu@
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii libvirt-bin 1.3.1-1ubuntu10.8 amd64 programs for the libvirt library