Re: [Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Hi Dmitry, it sounds like you're saying there is a new bug (regression). Could you open a new bug with the relevant information? Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
It looks like the bug still exists in 'trusty', qemu-kvm 2.0, however, it's not clear why. Aftre installation /dev/kvm have wrong permissions: --- crw--- 1 root root 10, 232 Jan 20 02:09 /dev/kvm --- Reinstalling qemu-system-common fixes the problem. I did a simple research, and here is what I've found: * The code to fix acl still exists, but was moved to qemu-system-common package. * There is no /lib/udev/rules.d/70-udev-acl.rules, it looks like ACLs for /dev/kvm are set by /lib/udev/rules.d/70-uaccess.rules, there is a string: --- SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess" --- * A builtin function 'builtin_uaccess' [1] is called to set permissions according to the following string from /lib/udev/rules.d/73-seat-late.rules: --- TAG=="uaccess", ENV{MAJOR}!="", RUN{builtin}+="uaccess" --- [1] https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-uaccess.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
This bug was fixed in the package qemu-kvm - 1.2.0+noroms- 0ubuntu2.12.10.5 --- qemu-kvm (1.2.0+noroms-0ubuntu2.12.10.5) quantal-proposed; urgency=low * debian/control and qemu-kvm.postinst: remove any g:--- acl on /dev/kvm (left over from udev-acl). (LP: #1057024) -- Serge HallynWed, 17 Jul 2013 10:23:13 -0500 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
This bug was fixed in the package qemu-kvm - 1.0+noroms-0ubuntu14.11 --- qemu-kvm (1.0+noroms-0ubuntu14.11) precise-proposed; urgency=low * debian/control and qemu-kvm.postinst: remove any g:--- acl on /dev/kvm (left over from udev-acl). (LP: #1057024) -- Serge HallynWed, 17 Jul 2013 10:14:46 -0500 ** Changed in: qemu-kvm (Ubuntu Precise) Status: Fix Committed => Fix Released ** Changed in: qemu-kvm (Ubuntu Quantal) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Precise verification also passed with the version 1.0+noroms- 0ubuntu14.11 . ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Quantal verification passed with the 1.2.0+noroms-0ubuntu2.12.10.5 . -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Hello Parameswaran, or anyone else affected, Accepted qemu-kvm into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/qemu-kvm/1.2.0 +noroms-0ubuntu2.12.10.5 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: qemu-kvm (Ubuntu Quantal) Status: In Progress => Fix Committed ** Tags removed: verification-done ** Tags added: verification-needed ** Changed in: qemu-kvm (Ubuntu Precise) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Pushed proposed packages for precise and quantal. ** Changed in: qemu-kvm (Ubuntu Precise) Status: Triaged => In Progress ** Changed in: qemu-kvm (Ubuntu Quantal) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Sure thing. Thanks for your support. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Thanks, Ryan. Indeed - there were several problems affecting /dev/kvm after a fresh install, and while raring got all the fixes, precise and quantal did not get one (presumably because I did not think they were affected). We will need to do the following in both precise and quantal: 1. add acl to qemu-kvm's Depends: 2. add if [ -c /dev/kvm -a ! -L /dev/kvm ] then /usr/bin/setfacl -m g::rw /dev/kvm fi to debian/qemu-kvm.postinst above the udevadm trigger This will need to be done after the current qemu-kvm is promoted from -proposed. I'll make a note to check back in a week. Thanks for pointing this out! ** Changed in: qemu-kvm (Ubuntu Quantal) Status: Fix Released => Triaged ** Changed in: qemu-kvm (Ubuntu Precise) Status: Fix Released => Triaged ** Changed in: qemu-kvm (Ubuntu Precise) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) ** Changed in: qemu-kvm (Ubuntu Quantal) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
After a reboot, I see the following: : linux13 1#; getfacl /dev/kvm getfacl: Removing leading '/' from absolute path names # file: dev/kvm # owner: root # group: kvm user::rw- user:daly:rw- group::rw- mask::rw- other::--- If I understood the thread correctly, these permissions should have been set without requiring a reboot. If that's true, then something still isn't right with the installer. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
I'm seeing this bug just after installing the following on a new 12.04 (64bit) install... I have not rebooted my system... : linux13 24#; dpkg-query -W qemu-kvm qemu-kvm1.0+noroms-0ubuntu14.8 : linux13 25#; getfacl /dev/kvm getfacl: Removing leading '/' from absolute path names # file: dev/kvm # owner: root # group: kvm user::rw- user:daly:rw- group::--- mask::rw- other::--- -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
This bug was fixed in the package qemu-kvm - 1.0+noroms-0ubuntu14.6 --- qemu-kvm (1.0+noroms-0ubuntu14.6) precise-proposed; urgency=low * Fix qemu-kvm.upstart: just don't run in a container. Otherwise we'll still try to load/unload kernel modules. Also undo the || true after sysfs writes. Since setting those is a part of configuring qemu-kvm on the host, failing when they fail makes sense. qemu-kvm (1.0+noroms-0ubuntu14.5) precise-proposed; urgency=low * add udev to qemu-kvm Depends to ensure that postinst succeeds. (LP: #1080912) qemu-kvm (1.0+noroms-0ubuntu14.4) precise-proposed; urgency=low [ Serge Hallyn ] * debian/qemu-kvm.postinst: use udevadm trigger to change /dev/kvm perms as recommended by Steve Langasek (LP: #1057024) * apply debian/patches/nbd-fixes-to-read-only-handling.patch from upstream to make read-write mount after read-only mount work. (LP: #1077838) [ Robert Collins ] * Fix upstart job to succeed if ksm settings can't be altered in the same way other settings are handled. (LP: #1078530) -- Serge HallynThu, 20 Dec 2012 12:34:52 -0600 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
This bug was fixed in the package qemu-kvm - 1.2.0+noroms- 0ubuntu2.12.10.1 --- qemu-kvm (1.2.0+noroms-0ubuntu2.12.10.1) quantal-proposed; urgency=low [ Serge Hallyn ] * debian/qemu-kvm.postinst: use udevadm trigger to change /dev/kvm perms as recommended by Steve Langasek (LP: #1057024) * apply debian/patches/nbd-fixes-to-read-only-handling.patch from upstream to make read-write mount after read-only mount work. (LP: #1077838) * make qemu-kvm depend on udev (LP: #1080912) [ Robert Collins ] * Fix upstart job to succeed if ksm settings can't be altered in the same way other settings are handled. (LP: #1078530) -- Serge HallynMon, 19 Nov 2012 09:15:42 -0600 ** Changed in: qemu-kvm (Ubuntu Quantal) Status: Fix Committed => Fix Released ** Changed in: qemu-kvm (Ubuntu Precise) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
The fix in quantal-proposed is currently complicated by a udev bug #1092715. The udev trigger from the postinst doesn't seem to pick up the new rules file in /lib/udev/rules.d, and permissions are not updated by the trigger. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Re-verified. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Hello Parameswaran, or anyone else affected, Accepted qemu-kvm into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/qemu-kvm/1.0+noroms- 0ubuntu14.6 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Tags removed: verification-done ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
(Re-verified in precise) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Hello Parameswaran, or anyone else affected, Accepted qemu-kvm into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/qemu-kvm/1.0+noroms- 0ubuntu14.5 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Tags removed: verification-done ** Tags added: verification-needed ** Changed in: qemu-kvm (Ubuntu Quantal) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
@Peter, could you please open a new bug for your issue? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
After loading the module I was able to start my guest: $ sudo modprobe kvm_intel The main question is why this did not occur automatically after rebooting (after I upgraded to the -proposed version of qemu-kvm)? Note that everything worked very well on 11.10. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
I just upgraded a server from 11.10 to 12.04 and I got a gnome-keyring error [1] when trying to start a guest. There is some other bug about it and strangely a workaround was to install the 'gnome-keyring' package. I did so in haste and the majority of the error remains, even after upgrading qemu-kvm to proposed version: $ sudo virsh start kvm-blah error: Failed to start domain kvm-blah error: internal error Process exited while reading console log output: char device redirected to /dev/pts/1 Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory No accelerator found! $ apt-cache policy qemu-kvm qemu-kvm: Installed: 1.0+noroms-0ubuntu14.4 Candidate: 1.0+noroms-0ubuntu14.4 Version table: *** 1.0+noroms-0ubuntu14.4 0 500 http://archive.ubuntu.com/ubuntu/ precise-proposed/main amd64 Packages 100 /var/lib/dpkg/status 1.0+noroms-0ubuntu14.3 0 500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages 1.0+noroms-0ubuntu14.2 0 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages 1.0+noroms-0ubuntu13 0 500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages == [1] p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory error: Failed to start domain kvm-misc3 error: internal error Process exited while reading console log output: char device redirected to /dev/pts/1 Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory No accelerator found! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Failure to start kvm can also be caused by VirtualBox running on the host - watch out for dmesg like: kvm: enabling virtualization on CPU3 failed kvm: enabling virtualization on CPU0 failed kvm: enabling virtualization on CPU2 failed kvm: enabling virtualization on CPU1 failed to fix it: # /etc/init.d/virtualbox stop # rmmod rmmod vboxnetflt and the KVM VMs should start from virt-manager like a charm n.b. # grep libvirt /etc/group kvm:x:127:libvirt-qemu libvirtd:x:130: -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Tested for verification on a 20121016 (12.04.1) install fully updated amd64 system. The original bug could not be reproduced in this. With the version 1.0 +noroms-0ubuntu14.3 the following is the output of getfacl /dev/kvm getfacl: Removing leading '/' from absolute path names # file: dev/kvm # owner: root # group: kvm user::rw- user:ubuntu:rw- group::rw- mask::rw- other::--- In anycase, the new proposed version (1.0+noroms-0ubuntu14.4) is also giving the exact same output above for getfacl /dev/kvm. Hence marking the fix as verification done ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Hello Parameswaran, or anyone else affected, Accepted qemu-kvm into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/qemu-kvm/1.0+noroms- 0ubuntu14.4 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: qemu-kvm (Ubuntu Precise) Status: In Progress => Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
** Changed in: qemu-kvm (Ubuntu Quantal) Status: Triaged => In Progress ** Changed in: qemu-kvm (Ubuntu Precise) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
** Changed in: qemu-kvm (Ubuntu Raring) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
The change that's been uploaded to precise for this is: diff -u qemu-kvm-1.0+noroms/debian/qemu-kvm.postinst qemu-kvm-1.0+noroms/debian/qemu-kvm.postinst --- qemu-kvm-1.0+noroms/debian/qemu-kvm.postinst +++ qemu-kvm-1.0+noroms/debian/qemu-kvm.postinst @@ -16,2 +16,15 @@ -exit 0 +# if we just installed the package, udev rules aren't picked up yet, +# so udev created the device (/dev/kvm) with default permissions. +# Fix it here, but only if the perms are like default. +# (See #607391) + +if [ -c /dev/kvm -a ! -L /dev/kvm ] && [ .$(stat -c %u%g /dev/kvm) = .00 ] +then + chgrp kvm /dev/kvm + chmod 0660 /dev/kvm + if type setfacl > /dev/null 2>&1; then + setfacl -m g::rw /dev/kvm + fi +fi +exit 0 Please don't do this by hand. The correct way to do this in a maintainer script should be by calling: udevadm trigger --subsystem-match=misc --action=change See xserver-xorg-input-vmmouse, udisks2 for examples of this. Rejecting this SRU for now. If there's some reason 'udevadm trigger' can't be used here, we can un-reject the previous upload; otherwise, please reupload using udevadm. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
** Tags removed: rls-q-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
This bug was fixed in the package qemu-kvm - 1.2.0+noroms-0ubuntu3 --- qemu-kvm (1.2.0+noroms-0ubuntu3) raring; urgency=low * debian/qemu-kvm.postinst: remove the g::--- acl which udev may have inserted. (LP: #1057024) -- Serge HallynThu, 01 Nov 2012 20:46:57 +0100 ** Changed in: qemu-kvm (Ubuntu Raring) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
** Description changed: + = + SRU Justification: + 1. Impact: libvirt cannot start VMs immediately after qemu-kvm install. + 2. Development fix: remove the acl which is preventing libvirt-qemu from opening /dev/kvm. + 3. Stable fix: same as development fix + 4. Test case: + sudo apt-get purge qemu-kvm || true + sudo modprobe kvm_intel (or kvm_amd depending on the machine) + sudo apt-get install qemu-kvm + getfacl /dev/kvm | grep 'group::---' + # this should show nothing if the bug is fixed + 5. Regression potential: there should be none as we are simply removing a bad +acl from the /dev/kvm device. + = + The following occurred on a fresh quantal installation attmpting to create a quantal vm, both host and guest were amd64. Unable to complete install: 'internal error Process exited while reading console log output: char device redirected to /dev/pts/1 Could not access KVM kernel module: Permission denied failed to initialize KVM: Permission denied No accelerator found! ' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 1943, in do_install guest.start_install(False, meter=meter) File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1246, in start_install noboot) File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1314, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2501, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/1 Could not access KVM kernel module: Permission denied failed to initialize KVM: Permission denied No accelerator found! ProblemType: Bug DistroRelease: Ubuntu 12.10 Package: libvirt-bin 0.9.13-0ubuntu10 ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4 Uname: Linux 3.5.0-15-generic x86_64 ApportVersion: 2.5.2-0ubuntu4 Architecture: amd64 Date: Wed Sep 26 17:40:25 2012 InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120926) ProcEnviron: LANGUAGE=en_GB:en TERM=xterm PATH=(custom, no user) LANG=en_GB.UTF-8 SHELL=/bin/bash SourcePackage: libvirt UpgradeStatus: No upgrade log present (probably fresh install) ** Changed in: qemu-kvm (Ubuntu Quantal) Importance: Undecided => Medium ** Changed in: qemu-kvm (Ubuntu Quantal) Status: New => Triaged ** Changed in: qemu-kvm (Ubuntu Quantal) Importance: Medium => High ** Changed in: qemu-kvm (Ubuntu Precise) Importance: Undecided => High ** Changed in: qemu-kvm (Ubuntu Precise) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
At last, the cause is found. /lib/udev/rules.d/70-udev-acl.rules adds an acl to /dev/kvm denying group write perms. (qemu-kvm installs its own /lib/udev/rules.d/40-qemu-kvm.rules when qemu-kvm is installed) The qemu-kvm.postinst does chgrp and chmod /dev/kvm, but "chmod g+rw" does not remove the group-rw acl. qemu-kvm.postinst needs to manually remove that acl. ** Changed in: qemu-kvm (Ubuntu) Status: Triaged => In Progress ** Also affects: qemu-kvm (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: qemu-kvm (Ubuntu Quantal) Importance: Undecided Status: New ** Also affects: qemu-kvm (Ubuntu Raring) Importance: High Status: In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Thanks for bringing the laptop. We took a look. After installing qemu-kvm and libvirt (and virt- manager) /dev/kvm has the right permissions and ownership. User ubuntu is able to run kvm. However when doing sudo -u libvirt-qemu strace -f -o/tmp/outout kvm -vnc :1 you see that when it tries to open /dev/kvm it gets -EACCESS. Doing 'rmmod kvm_intel kvm; modprobe kvm_intel' results in /dev/kvm being created with the exact same owner/perms as before, but now libvirt-qemu is able to open the device. I did not think to look at the acls. ** Changed in: qemu-kvm (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
@Serge, I will be at the UDS and Ill bring the machine there. Thanks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
If kvm is not configured, then virt-manager tells me at the first 'New virtual machine" screen that: """ Error: No hypervisor options were found for this connection. This usually means that QEMU or KVM is not installed on your machine, or the KVM kernel modules are not loaded. """ So I simply cannot reproduce this. At this point I will mark the bug 'incomplete' meaning that we need more information to resolve it (per discussions at last UDS). If more information becomes available, please do comment here. psivaa, Will you be at UDS? Would it be at all possible for you to bring one of these laptops so we can watch this happen together? ** Changed in: qemu-kvm (Ubuntu) Assignee: Serge Hallyn (serge-hallyn) => (unassigned) ** Changed in: qemu-kvm (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
No, I was looking in the wrong place - qemu-kvm.postinst already does exactly that! In fact, I'm starting to wonder whether the way to reproduce this would be to not 'apt-get install kvm' before installing libvirt-bin. The kvm kernel module will be loaded, but won't be configured for use by libvirt. I'm not sure whether we should consider that a bug, or mis- configuration by the admin. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1057024] Re: kvm kernel module always loaded, without setting /dev/kvm permissions
Root cause found: udev automatically loads kvm_intel even when qemu-kvm is not installed. The kvm group and udev file causing /dev/kvm to be chgrp'd to kvm and set its permissions are installed by qemu-kvm. If it were only a question of permissions I'd say the udev package should be setting those. However it would also have to add the kvm group. So the qemu-kvm postinst should set the permissions on /dev/kvm if that already exists. ** Changed in: qemu-kvm (Ubuntu) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) ** Changed in: qemu-kvm (Ubuntu) Importance: Critical => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1057024 Title: kvm kernel module always loaded, without setting /dev/kvm permissions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1057024/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs