Your message dated Sat, 22 Jun 2019 22:10:34 +0200
with message-id <20190622201034.ga4...@home.ouaza.com>
and subject line Re: Bug#930929: libvirt: is no longer able to use kvm
has caused the Debian Bug report #930929,
regarding libvirt: is no longer able to use kvm
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
930929: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930929
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libvirt
Version: 5.0.0-4
Severity: serious

For a few days/weeks (I'm not sure when it started exactly), I can no
longer run my VM with virt-manager.

On startup of libvirtd I have many messages like this one (one for each VM
I guess):
libvirtd[8281]: invalid argument: could not find capabilities for arch=x86_64 
domaintype=kvm 

When I try to start a VM I see this in the logs of libvirtd:
libvirtd[12569]: Unable to read from monitor: Connexion ré-initialisée par le 
correspondant
libvirtd[12569]: internal error: qemu unexpectedly closed the monitor: Could 
not access KVM kernel module: Permission denied
                 2019-06-22T17:07:23.635870Z qemu-system-x86_64: failed to 
initialize KVM: Permission denied
libvirtd[12569]: internal error: process exited while connecting to monitor: 
Could not access KVM kernel module: Permission denied
                 2019-06-22T17:07:23.635870Z qemu-system-x86_64: failed to 
initialize KVM: Permission denied

But I do have /dev/kvm and I have hardware virtualization enabled in the
BIOS.

$ ls -al /dev/kvm
crw-rw----+ 1 root root 10, 232 juin  22 19:07 /dev/kvm
$ getfacl /dev/kvm
# file: dev/kvm
# owner: root
# group: root
user::rw-
user:rhertzog:rw-
group::---
mask::rw-
other::---

And I do have the required kernel modules:
$ lsmod|grep kvm
kvm_intel             245760  0
kvm                   724992  1 kvm_intel
irqbypass              16384  1 kvm

I also have qemu-kvm installed:
$ dpkg -l qemu*|grep ^ii
ii  qemu-kvm           1:3.1+dfsg-8 amd64        QEMU Full virtualization on 
x86 hardware
ii  qemu-system-common 1:3.1+dfsg-8 amd64        QEMU full system emulation 
binaries (common files)
ii  qemu-system-data   1:3.1+dfsg-8 all          QEMU full system emulation 
(data files)
ii  qemu-system-gui    1:3.1+dfsg-8 amd64        QEMU full system emulation 
binaries (user interface and audio support)
ii  qemu-system-x86    1:3.1+dfsg-8 amd64        QEMU full system emulation 
binaries (x86)
ii  qemu-user          1:3.1+dfsg-8 amd64        QEMU user mode emulation 
binaries
ii  qemu-user-static   1:3.1+dfsg-8 amd64        QEMU user mode emulation 
binaries (static version)
ii  qemu-utils         1:3.1+dfsg-8 amd64        QEMU utilities

I removed virtualbox and rebooted to make sure it's not a bad interaction but 
it did not help.
I don't know what else I should look into.

-- System Information:
Debian Release: 10.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--- End Message ---
--- Begin Message ---
On Sat, 22 Jun 2019, Raphael Hertzog wrote:
> Still I confirm that the libvirt-qemu user is not able to open /dev/kvm.

But after a reboot with the good systemd, it began again to work... sorry
for the noise!

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/

--- End Message ---

Reply via email to