From info at paully.co.uk Tue Jul 3 09:15:00 2018 From: info at paully.co.uk (Paul Littlefield) Date: Tue, 03 Jul 2018 09:15:00 -0000 Subject: [Klug-general] QEMU and Ubuntu 18.04 apparmor error Message-ID: <010201645f6c6243-9d503b5f-5bd2-4c4d-b399-a29a898ea83e-000000@eu-west-1.amazonses.com> 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) From jwm.art.net at gmail.com Tue Jul 3 09:57:55 2018 From: jwm.art.net at gmail.com (James Morris) Date: Tue, 03 Jul 2018 09:57:55 -0000 Subject: [Klug-general] QEMU and Ubuntu 18.04 apparmor error In-Reply-To: <010201645f6c6243-9d503b5f-5bd2-4c4d-b399-a29a898ea83e-000000@eu-west-1.amazonses.com> References: <010201645f6c6243-9d503b5f-5bd2-4c4d-b399-a29a898ea83e-000000@eu-west-1.amazonses.com> Message-ID: 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 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: From info at paully.co.uk Tue Jul 3 10:13:18 2018 From: info at paully.co.uk (Paul Littlefield) Date: Tue, 03 Jul 2018 10:13:18 -0000 Subject: [Klug-general] QEMU and Ubuntu 18.04 apparmor error In-Reply-To: References: <010201645f6c6243-9d503b5f-5bd2-4c4d-b399-a29a898ea83e-000000@eu-west-1.amazonses.com> Message-ID: <010201645fa128e7-4cb861f4-cb48-4856-9802-4a83d3572eba-000000@eu-west-1.amazonses.com> On 03/07/2018 10:57, James Morris wrote: > 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? No, I do not have that file or folder. Paully From info at paully.co.uk Tue Jul 3 10:14:58 2018 From: info at paully.co.uk (Paul Littlefield) Date: Tue, 03 Jul 2018 10:14:58 -0000 Subject: [Klug-general] QEMU and Ubuntu 18.04 apparmor error In-Reply-To: <010201645f6c6243-9d503b5f-5bd2-4c4d-b399-a29a898ea83e-000000@eu-west-1.amazonses.com> References: <010201645f6c6243-9d503b5f-5bd2-4c4d-b399-a29a898ea83e-000000@eu-west-1.amazonses.com> Message-ID: <010201645fa34ced-7660b5a8-cd06-48bf-898d-053340fa152b-000000@eu-west-1.amazonses.com> OK, just found this... https://wiki.ubuntu.com/LibvirtApparmor :-) Paully