Quote the essential part of the bug:
"This is some apparmor issue.
The qemu is not able to access /var/lib/libvirt directory when run as qemu:qemu.
I changed the user to root:root, the things are working fine now."

Note: The default is libvirt-qemu:kvm which works just fine.

Not sure where/why set qemu:qemu user/group for qemu.
But if I do set so in /etc/libvirt/qemu.conf and create such a user (qemu:qemu 
is no default as I said).
With that set still the referred domcapabilities commands work.
If with qemu/qemu I try to start a guest it fails:
  qemu-system-ppc64: failed to initialize KVM: Permission denied
As we have:
crw-rw---- 1 root kvm 10, 232 Feb 20 11:42 /dev/kvm

The attached ./sos_commands/kernel/dmesg has no apparmor Denies.

I have to set this to incomplete for now and need to ask:
- why user qemu:qemu?
  - if you set non default users you might need to change a lot to get it 
working.
- I read apparmor issues, but found none in the logs, could you provide the 
messages of the apparmor denies
- the sosreport holds a lot, but just not e.g. the qemu.conf to set the user
TL;DR - I need to see the actual failing config and the error/Denial by apparmor

** Changed in: libvirt (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1750543

Title:
  [power9][Ubuntu 18.04][4.15.0-10-generic][libvirt-bin-4.0.0-1ubuntu2]
  KVM guest unable start from libvirt "could not find capabilities for
  arch=ppc64le " (kvm)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1750543/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to