Exploring CPUs, motherboards, overclocking, building your own PC, case mods, PC brands, handhelds, peripherals of all types, DVDs, CD burners, hardware-specific software, device drivers, and anything else related to hardware.
The The Restaurant at the Edge of the Universe, previously known as The Water Cooler, is a place to post stuff that has absolutely nothing at all to do with computers, broadband, Scot's Newsletter, or anything that's "supposed" to be here.
You said apparmor is unnecessary and, in fact, overkill for a home user desktop scenario, correct? If so, consider this resolved.
I nuked apparmor from the system.
sudo apt remove apparmor
it also took apparmor-utils with it, and I need to autoremove some orphans, but POOF....gone!
Tried to create a VM, but same errors. Realized the libvirt.services probably needed to be restarted, so checked status:
sudo systemctl status libvirtd.service
sure enough, a red error line, so restarted service
sudo systemctl restart libvirtd.service
Tried to create a VM but same error. Then realized that qemu/KVM is a kernel-based service, so maybe I needed to reboot the whole system.
Rebooted the system, tried to create a VM with user session and external disk image on /media/jim/sdc1 and TADA...there it is...VM booting in VMM. THAT is what I've been looking for...exactly as desired!
Not sure what apparmor is, what it does, or why its installed by default on Debian 10, but it's gone now. And VMM seems to be working (knock on wood) the way I thought it should. I've probably swatted a fly with a sledgehammer, but I don't care right now. I just need my VM available so I can use those windows-only programs that I need for my business!
Thanks for your help SB!
Apparmor is the root cause of your issue as noted by the top part of your error:
unable to complete install: 'internal error: cannot load AppArmor profile 'libvirt-0f82c9ef-278d-4f2b-bb2f-3cf142f7d0e0''
my VMs or my *vdi disk images?
my sdc disk image was indeed owned by root, so changed it to jim (username), but same error:
Unable to complete install: 'internal error: cannot load AppArmor profile 'libvirt-0f82c9ef-278d-4f2b-bb2f-3cf142f7d0e0''
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 2119, in _do_async_install
File "/usr/share/virt-manager/virtinst/installer.py", line 419, in start_install
File "/usr/share/virt-manager/virtinst/installer.py", line 362, in _create_guest
domain = self.conn.createXML(install_xml or final_xml, 0)
File "/usr/lib/python3/dist-packages/libvirt.py", line 3732, in createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: internal error: cannot load AppArmor profile 'libvirt-0f82c9ef-278d-4f2b-bb2f-3cf142f7d0e0'