[Klug-general] QEMU and Ubuntu 18.04 apparmor error

James Morris jwm.art.net at gmail.com
Tue Jul 3 09:57:55 UTC 2018


Very much hazzarding a guess but on Arch Linux when this stuff updates I
always get warned to delete ~/.libvirt (IIRC). I don't have that but do you
and did you delete it?


On 3 July 2018 at 10:14, Paul Littlefield via Kent <kent at mailman.lug.org.uk>
wrote:

> 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)
>
> --
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20180703/b0e5069a/attachment.html>


More information about the Kent mailing list