Public bug reported:
After an upgrade from 19.10 to 20.04, virsh fails launching virtual
machines with the following message:
error: Failed to start domain testvm
error: internal error: process exited while connecting to monitor: Could not
access KVM kernel module: Permission denied
2020-06-22T04:09:33.931139Z qemu-system-x86_64: failed to initialize KVM:
Permission denied
Investigating further shown that /dev/kvm, which should be owned by
root:kvm, is now owned by root:plugdev:
crw-rw----+ 1 root plugdev 10, 232 Jun 22 06:09 /dev/kvm
Changing its group to kvm fixes the issue temporarily but the group owner comes
back to plugdev after a reboot.
/lib/udev/rules.d/50-udev-default.rules seem to have the right rule:
KERNEL=="kvm", GROUP="kvm", MODE="0660", OPTIONS+="static_node=kvm"
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: qemu-kvm 1:4.2-3ubuntu6.2
ProcVersionSignature: Ubuntu 5.4.0-37.41-generic 5.4.41
Uname: Linux 5.4.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Mon Jun 22 06:05:05 2020
InstallationDate: Installed on 2019-06-10 (377 days ago)
InstallationMedia: Xubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64
(20190210)
KvmCmdLine: COMMAND STAT EUID RUID PID PPID %CPU COMMAND
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2b Intel Corp.
Bus 001 Device 003: ID 0c45:6717 Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 1050:0406 Yubico.com Yubikey 4 U2F+CCID
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. Latitude 7490
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-37-generic
root=UUID=2641bf58-717e-4e37-9773-684bf140a1a2 ro quiet splash vt.handoff=7
SourcePackage: qemu
UpgradeStatus: Upgraded to focal on 2020-06-19 (2 days ago)
dmi.bios.date: 04/26/2019
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.9.3
dmi.board.name: 0KP0FT
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias:
dmi:bvnDellInc.:bvr1.9.3:bd04/26/2019:svnDellInc.:pnLatitude7490:pvr:rvnDellInc.:rn0KP0FT:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: Latitude
dmi.product.name: Latitude 7490
dmi.product.sku: 081C
dmi.sys.vendor: Dell Inc.
** Affects: qemu (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1884476
Title:
/dev/kvm wrong group (plugdev) after upgrade to 20.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1884476/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs