Skip to content

Commit

Permalink
libvirt: Add qemu to runtime closure
Browse files Browse the repository at this point in the history
The program `qemu-img` is needed during creation of virtual machines
with qcow2 images. Otherwise creation of such VMs (e.g. with
virt-manager) are failing.
  • Loading branch information
KaiHa authored and bjornfor committed Sep 25, 2017
1 parent 0353ddc commit 32e4e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libvirt/default.nix
Expand Up @@ -4,7 +4,7 @@
, iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages
, curl, libiconv, gmp, xen, zfs, parted
, curl, libiconv, gmp, xen, zfs, parted, qemu
}:

with stdenv.lib;
Expand Down Expand Up @@ -89,7 +89,7 @@ stdenv.mkDerivation rec {
substituteInPlace $out/lib/systemd/system/libvirtd.service --replace /bin/kill ${coreutils}/bin/kill
rm $out/lib/systemd/system/{virtlockd,virtlogd}.*
wrapProgram $out/sbin/libvirtd \
--prefix PATH : ${makeBinPath [ iptables iproute pmutils numad numactl ]}
--prefix PATH : ${makeBinPath [ iptables iproute pmutils numad numactl qemu ]}
'';

enableParallelBuilding = true;
Expand Down

0 comments on commit 32e4e2c

Please sign in to comment.