[Bug 1750543] Re: [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)
** Changed in: ubuntu-power-systems Status: Incomplete => Invalid -- 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
[Bug 1750543] Re: [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)
I meant by, even if the jenkins created a folder `/var/lib/libvirt/images` in first place, it should have had the right permissions as how `temp` folder I created above has the same permissions as the install'ed libvirt folder now, I do not find a convincing reason why it did not work in the first place. I hope the env does not have any local workarounds to make it work and new install of host again gets this issue :-) Regards, -Satheesh. -- 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
[Bug 1750543] Re: [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)
Glad that it works now per comment #5 Yes folder permissions are changed on install - they are created first and then chown'ed. I didn't get the last issue of manually creating /var/lib/temp as root:root - that should be unrelated right? TL;DR - it seems to work as set up by the package and if you can convince the jenkins setup of the testbed to not mess with it things are good. Setting invalid per former comments - feel free to continue to discuss here whatever that temp dir in the last comment was about. ** Changed in: libvirt (Ubuntu) Status: Incomplete => Invalid -- 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
[Bug 1750543] Re: [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)
--- Comment From sathe...@in.ibm.com 2018-02-20 11:53 EDT--- Looks like before installing libvirt the `/var/lib/libvirt/images/` folder got created by testbed(jenkins) as the base folder for the slave is configured as /var/lib/libvirt/images/, Just to make sure, I have deleted the complete /var/lib/libvirt folder and removed libvirt package and reinstalled it back, I could see now the /var/lib/libvirt images folder permissions are intact VMs are starting fine now. #virsh domcapabilities /usr/bin/qemu-system-ppc64 kvm pseries-bionic ppc64le ... # ls -l libvirt ls: cannot access 'libvirt': No such file or directory --During libvirt package install # ls -l libvirt total 16 drwxr-xr-x 2 root root 4096 Feb 2 01:31 boot drwxr-xr-x 2 root root 4096 Feb 2 01:31 images drwxr-xr-x 3 root root 4096 Feb 20 11:34 qemu drwxr-xr-x 2 root root 4096 Feb 2 01:31 sanlock # ls -l libvirt total 16 drwx--x--x 2 root root 4096 Feb 2 01:31 boot drwx--x--x 2 root root 4096 Feb 2 01:31 images drwxr-x--- 3 libvirt-qemu libvirt-qemu 4096 Feb 20 11:34 qemu drwx-- 2 root root 4096 Feb 2 01:31 sanlock # ls -l libvirt total 20 drwx--x--x 2 root root 4096 Feb 2 01:31 boot drwxr-xr-x 2 root root 4096 Feb 20 11:39 dnsmasq drwx--x--x 2 root root 4096 Feb 2 01:31 images drwxr-x--- 9 root root 4096 Feb 20 11:38 qemu I could see qemu folder permissions are getting altered during package install drwx-- 2 root root 4096 Feb 2 01:31 sanlock # ls -l total 20 drwx--x--x 2 root root 4096 Feb 2 01:31 boot drwxr-xr-x 2 root root 4096 Feb 20 11:39 dnsmasq drwx--x--x 2 root root 4096 Feb 2 01:31 images drwxr-x--- 9 root root 4096 Feb 20 11:38 qemu drwx-- 2 root root 4096 Feb 2 01:31 sanlock I hope this should be fine? Regards, -Satheesh ** Tags added: bugnameltc-164807 severity-critical -- 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
[Bug 1750543] Re: [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)
** Tags removed: bugnameltc-164807 severity-critical triage-g -- 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
[Bug 1750543] Re: [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)
Hi, help sorting out dirs and required access here: $ ll /var/lib/libvirt/ drwxr-xr-x 7 root root 4096 Feb 8 07:55 ./ drwx--x--x 2 root root 4096 Dec 14 13:15 boot/ drwxr-xr-x 2 root root 4096 Feb 19 14:08 dnsmasq/ drwx--x--x 2 root root 4096 Dec 14 13:15 images/ drwx-- 2 root root 4096 Dec 14 13:15 sanlock/ On the above only libvirt needs to access (and libvirt runs as root) drwxr-x--- 8 libvirt-qemu kvm 4096 Feb 14 08:02 qemu/ this is the one dir qemu (read potentially untrusted guest code) needs to access. So only this dir is on libvirt-qemu:kvm ownership. So "libvirt-qemu doesnt have permissions to open directory '/var/lib/libvirt/'.": Yes, and it usually doesn't need. I hope this helps when you double check your setup. -- 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
[Bug 1750543] Re: [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)
** Changed in: ubuntu-power-systems 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
[Bug 1750543] Re: [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)
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
[Bug 1750543] Re: [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)
** Changed in: ubuntu-power-systems Assignee: David Britton (davidpbritton) => Canonical Server Team (canonical-server) -- 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
[Bug 1750543] Re: [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)
** Also affects: ubuntu-power-systems Importance: Undecided Status: New ** Changed in: ubuntu-power-systems Assignee: (unassigned) => David Britton (davidpbritton) ** Changed in: ubuntu-power-systems Importance: Undecided => Critical ** Tags added: triage-g -- 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