Package Details: libvirt-git 6.5.0.r3.gc203b8fee1-1

Git Clone URL: (read-only, click to copy)
Package Base: libvirt-git
Description: API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
Upstream URL:
Keywords: library management virtualization
Licenses: GPL3, LGPL
Conflicts: libvirt
Provides: libvirt
Submitter: xtfxme
Maintainer: FredBezies
Last Packager: FredBezies
Votes: 10
Popularity: 0.20
First Submitted: 2009-12-06 07:37
Last Updated: 2020-07-03 13:35

Dependencies (36)

Required by (65)

Sources (4)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

hakayova commented on 2020-06-20 01:38

@FredBezies: Thank you so very much! I confirm that the fix must have been included in this build, since upgrading to this package solved my problem. I cannot thank you enough for responding to my request this quickly!

FredBezies commented on 2020-06-19 05:59

@hakayova: this fix was added on June 9th, 2020.

I updated this PKGBUILD on June 13th, 2020. So it must be included.

hakayova commented on 2020-06-18 20:52

Hi there, I get nightly snapshots of my VMs and a recent confirmed bug in libvirt broke the virsh blockcommit command my script uses to get a live snapshot from a VM. Please see the links below for details:

Would it be possible to update this package to contain this fix by any chance? Thank you so much for considering.

FredBezies commented on 2020-04-21 04:02

@mirh: done.

mirh commented on 2020-04-21 00:21

Can you build this with --without-wireshark-dissector, to workaround FS#63828?

ArthurBorsboom commented on 2020-01-07 13:26

Feel free to maintain the package. I have disowned it.

FredBezies commented on 2020-01-07 12:42

A working PKGBUILD:

# $Id$
# Maintainer: Arthur Borsboom <>
# Contributor: Jonas Heinrich <>
# Contributor: Sergej Pupykin <>
# Contributor: Jonathan Wiersma <archaur at jonw dot org>

pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('i686' 'x86_64')
depends=('e2fsprogs' 'gnutls' 'iptables' 'libxml2' 'parted' 'polkit' 'python'
     'avahi' 'yajl' 'libpciaccess' 'udev' 'dbus' 'libxau' 'libxdmcp' 'libpcap' 'libcap-ng'
     'curl' 'libsasl' 'libgcrypt' 'libgpg-error' 'openssl' 'libxcb' 'gcc-libs'
     'iproute2' 'libnl' 'libx11' 'numactl' 'gettext' 'ceph-libs' 'libssh2' 'netcf' 'perl-xml-xpath')
makedepends=('pkgconfig' 'lvm2' 'linux-api-headers' 'dnsmasq' 'rpcsvc-proto'
         'libiscsi' 'python-docutils' 'perl-xml-xpath' 'libxslt' 'git' 'xhtml-docs' 'rsync' 'rpcsvc-proto')
optdepends=('ebtables: required for default NAT networking'
        'dnsmasq: required for default NAT/DHCP for guests'
        'bridge-utils: for bridged networking'
        'openbsd-netcat: for remote management over ssh'
        'pm-utils: host power management')
pkgver() {
  cd "$SRCDEST/${pkgname/-git/}"
  git describe --always | sed 's|-|.|g' | sed 's/^.//'

prepare() {
  cd "$srcdir/${pkgname/-git/}"

  for file in $(find . -name '*.py' -print); do
    sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python_' $file
    sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python_' $file

  sed -i 's|/sysconfig/|/conf.d/|g' \
    src/remote/ \
    tools/{libvirt-guests.service,,virt-pki-validate}.in \
  sed -i 's|@sbindir@|/usr/bin|g' src/locking/
  # 78 is kvm group:
  sed -i 's|#group =.*|group="78"|' src/qemu/qemu.conf
  sed -i 's|/usr/libexec/qemu-bridge-helper|/usr/lib/qemu/qemu-bridge-helper|g' \
    src/qemu/qemu{.conf,_conf.c} \

  sed -i 's/notify/simple/' src/remote/

build() {
  cd "$srcdir/${pkgname/-git/}"

  export PYTHON=`which python`
  export LDFLAGS=-lX11
  export RADVD=/usr/bin/radvd
  sed -i 's|libsystemd-daemon|libsystemd|g' configure
  mkdir build && cd build

  [ -f Makefile ] || ../configure --prefix=/usr --libexec=/usr/lib/"${pkgname/-git/}" --sbindir=/usr/bin \
    --with-storage-lvm --with-udev --without-hal --disable-static \
    --with-init-script=systemd \
    --with-qemu-user=nobody --with-qemu-group=nobody \
    --with-netcf --with-interface

package() {
  cd "$srcdir/${pkgname/-git/}/build"

  make DESTDIR="$pkgdir" install

  install -D -m644 "$srcdir"/libvirtd.conf.d "$pkgdir"/etc/conf.d/libvirtd
  install -D -m644 "$srcdir"/libvirtd-guests.conf.d "$pkgdir"/etc/conf.d/libvirt-guests
  install -D -m644 "$srcdir"/libvirt.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/libvirt.conf

  chown -R 0:78 "$pkgdir"/var/lib/libvirt/qemu
  chmod 0770 "$pkgdir"/var/lib/libvirt/qemu

  chown 0:102 "$pkgdir"/usr/share/polkit-1/rules.d
  chmod 0750 "$pkgdir"/usr/share/polkit-1/rules.d

  rm -rf \
    "$pkgdir"/var/run \
    "$pkgdir"/etc/sysconfig \

FredBezies commented on 2020-01-07 12:25

Cannot be built:

autoreconf: Leaving directory `.'
./bootstrap: ln -fs ../.gnulib/build-aux/install-sh build-aux/install-sh
./bootstrap: ln -fs ../.gnulib/build-aux/depcomp build-aux/depcomp
./bootstrap: ln -fs ../.gnulib/build-aux/config.guess build-aux/config.guess
./bootstrap: ln -fs ../.gnulib/build-aux/config.sub build-aux/config.sub
./bootstrap: ln -fs .gnulib/doc/INSTALL INSTALL
./bootstrap: done.  Now you can run 'mkdir build && cd build && ../configure'.
configure: error: Build directory must be different from source directory

You need to add:

mkdir build && cd build


[ -f Makefile ] || ../configure --prefix=/usr --libexec=/usr/lib/"${pkgname/-git/}" --sbindir=/usr/bin \

Also, rs2html5 from python-docutils is needed:

checking for rst2html5... no
checking for no
checking for rst2html5-3... no
checking for rst2html... no
checking for no
checking for rst2html-3... no
configure: error: "rst2html5/rst2html is required to build libvirt"

eschwartz commented on 2019-09-19 15:52

This is the Arch Linux distribution. There is no such thing as a "wireshark development package", the "wireshark-cli" base package provides the headers.

config.h is not an official wireshark header. The wireshark developers do not install any such file, however, software developed by Debian or Fedora developers may rely on broken packaging by other distros, which erroneously ship a false header that must not be used.


sniper7kills commented on 2019-07-21 03:47

For those interested and running into the <wireshark/config.h> issue.

I had to manually install the libwireshark-dev package from debian. (Extract the .deb file, then extract the data.tar.xz file; and then copy the usr contents accordingly.)

It looks like the wireshark-cli contains most of the source files; but not all of them. (so this may be an issue that needs to be brought up in the wireshark-cli package?) If you don't have wireshark-cli installed you should be able to use debtap to install the libwireshark-dev package from debian.