Skip to content

libvirt qemu driver missing #1568

@JesterSks

Description

@JesterSks

System

  • xuname:
    Void 4.17.13_1 x86_64 GenuineIntel uptodate rrFF
  • package:
    libvirt-4.6.0_1

Expected behavior

sudo virsh -c qemu:///system should work

Actual behavior

Received error about not being able to connect to qemu:///system because no driver could be found.

Steps to reproduce the behavior

Update to latest libvirt in public repo
Could no longer access qemu based virtual machines

Notes

When I checked ls /usr/lib/libvirt/connection-driver/ did not see libvirt_driver_qemu.so

I was able to build a custom package that worked:

diff --git a/srcpkgs/libvirt/template b/srcpkgs/libvirt/template
index 49c30521e8..d951aa1b0e 100644
--- a/srcpkgs/libvirt/template
+++ b/srcpkgs/libvirt/template
@@ -4,7 +4,7 @@ version=4.6.0
 revision=1
 build_style=gnu-configure
 patch_args="-Np1"
-configure_args="--without-hal --with-storage-lvm
+configure_args="--without-hal --with-storage-lvm --with-qemu
  --with-qemu-user=libvirt --with-qemu-group=libvirt --without-netcf
  --with-interface --disable-static"
 short_desc="The virtualization API for controlling virtualization engines"
@@ -25,7 +25,7 @@ makedepends="readline-devel libcap-ng-devel libnl3-devel attr-devel
  gnutls-devel libsasl-devel libcurl-devel libpcap-devel libxml2-devel
  libparted-devel device-mapper-devel dbus-devel eudev-libudev-devel libblkid-devel
  libpciaccess-devel avahi-libs-devel polkit-devel yajl-devel
- python-devel libssh2-devel libcap-ng-devel fuse-devel libtirpc-devel"
+ python-devel libssh2-devel libcap-ng-devel fuse-devel libtirpc-devel jansson-devel"
 depends="ebtables dnsmasq"

 case "$XBPS_TARGET_MACHINE" in

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions