[Pkg-libvirt-maintainers] Bug#930929: Bug#930929: marked as done (libvirt: is no longer able to use kvm)

Guido Günther agx at sigxcpu.org
Sun Jun 23 10:58:53 BST 2019


Hi,
On Sat, Jun 22, 2019 at 08:15:06PM +0000, Debian Bug Tracking System wrote:
> Your message dated Sat, 22 Jun 2019 22:10:34 +0200
> with message-id <20190622201034.GA4421 at 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 owner at bugs.debian.org
> immediately.)
> 
> 
> -- 
> 930929: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930929
> Debian Bug Tracking System
> Contact owner at bugs.debian.org with problems

> From: Raphaël Hertzog <hertzog at debian.org>
> To: Debian Bug Tracking System <submit at bugs.debian.org>
> Date: Sat, 22 Jun 2019 19:17:15 +0200
> Subject: libvirt: is no longer able to use kvm
> X-Spam-Level: 
> X-Spam-Status: No, score=-35.3 required=4.0 tests=BAYES_00,FOURLA,
>  FROMDEVELOPER,SPF_HELO_PASS,SPF_NONE,TXREP,XMAILER_REPORTBUG, X_DEBBUGS_CC
>  autolearn=ham autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02
> Message-ID: <156122383595.4344.5739740357131736912.reportbug at x260-buxy.home.ouaza.com>
> 
> 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

> From: Raphael Hertzog <hertzog at debian.org>
> To: 930929-done at bugs.debian.org
> Date: Sat, 22 Jun 2019 22:10:34 +0200
> Subject: Re: Bug#930929: libvirt: is no longer able to use kvm
> X-Spam-Level: 
> X-Spam-Status: No, score=-19.8 required=4.0 tests=BAYES_00,FROMDEVELOPER,
>  HAS_BUG_NUMBER,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, TXREP
>  autolearn=ham autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02
> Message-ID: <20190622201034.GA4421 at home.ouaza.com>
> 
> 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!

Thanks for reporting all the details! Should we expect issues with newer
systemd then or do you deem the problems related to the patches you
tested?
Cheers,
 -- Guido



More information about the Pkg-libvirt-maintainers mailing list