[Klug-general] QEMU and Ubuntu 18.04 apparmor error
Paul Littlefield
info at paully.co.uk
Tue Jul 3 09:15:00 UTC 2018
Hello Folks,
I cannot create or start any QEMU virtual machines on my laptop. It was fine up until a week or so ago.
The error is:-
"Error starting domain: internal error: cannot load AppArmor profile 'libvirt-a5d9e3c8-6557-4efc-b7e1-836216e22ed7'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1508, in startup
self._backend.create()
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1062, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: cannot load AppArmor profile 'libvirt-a5d9e3c8-6557-4efc-b7e1-836216e22ed7'"
Web searching reveals it points to 'apparmor' and a missing configuration file placed in the directory /etc/apparmor.d/libvirt/ but I cannot find any mention of setting this up.
I am right up to date with my Ubuntu system and have reinstalled the software again and rebooted.
$ sudo apt-get install --reinstall apparmor qemu-kvm libvirt-bin bridge-utils virtinst
I am still searching but any help would be appreciated.
Ubuntu 18.04 LTS
QEMU 2.11+dfsg-1ubuntu7.4
Python 2.7.15rc1
AppArmor 2.12-4ubuntu5
Cheers,
:-)
--
Paul Littlefield
Telephone: 07801 125705
Email: info at paully.co.uk
Wiki: http://wiki.indie-it.com/wiki/Special:AllPages
LinkedIn: https://uk.linkedin.com/in/paullittlefield
Paul Littlefield is environmentally responsible. Please consider the environment before printing this email. This email and any attachment is intended for the named addressee only, or person authorised to receive it on their behalf. The content should be treated as confidential and the recipient may not disclose this message or any attachment to anyone else without authorisation. If this transmission is received in error please notify the sender immediately and delete this message from your email system. All electronic transmissions to and from me are recorded and may be monitored. Finally, the recipient should check this email and any attachments for viruses. Paul Littlefield accepts no liability for any damage caused by any virus transmitted by this email.
Ubuntu 18.04 LTS (x86_64)
More information about the Kent
mailing list