kvm kernel module always loaded, without setting /dev/kvm permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Precise |
Fix Released
|
High
|
Serge Hallyn | ||
Quantal |
Fix Released
|
High
|
Serge Hallyn | ||
Raring |
Fix Released
|
High
|
Serge Hallyn |
Bug Description
=======
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/
callback(
File "/usr/share/
guest.
File "/usr/lib/
noboot)
File "/usr/lib/
dom = self.conn.
File "/usr/lib/
if ret is None:raise libvirtError(
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
ProcVersionSign
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)
tags: | added: qa-manual-testing |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → Confirmed |
summary: |
- internal error Process exited while reading console log output: char - device redirected to /dev/pts/1 error when creating a vm + kvm kernel module always loaded |
summary: |
- kvm kernel module always loaded + kvm kernel module always loaded, without setting /dev/kvm permissions |
Changed in udev (Ubuntu): | |
status: | New → Invalid |
Changed in libvirt (Ubuntu): | |
importance: | High → Critical |
no longer affects: | udev (Ubuntu) |
affects: | libvirt (Ubuntu) → qemu-kvm (Ubuntu) |
description: | updated |
Changed in qemu-kvm (Ubuntu Quantal): | |
importance: | Undecided → Medium |
status: | New → Triaged |
importance: | Medium → High |
Changed in qemu-kvm (Ubuntu Precise): | |
importance: | Undecided → High |
status: | New → Triaged |
tags: | removed: rls-q-incoming |
Changed in qemu-kvm (Ubuntu Raring): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
Changed in qemu-kvm (Ubuntu Quantal): | |
status: | Triaged → In Progress |
Changed in qemu-kvm (Ubuntu Precise): | |
status: | Triaged → In Progress |
tags: |
added: verification-done removed: verification-needed |
Thanks for submitting this bug. Could you please show the results of:
grep libvirt /etc/group
kvm-ok
on the server?