------- Comment From [email protected] 2018-02-20 09:51 EDT------- Yes(In reply to comment #10) > 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. >
Correct. There are no denies. > I have to set this to incomplete for now and need to ask: > - why user qemu:qemu? My bad, typos.. The user is "qemu" on Redhat, "libvirt-qemu" on Debian variants. > - if you set non default users you might need to change a lot to get it > working. Now that you confirmed there might not be an apparmor issue here, I see libvirt-qemu doesnt have permissions to open directory '/var/lib/libvirt/'. I see libvirt-daemon-system.postinst file has adduser --quiet \ --system \ --ingroup kvm \ --quiet \ --disabled-login \ --disabled-password \ --home /var/lib/libvirt \ --no-create-home \ --gecos "Libvirt Qemu" \ $PARAMETER_UID \ libvirt-qemu So, Now I see the libvirt-qemu is created during the install of libvirt-daemon-system and has --no-create-home. And I see the directory ls -lrt /var/lib/libvirt/ -d drwx------ 7 root root 4096 Feb 17 08:23 /var/lib/libvirt/ has no permission for non-root user. Now I am not sure if it is the package which created this directory with such permissions Or it is the test automation scripts. Satheesh, Can you confirm if your test suite creates /var/lib/libvirt directory as part of test setup ? Or does it alter the permissions as we see above ? On hosts where things are working I see the directory to have "drwxr-xr-x".. Thanks, Shivaprasad -- 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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
