Installation guide: github.com/cmusatyalab/elijah-openstack
Starting from a fresh OS (Ubuntu Server - Trusty) environment, I faced an AppArmor severe stop at installation as per below:
[localhost] sudo: aa-complain /usr/sbin/libvirtd
[localhost] out: apparmor.common.AppArmorException: 'AppArmor parser error for etc/apparmor.d/
usr.sbin.libvirtd in /etc/apparmor.d/usr.sbin.libvirtd at line 44:
syntax error, unexpected TOK_END_OF_RULE, expecting TOK_MODE\n'
This is being caused by AppArmor
libvirtd's app refusal to being safely disabled.
Jump out the installation and proceed to move
aa-complain mode manually:
$ sudo /etc/init.d/apparmor stop
$ sudo aa-complain /usr/sbin/libvirtd
$ sudo /etc/init.d/apparmor start
* Starting AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.sbin.libvirtd
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
[ OK ]
Proceeding with the installation you may also get an additional error when adding the current user (E.g.
user) to libvirtd group.
If the group does not exist create it by editing
/etc/group to mimic current
libvirt (pay attention to the group naming) which should look similar to:
Resume installation (DevStack: ./stack.sh) and all should go fine from here onwards. If AppArmor provides with you with more trouble, please post here.