3 %define mainstream_version 1.2.11
4 %define module_version_varname mainstream_version
6 %define packager PlanetLab/OneLab
8 #libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
9 ## --without storage-fs --without storage-lvm \
10 ## --without polkit --without sasl --without audit --with capng --with udev \
11 ## --without netcf --without avahi --without sanlock \
12 ## --without xen --without qemu --without hyperv --without phyp --without esx \
13 ## --without libxl --without vbox \
14 %define _without_storage_disk true
15 %define _without_storage_iscsi true
16 %define _without_storage_fs true
17 %define _without_storage_lvm true
18 %define _without_polkit true
19 %define _without_sasl true
20 %define _without_audit true
21 %define _without_avahi true
22 %define _without_sanlock true
23 %define _without_xen true
24 %define _without_qemu true
25 %define _without_hyperv true
26 %define _without_phyp true
27 %define _without_esx true
28 %define _without_libxl true
29 %define _without_vbox true
30 %define _without_uml true
32 #turn this off even on f18 as an attempt to get back /proc/meminfo
33 %define _without_fuse true
35 %define enable_autotools 1
37 # This spec file assumes you are building for Fedora 13 or newer,
38 # or for RHEL 5 or newer. It may need some tweaks for other distros.
39 # If neither fedora nor rhel was defined, try to guess them from %{dist}
40 %if !0%{?rhel} && !0%{?fedora}
41 %{expand:%(echo "%{?dist}" | \
42 sed -ne 's/^\.el\([0-9]\+\).*/%%define rhel \1/p')}
43 %{expand:%(echo "%{?dist}" | \
44 sed -ne 's/^\.fc\?\([0-9]\+\).*/%%define fedora \1/p')}
47 # Default to skipping autoreconf. Distros can change just this one line
48 # (or provide a command-line override) if they backport any patches that
49 # touch configure.ac or Makefile.am.
50 %{!?enable_autotools:%define enable_autotools 0}
52 # A client only build will create a libvirt.so only containing
53 # the generic RPC driver, and test driver and no libvirtd
54 # Default to a full server + client build, but with the possibility
55 # of a command-line or ~/.rpmmacros override for client-only.
56 %{!?client_only:%define client_only 0}
58 # Now turn off server build in certain cases
60 # RHEL-5 builds are client-only for s390, ppc
62 %ifnarch %{ix86} x86_64 ia64
67 # Disable all server side drivers if client only build requested
69 %define server_drivers 0
71 %define server_drivers 1
74 # Always build with dlopen'd modules
75 %define with_driver_modules 1
77 # Now set the defaults for all the important features, independent
78 # of any particular OS
80 # First the daemon itself
81 %define with_libvirtd 0%{!?_without_libvirtd:%{server_drivers}}
82 %define with_avahi 0%{!?_without_avahi:%{server_drivers}}
84 # Then the hypervisor drivers that run in libvirtd
85 %define with_xen 0%{!?_without_xen:%{server_drivers}}
86 %define with_qemu 0%{!?_without_qemu:%{server_drivers}}
87 %define with_lxc 0%{!?_without_lxc:%{server_drivers}}
88 %define with_uml 0%{!?_without_uml:%{server_drivers}}
89 %define with_libxl 0%{!?_without_libxl:%{server_drivers}}
90 %define with_vbox 0%{!?_without_vbox:%{server_drivers}}
92 %define with_qemu_tcg %{with_qemu}
93 %define qemu_kvm_arches %{ix86} x86_64
97 # Fedora doesn't have any QEMU on ppc64 until FC16 - only ppc
98 # I think F17 is the first release with the power64 macro
100 %define with_qemu_tcg 0
103 %if 0%{?fedora} >= 18
104 %define qemu_kvm_arches %{ix86} x86_64 %{power64} s390x
106 %if 0%{?fedora} >= 20
107 %define qemu_kvm_arches %{ix86} x86_64 %{power64} s390x %{arm} aarch64
112 %define with_qemu_tcg 0
113 %define qemu_kvm_arches x86_64
116 %ifarch %{qemu_kvm_arches}
117 %define with_qemu_kvm %{with_qemu}
119 %define with_qemu_kvm 0
122 %if ! %{with_qemu_tcg} && ! %{with_qemu_kvm}
126 # Then the hypervisor drivers that run outside libvirtd, in libvirt.so
127 %define with_openvz 0%{!?_without_openvz:1}
128 %define with_vmware 0%{!?_without_vmware:1}
129 %define with_phyp 0%{!?_without_phyp:1}
130 %define with_esx 0%{!?_without_esx:1}
131 %define with_hyperv 0%{!?_without_hyperv:1}
132 %define with_xenapi 0%{!?_without_xenapi:1}
133 %define with_parallels 0%{!?_without_parallels:1}
134 # No test for bhyve, because it does not build on Linux
136 # Then the secondary host drivers, which run inside libvirtd
137 %define with_interface 0%{!?_without_interface:%{server_drivers}}
138 %define with_network 0%{!?_without_network:%{server_drivers}}
139 %define with_storage_fs 0%{!?_without_storage_fs:%{server_drivers}}
140 %define with_storage_lvm 0%{!?_without_storage_lvm:%{server_drivers}}
141 %define with_storage_iscsi 0%{!?_without_storage_iscsi:%{server_drivers}}
142 %define with_storage_disk 0%{!?_without_storage_disk:%{server_drivers}}
143 %define with_storage_mpath 0%{!?_without_storage_mpath:%{server_drivers}}
144 %if 0%{?fedora} >= 16
145 %define with_storage_rbd 0%{!?_without_storage_rbd:%{server_drivers}}
147 %define with_storage_rbd 0
149 %if 0%{?fedora} >= 17
150 %define with_storage_sheepdog 0%{!?_without_storage_sheepdog:%{server_drivers}}
152 %define with_storage_sheepdog 0
154 %if 0%{?fedora} >= 19 || 0%{?rhel} >= 6
155 %define with_storage_gluster 0%{!?_without_storage_gluster:%{server_drivers}}
157 %define with_storage_gluster 0
159 %define with_numactl 0%{!?_without_numactl:%{server_drivers}}
160 %define with_selinux 0%{!?_without_selinux:%{server_drivers}}
162 # Just hardcode to off, since few people ever have apparmor RPMs installed
163 %define with_apparmor 0%{!?_without_apparmor:0}
165 # A few optional bits off by default, we enable later
166 %define with_polkit 0%{!?_without_polkit:0}
167 %define with_capng 0%{!?_without_capng:0}
168 %define with_fuse 0%{!?_without_fuse:0}
169 %define with_netcf 0%{!?_without_netcf:0}
170 %define with_udev 0%{!?_without_udev:0}
171 %define with_hal 0%{!?_without_hal:0}
172 %define with_yajl 0%{!?_without_yajl:0}
173 %define with_nwfilter 0%{!?_without_nwfilter:0}
174 %define with_libpcap 0%{!?_without_libpcap:0}
175 %define with_macvtap 0%{!?_without_macvtap:0}
176 %define with_libnl 0%{!?_without_libnl:0}
177 %define with_dtrace 0%{!?_without_dtrace:0}
178 %define with_cgconfig 0%{!?_without_cgconfig:0}
179 %define with_sanlock 0%{!?_without_sanlock:0}
180 %define with_systemd 0%{!?_without_systemd:0}
181 %define with_numad 0%{!?_without_numad:0}
182 %define with_firewalld 0%{!?_without_firewalld:0}
183 %define with_libssh2 0%{!?_without_libssh2:0}
184 %define with_wireshark 0%{!?_without_wireshark:0}
185 %define with_systemd_daemon 0%{!?_without_systemd_daemon:0}
186 %define with_pm_utils 1
188 # Non-server/HV driver defaults which are always enabled
189 %define with_sasl 0%{!?_without_sasl:1}
190 %define with_audit 0%{!?_without_audit:1}
193 # Finally set the OS / architecture specific special cases
195 # Xen is available only on i386 x86_64 ia64
196 %ifnarch %{ix86} x86_64 ia64
201 # vbox is available only on i386 x86_64
202 %ifnarch %{ix86} x86_64
206 # Numactl is not available on s390[x] and ARM
207 %ifarch s390 s390x %{arm}
208 %define with_numactl 0
211 # libgfapi is built only on x86_64 on rhel
214 %define with_storage_gluster 0
218 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
219 # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
222 %define with_openvz 0
226 %define with_vmware 0
227 %define with_xenapi 0
229 %define with_hyperv 0
230 %define with_parallels 0
233 # Fedora 17 / RHEL-7 are first where we use systemd. Although earlier
234 # Fedora has systemd, libvirt still used sysvinit there.
235 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
236 %define with_systemd 1
237 %define with_systemd_daemon 1
238 %define with_pm_utils 0
241 # Fedora 18 / RHEL-7 are first where firewalld support is enabled
242 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
243 %define with_firewalld 1
246 # RHEL-5 is too old for LXC
251 # RHEL-6 stopped including Xen on all archs.
256 # Fedora doesn't have new enough Xen for libxl until F18
257 %if 0%{?fedora} && 0%{?fedora} < 18
261 # fuse is used to provide virtualized /proc for LXC
262 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
263 %define with_fuse 0%{!?_without_fuse:1}
266 # RHEL 5 lacks newer tools
268 %define with_hal 0%{!?_without_hal:%{server_drivers}}
270 %define with_polkit 0%{!?_without_polkit:1}
271 %define with_capng 0%{!?_without_capng:1}
272 %define with_netcf 0%{!?_without_netcf:%{server_drivers}}
273 %define with_udev 0%{!?_without_udev:%{server_drivers}}
274 %define with_yajl 0%{!?_without_yajl:%{server_drivers}}
275 %define with_dtrace 1
278 # interface requires netcf
279 %if ! 0%{?with_netcf}
280 %define with_interface 0
283 # Enable sanlock library for lock management with QEMU
284 %if 0%{?fedora} >= 16
285 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
288 %ifarch %{qemu_kvm_arches}
289 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
294 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
298 # Enable libssh2 transport for new enough distros
299 %if 0%{?fedora} >= 17
300 %define with_libssh2 0%{!?_without_libssh2:1}
303 # Enable wireshark plugins for all distros shipping libvirt 1.2.2 or newer
304 %if 0%{?fedora} >= 21
305 %define with_wireshark 0%{!?_without_wireshark:1}
308 # Disable some drivers when building without libvirt daemon.
309 # The logic is the same as in configure.ac
310 %if ! %{with_libvirtd}
311 %define with_interface 0
312 %define with_network 0
318 %define with_storage_fs 0
319 %define with_storage_lvm 0
320 %define with_storage_iscsi 0
321 %define with_storage_mpath 0
322 %define with_storage_rbd 0
323 %define with_storage_sheepdog 0
324 %define with_storage_gluster 0
325 %define with_storage_disk 0
328 %if %{with_qemu} || %{with_lxc} || %{with_uml}
329 %define with_nwfilter 0%{!?_without_nwfilter:%{server_drivers}}
330 # Enable libpcap library
331 %define with_libpcap 0%{!?_without_libpcap:%{server_drivers}}
332 %define with_macvtap 0%{!?_without_macvtap:%{server_drivers}}
334 # numad is used to manage the CPU and memory placement dynamically,
335 # it's not available on s390[x] and ARM.
336 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
337 %ifnarch s390 s390x %{arm}
338 %define with_numad 0%{!?_without_numad:%{server_drivers}}
347 # Pull in cgroups config system
348 %if 0%{?fedora} || 0%{?rhel} >= 6
349 %if %{with_qemu} || %{with_lxc}
350 %define with_cgconfig 0%{!?_without_cgconfig:1}
354 %if %{with_udev} || %{with_hal}
355 %define with_nodedev 1
357 %define with_nodedev 0
360 %if %{with_storage_fs} || %{with_storage_mpath} || %{with_storage_iscsi} || %{with_storage_lvm} || %{with_storage_disk}
361 %define with_storage 1
363 %define with_storage 0
367 # Force QEMU to run as non-root
368 %if 0%{?fedora} || 0%{?rhel} >= 6
369 %define qemu_user qemu
370 %define qemu_group qemu
372 %define qemu_user root
373 %define qemu_group root
377 # The RHEL-5 Xen package has some feature backports. This
378 # flag is set to enable use of those special bits on RHEL-5
385 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
386 %define with_systemd_macros 1
388 %define with_systemd_macros 0
392 # RHEL releases provide stable tool chains and so it is safe to turn
393 # compiler warning into errors without being worried about frequent
394 # changes in reported warnings
396 %define enable_werror --enable-werror
400 Summary: Library providing a simple virtualization API
402 Version: %{mainstream_version}
405 Group: Development/Libraries
406 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
407 URL: http://libvirt.org/
409 %if %(echo %{version} | grep -o \\. | wc -l) == 3
410 %define mainturl stable_updates/
412 Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.gz
415 Requires: libvirt-daemon = %{version}-%{release}
417 Requires: libvirt-daemon-config-network = %{version}-%{release}
420 Requires: libvirt-daemon-config-nwfilter = %{version}-%{release}
422 %if %{with_driver_modules}
424 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
427 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
430 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
433 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
436 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
439 Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
442 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
445 %if %{with_interface}
446 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
448 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
449 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
450 Requires: libvirt-daemon-driver-network = %{version}-%{release}
451 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
454 Requires: libvirt-client = %{version}-%{release}
456 # All build-time requirements. Run-time requirements are
457 # listed against each sub-RPM
458 %if 0%{?enable_autotools}
459 BuildRequires: autoconf
460 BuildRequires: automake
461 BuildRequires: gettext-devel
462 BuildRequires: libtool
463 BuildRequires: /usr/bin/pod2man
467 BuildRequires: python
469 BuildRequires: systemd-units
471 %if %{with_systemd_daemon}
472 BuildRequires: systemd-devel
474 %if %{with_xen} || %{with_libxl}
475 BuildRequires: xen-devel
477 BuildRequires: libxml2-devel
478 BuildRequires: xhtml1-dtds
479 BuildRequires: libxslt
480 BuildRequires: readline-devel
481 BuildRequires: ncurses-devel
482 BuildRequires: gettext
483 BuildRequires: libtasn1-devel
484 %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 19)
485 BuildRequires: libgcrypt-devel
487 BuildRequires: gnutls-devel
488 BuildRequires: libattr-devel
490 # For pool-build probing for existing pools
491 BuildRequires: libblkid-devel >= 2.17
493 %if 0%{?fedora} || 0%{?rhel} >= 6
494 # for augparse, optionally used in testing
495 BuildRequires: augeas
498 BuildRequires: hal-devel
501 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
502 BuildRequires: systemd-devel >= 185
504 BuildRequires: libudev-devel >= 145
506 BuildRequires: libpciaccess-devel >= 0.10.9
509 BuildRequires: yajl-devel
512 # make sure libvirt is built with new enough sanlock on
513 # distros that have it; required for on_lockfailure
514 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
515 BuildRequires: sanlock-devel >= 2.4
517 BuildRequires: sanlock-devel >= 1.8
521 BuildRequires: libpcap-devel
524 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
525 BuildRequires: libnl3-devel
527 BuildRequires: libnl-devel
531 BuildRequires: avahi-devel
534 BuildRequires: libselinux-devel
537 BuildRequires: libapparmor-devel
540 BuildRequires: dnsmasq >= 2.41
541 BuildRequires: iptables
542 %if (0%{?fedora} && 0%{?fedora} < 17) || (0%{?rhel} && 0%{?rhel} < 7)
543 BuildRequires: iptables-ipv6
548 BuildRequires: ebtables
550 BuildRequires: module-init-tools
552 BuildRequires: cyrus-sasl-devel
555 %if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
556 BuildRequires: polkit-devel >= 0.112
558 %if 0%{?fedora} || 0%{?rhel} >= 6
559 BuildRequires: polkit-devel >= 0.93
561 BuildRequires: PolicyKit-devel >= 0.6
565 %if %{with_storage_fs}
566 # For mount/umount in FS driver
567 BuildRequires: util-linux
571 BuildRequires: /usr/bin/qemu-img
575 BuildRequires: /usr/sbin/qcow-create
578 %if %{with_storage_lvm}
582 %if %{with_storage_iscsi}
584 BuildRequires: iscsi-initiator-utils
586 %if %{with_storage_disk}
588 BuildRequires: parted-devel
590 # Broken RHEL-5 parted RPM is missing a dep
591 BuildRequires: e2fsprogs-devel
594 %if %{with_storage_mpath} || %{with_storage_disk}
595 # For Multipath support
597 # Broken RHEL-5 packaging has header files in main RPM :-(
598 BuildRequires: device-mapper
600 BuildRequires: device-mapper-devel
603 %if %{with_storage_rbd}
604 BuildRequires: ceph-devel
606 %if %{with_storage_gluster}
608 BuildRequires: glusterfs-api-devel >= 3.4.0
609 BuildRequires: glusterfs-devel >= 3.4.0
611 BuildRequires: glusterfs-api-devel >= 3.4.1
612 BuildRequires: glusterfs-devel >= 3.4.1
616 # For QEMU/LXC numa info
617 BuildRequires: numactl-devel
620 BuildRequires: libcap-ng-devel >= 0.5.0
623 BuildRequires: fuse-devel >= 2.8.6
625 %if %{with_phyp} || %{with_libssh2}
626 BuildRequires: libssh2-devel >= 1.3.0
630 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
631 BuildRequires: netcf-devel >= 0.2.2
633 %if 0%{?fedora} >= 16 || 0%{?rhel} >= 6
634 BuildRequires: netcf-devel >= 0.1.8
636 BuildRequires: netcf-devel >= 0.1.4
641 %if 0%{?fedora} || 0%{?rhel} >= 6
642 BuildRequires: libcurl-devel
644 BuildRequires: curl-devel
648 BuildRequires: libwsman-devel >= 2.2.3
651 BuildRequires: audit-libs-devel
654 # we need /usr/sbin/dtrace
655 BuildRequires: systemtap-sdt-devel
658 %if %{with_storage_fs}
659 # For mount/umount in FS driver
660 BuildRequires: util-linux
661 # For showmount in FS driver (netfs discovery)
662 BuildRequires: nfs-utils
665 %if %{with_firewalld}
666 # Communication with the firewall daemon uses DBus
667 BuildRequires: dbus-devel
670 # Fedora build root suckage
673 # For storage wiping with different algorithms
680 %if %{with_wireshark}
681 BuildRequires: wireshark-devel
684 Provides: bundled(gnulib)
687 Libvirt is a C toolkit to interact with the virtualization capabilities
688 of recent versions of Linux (and other OSes). The main package includes
689 the libvirtd server exporting the virtualization support.
692 Summary: API reference and website documentation
693 Group: Development/Libraries
696 Includes the API reference for the libvirt C library, and a complete
697 copy of the libvirt.org website documentation.
701 Summary: Server side daemon and supporting files for libvirt library
702 Group: Development/Libraries
704 # All runtime requirements for the libvirt package (runtime requrements
705 # for subpackages are listed later in those subpackages)
707 # The client side, i.e. shared libs and virsh are in a subpackage
708 Requires: %{name}-client = %{version}-%{release}
710 # for modprobe of pci devices
711 Requires: module-init-tools
712 # for /sbin/ip & /sbin/tc
722 %if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
723 Requires: polkit >= 0.112
725 %if 0%{?fedora} || 0%{?rhel} >=6
726 Requires: polkit >= 0.93
728 Requires: PolicyKit >= 0.6
735 %ifarch %{ix86} x86_64 ia64
736 # For virConnectGetSysinfo
739 # For service management
741 Requires(post): systemd-units
742 Requires(post): systemd-sysv
743 Requires(preun): systemd-units
744 Requires(postun): systemd-units
749 # libvirtd depends on 'messagebus' service
751 # For uid creation during pre
752 Requires(pre): shadow-utils
755 Server side daemon required to manage the virtualization capabilities
756 of recent versions of Linux. Requires a hypervisor specific sub-RPM
757 for specific drivers.
760 %package daemon-config-network
761 Summary: Default configuration files for the libvirtd daemon
762 Group: Development/Libraries
764 Requires: libvirt-daemon = %{version}-%{release}
765 %if %{with_driver_modules}
766 Requires: libvirt-daemon-driver-network = %{version}-%{release}
769 %description daemon-config-network
770 Default configuration files for setting up NAT based networking
774 %package daemon-config-nwfilter
775 Summary: Network filter configuration files for the libvirtd daemon
776 Group: Development/Libraries
778 Requires: libvirt-daemon = %{version}-%{release}
779 %if %{with_driver_modules}
780 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
783 %description daemon-config-nwfilter
784 Network filter configuration files for cleaning guest traffic
787 %if %{with_driver_modules}
789 %package daemon-driver-network
790 Summary: Network driver plugin for the libvirtd daemon
791 Group: Development/Libraries
792 Requires: libvirt-daemon = %{version}-%{release}
793 Requires: dnsmasq >= 2.41
796 %if (0%{?fedora} && 0%{?fedora} < 17) || (0%{?rhel} && 0%{?rhel} < 7)
797 Requires: iptables-ipv6
800 %description daemon-driver-network
801 The network driver plugin for the libvirtd daemon, providing
802 an implementation of the virtual network APIs using the Linux
808 %package daemon-driver-nwfilter
809 Summary: Nwfilter driver plugin for the libvirtd daemon
810 Group: Development/Libraries
811 Requires: libvirt-daemon = %{version}-%{release}
813 %if (0%{?fedora} && 0%{?fedora} < 17) || (0%{?rhel} && 0%{?rhel} < 7)
814 Requires: iptables-ipv6
818 %description daemon-driver-nwfilter
819 The nwfilter driver plugin for the libvirtd daemon, providing
820 an implementation of the firewall APIs using the ebtables,
821 iptables and ip6tables capabilities
826 %package daemon-driver-nodedev
827 Summary: Nodedev driver plugin for the libvirtd daemon
828 Group: Development/Libraries
829 Requires: libvirt-daemon = %{version}-%{release}
830 # needed for device enumeration
835 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
836 Requires: systemd >= 185
838 Requires: udev >= 145
842 %description daemon-driver-nodedev
843 The nodedev driver plugin for the libvirtd daemon, providing
844 an implementation of the node device APIs using the udev
849 %if %{with_interface}
850 %package daemon-driver-interface
851 Summary: Interface driver plugin for the libvirtd daemon
852 Group: Development/Libraries
853 Requires: libvirt-daemon = %{version}-%{release}
854 %if %{with_netcf} && (0%{?fedora} >= 18 || 0%{?rhel} >= 7)
855 Requires: netcf-libs >= 0.2.2
858 %description daemon-driver-interface
859 The interface driver plugin for the libvirtd daemon, providing
860 an implementation of the network interface APIs using the
865 %package daemon-driver-secret
866 Summary: Secret driver plugin for the libvirtd daemon
867 Group: Development/Libraries
868 Requires: libvirt-daemon = %{version}-%{release}
870 %description daemon-driver-secret
871 The secret driver plugin for the libvirtd daemon, providing
872 an implementation of the secret key APIs.
876 %package daemon-driver-storage
877 Summary: Storage driver plugin for the libvirtd daemon
878 Group: Development/Libraries
879 Requires: libvirt-daemon = %{version}-%{release}
880 %if %{with_storage_fs}
886 Requires: glusterfs-client >= 2.0.1
889 %if %{with_storage_lvm}
893 %if %{with_storage_iscsi}
895 Requires: iscsi-initiator-utils
897 %if %{with_storage_disk}
900 Requires: device-mapper
902 %if %{with_storage_mpath}
903 # For multipath support
904 Requires: device-mapper
906 %if %{with_storage_sheepdog}
907 # For Sheepdog support
912 Requires: /usr/bin/qemu-img
916 Requires: /usr/sbin/qcow-create
920 %description daemon-driver-storage
921 The storage driver plugin for the libvirtd daemon, providing
922 an implementation of the storage APIs using LVM, iSCSI,
928 %package daemon-driver-qemu
929 Summary: Qemu driver plugin for the libvirtd daemon
930 Group: Development/Libraries
931 Requires: libvirt-daemon = %{version}-%{release}
932 # There really is a hard cross-driver dependency here
933 Requires: libvirt-daemon-driver-network = %{version}-%{release}
934 Requires: /usr/bin/qemu-img
935 # For image compression
941 %description daemon-driver-qemu
942 The qemu driver plugin for the libvirtd daemon, providing
943 an implementation of the hypervisor driver APIs using
949 %package daemon-driver-lxc
950 Summary: LXC driver plugin for the libvirtd daemon
951 Group: Development/Libraries
952 Requires: libvirt-daemon = %{version}-%{release}
953 # There really is a hard cross-driver dependency here
954 Requires: libvirt-daemon-driver-network = %{version}-%{release}
956 %description daemon-driver-lxc
957 The LXC driver plugin for the libvirtd daemon, providing
958 an implementation of the hypervisor driver APIs using
964 %package daemon-driver-uml
965 Summary: Uml driver plugin for the libvirtd daemon
966 Group: Development/Libraries
967 Requires: libvirt-daemon = %{version}-%{release}
969 %description daemon-driver-uml
970 The UML driver plugin for the libvirtd daemon, providing
971 an implementation of the hypervisor driver APIs using
977 %package daemon-driver-xen
978 Summary: Xen driver plugin for the libvirtd daemon
979 Group: Development/Libraries
980 Requires: libvirt-daemon = %{version}-%{release}
982 %description daemon-driver-xen
983 The Xen driver plugin for the libvirtd daemon, providing
984 an implementation of the hypervisor driver APIs using
990 %package daemon-driver-vbox
991 Summary: VirtualBox driver plugin for the libvirtd daemon
992 Group: Development/Libraries
993 Requires: libvirt-daemon = %{version}-%{release}
995 %description daemon-driver-vbox
996 The vbox driver plugin for the libvirtd daemon, providing
997 an implementation of the hypervisor driver APIs using
1003 %package daemon-driver-libxl
1004 Summary: Libxl driver plugin for the libvirtd daemon
1005 Group: Development/Libraries
1006 Requires: libvirt-daemon = %{version}-%{release}
1008 %description daemon-driver-libxl
1009 The Libxl driver plugin for the libvirtd daemon, providing
1010 an implementation of the hypervisor driver APIs using
1013 %endif # %{with_driver_modules}
1017 %if %{with_qemu_tcg}
1018 %package daemon-qemu
1019 Summary: Server side daemon & driver required to run QEMU guests
1020 Group: Development/Libraries
1022 Requires: libvirt-daemon = %{version}-%{release}
1023 %if %{with_driver_modules}
1024 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
1025 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1026 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1027 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1028 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1029 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1030 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1034 %description daemon-qemu
1035 Server side daemon and driver required to manage the virtualization
1036 capabilities of the QEMU TCG emulators
1040 %if %{with_qemu_kvm}
1042 Summary: Server side daemon & driver required to run KVM guests
1043 Group: Development/Libraries
1045 Requires: libvirt-daemon = %{version}-%{release}
1046 %if %{with_driver_modules}
1047 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
1048 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1049 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1050 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1051 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1052 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1053 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1057 %description daemon-kvm
1058 Server side daemon and driver required to manage the virtualization
1059 capabilities of the KVM hypervisor
1065 Summary: Server side daemon & driver required to run LXC guests
1066 Group: Development/Libraries
1068 Requires: libvirt-daemon = %{version}-%{release}
1069 %if %{with_driver_modules}
1070 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
1071 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1072 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1073 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1074 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1075 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1076 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1079 %description daemon-lxc
1080 Server side daemon and driver required to manage the virtualization
1087 Summary: Server side daemon & driver required to run UML guests
1088 Group: Development/Libraries
1090 Requires: libvirt-daemon = %{version}-%{release}
1091 %if %{with_driver_modules}
1092 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
1093 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1094 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1095 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1096 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1097 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1098 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1100 # There are no UML kernel RPMs in Fedora/RHEL to depend on.
1102 %description daemon-uml
1103 Server side daemon and driver required to manage the virtualization
1108 %if %{with_xen} || %{with_libxl}
1110 Summary: Server side daemon & driver required to run XEN guests
1111 Group: Development/Libraries
1113 Requires: libvirt-daemon = %{version}-%{release}
1114 %if %{with_driver_modules}
1116 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
1119 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
1121 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1122 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1123 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1124 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1125 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1126 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1130 %description daemon-xen
1131 Server side daemon and driver required to manage the virtualization
1136 %package daemon-vbox
1137 Summary: Server side daemon & driver required to run VirtualBox guests
1138 Group: Development/Libraries
1140 Requires: libvirt-daemon = %{version}-%{release}
1141 %if %{with_driver_modules}
1142 Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
1143 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1144 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1145 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1146 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1147 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1148 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1151 %description daemon-vbox
1152 Server side daemon and driver required to manage the virtualization
1153 capabilities of VirtualBox
1155 %endif # %{with_libvirtd}
1158 Summary: Client side library and utilities of the libvirt library
1159 Group: Development/Libraries
1162 # So remote clients can access libvirt over SSH tunnel
1163 # (client invokes 'nc' against the UNIX socket on the server)
1165 # Needed by /usr/libexec/libvirt-guests.sh script.
1167 # Needed by virt-pki-validate script.
1168 Requires: gnutls-utils
1169 %if %{with_pm_utils}
1170 # Needed for probing the power management features of the host.
1174 Requires: cyrus-sasl
1175 # Not technically required, but makes 'out-of-box' config
1176 # work correctly & doesn't have onerous dependencies
1177 Requires: cyrus-sasl-md5
1181 Shared libraries and client binaries needed to access to the
1182 virtualization capabilities of recent versions of Linux (and other OSes).
1184 %if %{with_wireshark}
1186 Summary: Wireshark dissector plugin for libvirt RPC transactions
1187 Group: Development/Libraries
1189 Requires: %{name}-client = %{version}-%{release}
1191 %description wireshark
1192 Wireshark dissector plugin for better analysis of libvirt RPC traffic.
1196 %package login-shell
1197 Summary: Login shell for connecting users to an LXC container
1198 Group: Development/Libraries
1199 Requires: %{name}-client = %{version}-%{release}
1201 %description login-shell
1202 Provides the set-uid virt-login-shell binary that is used to
1203 connect a user to an LXC container when they login, by switching
1208 Summary: Libraries, includes, etc. to compile with the libvirt library
1209 Group: Development/Libraries
1210 Requires: %{name}-client = %{version}-%{release}
1211 Requires: %{name}-docs = %{version}-%{release}
1215 Include header files & development libraries for the libvirt C library.
1218 %package lock-sanlock
1219 Summary: Sanlock lock manager plugin for QEMU driver
1220 Group: Development/Libraries
1221 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
1222 Requires: sanlock >= 2.4
1224 Requires: sanlock >= 1.8
1226 #for virt-sanlock-cleanup require augeas
1228 Requires: %{name}-daemon = %{version}-%{release}
1229 Requires: %{name}-client = %{version}-%{release}
1231 %description lock-sanlock
1232 Includes the Sanlock lock manager plugin for the QEMU
1239 # Patches have to be stored in a temporary file because RPM has
1240 # a limit on the length of the result of any macro expansion;
1241 # if the string is longer, it's silently cropped
1244 f = io.open(tmp, "w+");
1246 for i, p in ipairs(patches) do
1251 print("PATCHCOUNT="..count.."\n")
1252 print("PATCHLIST="..tmp.."\n")
1256 git config user.name rpm-build
1257 git config user.email rpm-build
1258 git config gc.auto 0
1260 git commit -q -a --author 'rpm-build <rpm-build>' \
1261 -m '%{name}-%{version} base'
1263 COUNT=$(grep '\.patch$' $PATCHLIST | wc -l)
1264 if [ $COUNT -ne $PATCHCOUNT ]; then
1265 echo "Found $COUNT patches in $PATCHLIST, expected $PATCHCOUNT"
1268 if [ $COUNT -gt 0 ]; then
1269 xargs git am <$PATCHLIST || exit 1
1271 echo "Applied $COUNT patches"
1276 %define _without_xen --without-xen
1280 %define _without_qemu --without-qemu
1283 %if ! %{with_openvz}
1284 %define _without_openvz --without-openvz
1288 %define _without_lxc --without-lxc
1292 %define _without_vbox --without-vbox
1295 %if ! %{with_xenapi}
1296 %define _without_xenapi --without-xenapi
1300 %define _without_libxl --without-libxl
1304 %define _without_sasl --without-sasl
1308 %define _without_avahi --without-avahi
1312 %define _without_phyp --without-phyp
1316 %define _without_esx --without-esx
1319 %if ! %{with_hyperv}
1320 %define _without_hyperv --without-hyperv
1323 %if ! %{with_vmware}
1324 %define _without_vmware --without-vmware
1327 %if ! %{with_parallels}
1328 %define _without_parallels --without-parallels
1331 %if ! %{with_polkit}
1332 %define _without_polkit --without-polkit
1335 %if ! %{with_libvirtd}
1336 %define _without_libvirtd --without-libvirtd
1340 %define _without_uml --without-uml
1344 %define _with_rhel5_api --with-rhel5-api
1347 %if ! %{with_interface}
1348 %define _without_interface --without-interface
1351 %if ! %{with_network}
1352 %define _without_network --without-network
1355 %if ! %{with_storage_fs}
1356 %define _without_storage_fs --without-storage-fs
1359 %if ! %{with_storage_lvm}
1360 %define _without_storage_lvm --without-storage-lvm
1363 %if ! %{with_storage_iscsi}
1364 %define _without_storage_iscsi --without-storage-iscsi
1367 %if ! %{with_storage_disk}
1368 %define _without_storage_disk --without-storage-disk
1371 %if ! %{with_storage_mpath}
1372 %define _without_storage_mpath --without-storage-mpath
1375 %if ! %{with_storage_rbd}
1376 %define _without_storage_rbd --without-storage-rbd
1379 %if ! %{with_storage_sheepdog}
1380 %define _without_storage_sheepdog --without-storage-sheepdog
1383 %if ! %{with_storage_gluster}
1384 %define _without_storage_gluster --without-storage-gluster
1387 %if ! %{with_numactl}
1388 %define _without_numactl --without-numactl
1392 %define _without_numad --without-numad
1396 %define _without_capng --without-capng
1400 %define _without_fuse --without-fuse
1404 %define _without_netcf --without-netcf
1407 %if ! %{with_selinux}
1408 %define _without_selinux --without-selinux
1411 %if ! %{with_apparmor}
1412 %define _without_apparmor --without-apparmor
1416 %define _without_hal --without-hal
1420 %define _without_udev --without-udev
1424 %define _without_yajl --without-yajl
1427 %if ! %{with_sanlock}
1428 %define _without_sanlock --without-sanlock
1431 %if ! %{with_libpcap}
1432 %define _without_libpcap --without-libpcap
1435 %if ! %{with_macvtap}
1436 %define _without_macvtap --without-macvtap
1440 %define _without_audit --without-audit
1443 %if ! %{with_dtrace}
1444 %define _without_dtrace --without-dtrace
1447 %if ! %{with_driver_modules}
1448 %define _without_driver_modules --without-driver-modules
1451 %if %{with_firewalld}
1452 %define _with_firewalld --with-firewalld
1455 %if ! %{with_wireshark}
1456 %define _without_wireshark --without-wireshark-dissector
1459 %if ! %{with_systemd_daemon}
1460 %define _without_systemd_daemon --without-systemd-daemon
1463 %if ! %{with_pm_utils}
1464 %define _without_pm_utils --without-pm-utils
1467 %define when %(date +"%%F-%%T")
1468 %define where %(hostname)
1469 %define who %{?packager}%{!?packager:Unknown}
1470 %define with_packager --with-packager="%{who}, %{when}, %{where}"
1471 %define with_packager_version --with-packager-version="%{release}"
1474 %define init_scripts --with-init_script=systemd
1476 %define init_scripts --with-init_script=redhat
1480 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
1481 %define with_selinux_mount --with-selinux-mount="/sys/fs/selinux"
1483 %define with_selinux_mount --with-selinux-mount="/selinux"
1487 # place macros above and build commands below this comment
1489 %if 0%{?enable_autotools}
1494 %configure %{?_without_xen} \
1496 %{?_without_openvz} \
1499 %{?_without_libxl} \
1500 %{?_without_xenapi} \
1502 %{?_without_avahi} \
1503 %{?_without_polkit} \
1504 %{?_without_libvirtd} \
1508 %{?_without_hyperv} \
1509 %{?_without_vmware} \
1510 %{?_without_parallels} \
1512 %{?_without_interface} \
1513 %{?_without_network} \
1514 %{?_with_rhel5_api} \
1515 %{?_without_storage_fs} \
1516 %{?_without_storage_lvm} \
1517 %{?_without_storage_iscsi} \
1518 %{?_without_storage_disk} \
1519 %{?_without_storage_mpath} \
1520 %{?_without_storage_rbd} \
1521 %{?_without_storage_sheepdog} \
1522 %{?_without_storage_gluster} \
1523 %{?_without_numactl} \
1524 %{?_without_numad} \
1525 %{?_without_capng} \
1527 %{?_without_netcf} \
1528 %{?_without_selinux} \
1529 %{?_with_selinux_mount} \
1530 %{?_without_apparmor} \
1534 %{?_without_sanlock} \
1535 %{?_without_libpcap} \
1536 %{?_without_macvtap} \
1537 %{?_without_audit} \
1538 %{?_without_dtrace} \
1539 %{?_without_driver_modules} \
1540 %{?_with_firewalld} \
1541 %{?_without_wireshark} \
1542 %{?_without_systemd_daemon} \
1543 %{?_without_pm_utils} \
1545 %{with_packager_version} \
1546 --with-qemu-user=%{qemu_user} \
1547 --with-qemu-group=%{qemu_group} \
1549 --enable-expensive-tests \
1551 make %{?_smp_mflags}
1557 # Avoid using makeinstall macro as it changes prefixes rather than setting
1558 # DESTDIR. Newer make_install macro would be better but it's not available
1559 # on RHEL 5, thus we need to expand it here.
1560 make install DESTDIR=%{?buildroot} SYSTEMD_UNIT_DIR=%{_unitdir}
1562 for i in object-events dominfo domsuspend hellolibvirt openauth xml/nwfilter systemtap dommigrate domtop
1564 (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
1566 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
1567 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
1568 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la
1569 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a
1570 %if %{with_driver_modules}
1571 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la
1572 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a
1574 %if %{with_wireshark}
1575 rm -f $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la
1579 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
1580 # We don't want to install /etc/libvirt/qemu/networks in the main %files list
1581 # because if the admin wants to delete the default network completely, we don't
1582 # want to end up re-incarnating it on every RPM upgrade.
1583 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/
1584 cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \
1585 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1586 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1587 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1588 # Strip auto-generated UUID - we need it generated per-install
1589 sed -i -e "/<uuid>/d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1591 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1592 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1595 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
1596 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1600 %if ! %{with_sanlock}
1601 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug
1602 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
1606 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
1607 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1611 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
1612 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu
1615 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
1616 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
1619 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
1622 # Copied into libvirt-docs subpackage eventually
1623 mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version} libvirt-docs
1626 %ifarch %{power64} s390x x86_64 ia64 alpha sparc64
1627 mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \
1628 $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes-64.stp
1629 mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \
1630 $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes-64.stp
1635 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/sysctl.d/libvirtd.conf
1643 # do not run tests, this is mainstream business, and more importantly
1644 # our own setup is ti build inside a container already and we've seen
1645 # occasional red herrings because of that
1650 # These tests don't current work in a mock build root
1651 for i in nodeinfotest seclabeltest
1654 printf 'int main(void) { return 0; }' > $i.c
1655 printf '#!/bin/sh\nexit 0\n' > $i
1658 if ! make check VIR_TEST_DEBUG=1
1660 cat test-suite.log || true
1664 %if %{with_libvirtd}
1665 %if ! %{with_driver_modules}
1668 %if 0%{?fedora} || 0%{?rhel} >= 6
1669 # We want soft static allocation of well-known ids, as disk images
1670 # are commonly shared across NFS mounts by id rather than name; see
1671 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
1672 getent group kvm >/dev/null || groupadd -f -g 36 -r kvm
1673 getent group qemu >/dev/null || groupadd -f -g 107 -r qemu
1674 if ! getent passwd qemu >/dev/null; then
1675 if ! getent passwd 107 >/dev/null; then
1676 useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1678 useradd -r -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1689 %if %{with_systemd_macros}
1690 %systemd_post virtlockd.socket libvirtd.service libvirtd.socket
1692 if [ $1 -eq 1 ] ; then
1693 # Initial installation
1694 /bin/systemctl enable \
1696 libvirtd.service >/dev/null 2>&1 || :
1700 %if %{with_cgconfig}
1701 # Starting with Fedora 16/RHEL-7, systemd automounts all cgroups,
1702 # and cgconfig is no longer a necessary service.
1703 %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 16)
1704 if [ "$1" -eq "1" ]; then
1705 /sbin/chkconfig cgconfig on
1710 /sbin/chkconfig --add libvirtd
1711 /sbin/chkconfig --add virtlockd
1716 %if %{with_systemd_macros}
1717 %systemd_preun libvirtd.socket libvirtd.service virtlockd.socket virtlockd.service
1719 if [ $1 -eq 0 ] ; then
1720 # Package removal, not upgrade
1721 /bin/systemctl --no-reload disable \
1725 virtlockd.service > /dev/null 2>&1 || :
1726 /bin/systemctl stop \
1730 virtlockd.service > /dev/null 2>&1 || :
1735 /sbin/service libvirtd stop 1>/dev/null 2>&1
1736 /sbin/chkconfig --del libvirtd
1737 /sbin/service virtlockd stop 1>/dev/null 2>&1
1738 /sbin/chkconfig --del virtlockd
1744 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
1745 if [ $1 -ge 1 ] ; then
1746 /bin/systemctl reload-or-try-restart virtlockd.service >/dev/null 2>&1 || :
1747 /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1750 if [ $1 -ge 1 ]; then
1751 /sbin/service virtlockd reload > /dev/null 2>&1 || :
1752 /sbin/service libvirtd condrestart > /dev/null 2>&1
1758 %triggerpostun daemon -- libvirt-daemon < 1.2.1
1759 if [ "$1" -ge "1" ]; then
1760 /sbin/service virtlockd reload > /dev/null 2>&1 || :
1761 /sbin/service libvirtd condrestart > /dev/null 2>&1
1766 %post daemon-config-network
1767 if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
1768 # see if the network used by default network creates a conflict,
1769 # and try to resolve it
1770 # NB: 192.168.122.0/24 is used in the default.xml template file;
1771 # do not modify any of those values here without also modifying
1772 # them in the template.
1777 routes="${nl}$(ip route show | cut -d' ' -f1)${nl}"
1779 *"${nl}192.168.${orig_sub}.0/24${nl}"*)
1780 # there was a match, so we need to look for an unused subnet
1781 for new_sub in $(seq 124 254); do
1783 *"${nl}192.168.${new_sub}.0/24${nl}"*)
1796 UUID=`/usr/bin/uuidgen`
1797 sed -e "s/${orig_sub}/${sub}/g" \
1798 -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
1799 < %{_datadir}/libvirt/networks/default.xml \
1800 > %{_sysconfdir}/libvirt/qemu/networks/default.xml
1801 ln -s ../default.xml %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1806 %triggerun -- libvirt < 0.9.4
1807 %{_bindir}/systemd-sysv-convert --save libvirtd >/dev/null 2>&1 ||:
1809 # If the package is allowed to autostart:
1810 /bin/systemctl --no-reload enable libvirtd.service >/dev/null 2>&1 ||:
1812 # Run these because the SysV package being removed won't do them
1813 /sbin/chkconfig --del libvirtd >/dev/null 2>&1 || :
1814 /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1817 %if %{with_driver_modules}
1819 %pre daemon-driver-qemu
1820 %if 0%{?fedora} || 0%{?rhel} >= 6
1821 # We want soft static allocation of well-known ids, as disk images
1822 # are commonly shared across NFS mounts by id rather than name; see
1823 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
1824 getent group kvm >/dev/null || groupadd -f -g 36 -r kvm
1825 getent group qemu >/dev/null || groupadd -f -g 107 -r qemu
1826 if ! getent passwd qemu >/dev/null; then
1827 if ! getent passwd 107 >/dev/null; then
1828 useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1830 useradd -r -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1837 %endif # %{with_libvirtd}
1842 %if %{with_systemd_macros}
1843 %systemd_preun libvirt-guests.service
1847 /sbin/chkconfig --del libvirt-guests
1848 rm -f /var/lib/libvirt/libvirt-guests
1856 %if %{with_systemd_macros}
1857 %systemd_post libvirt-guests.service
1860 /sbin/chkconfig --add libvirt-guests
1867 %if %{with_systemd_macros}
1868 %systemd_postun libvirt-guests.service
1870 %triggerun client -- libvirt < 0.9.4
1871 %{_bindir}/systemd-sysv-convert --save libvirt-guests >/dev/null 2>&1 ||:
1873 # If the package is allowed to autostart:
1874 /bin/systemctl --no-reload enable libvirt-guests.service >/dev/null 2>&1 ||:
1876 # Run this because the SysV package being removed won't do them
1877 /sbin/chkconfig --del libvirt-guests >/dev/null 2>&1 || :
1882 if getent group sanlock > /dev/null ; then
1883 chmod 0770 %{_localstatedir}/lib/libvirt/sanlock
1884 chown root:sanlock %{_localstatedir}/lib/libvirt/sanlock
1890 getent group virtlogin >/dev/null || groupadd -r virtlogin
1895 %defattr(-, root, root)
1898 %defattr(-, root, root)
1899 %doc AUTHORS ChangeLog.gz NEWS README TODO libvirt-docs/*
1902 %dir %{_datadir}/gtk-doc/html/libvirt/
1903 %doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
1904 %doc %{_datadir}/gtk-doc/html/libvirt/*.html
1905 %doc %{_datadir}/gtk-doc/html/libvirt/*.png
1906 %doc %{_datadir}/gtk-doc/html/libvirt/*.css
1908 %if %{with_libvirtd}
1910 %defattr(-, root, root)
1912 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
1915 %{_unitdir}/libvirtd.service
1916 %{_unitdir}/libvirtd.socket
1917 %{_unitdir}/virtlockd.service
1918 %{_unitdir}/virtlockd.socket
1920 %{_sysconfdir}/rc.d/init.d/libvirtd
1921 %{_sysconfdir}/rc.d/init.d/virtlockd
1923 %doc daemon/libvirtd.upstart
1924 %config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
1925 %config(noreplace) %{_sysconfdir}/sysconfig/virtlockd
1926 %config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
1927 %config(noreplace) %{_sysconfdir}/libvirt/virtlockd.conf
1928 %if 0%{?fedora} || 0%{?rhel} >= 6
1929 %config(noreplace) %{_prefix}/lib/sysctl.d/libvirtd.conf
1932 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
1933 %dir %{_datadir}/libvirt/
1935 %ghost %dir %{_localstatedir}/run/libvirt/
1937 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
1938 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/filesystems/
1939 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
1940 %dir %attr(0711, root, root) %{_localstatedir}/cache/libvirt/
1943 %dir %attr(0755, root, root) %{_libdir}/libvirt/lock-driver
1944 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/lockd.so
1946 %{_datadir}/augeas/lenses/libvirtd.aug
1947 %{_datadir}/augeas/lenses/tests/test_libvirtd.aug
1948 %{_datadir}/augeas/lenses/virtlockd.aug
1949 %{_datadir}/augeas/lenses/tests/test_virtlockd.aug
1950 %{_datadir}/augeas/lenses/libvirt_lockd.aug
1951 # PL: is it because we don't run tests ?
1952 #%{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug
1955 %if 0%{?fedora} || 0%{?rhel} >= 6
1956 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy
1957 %{_datadir}/polkit-1/actions/org.libvirt.api.policy
1959 %{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
1963 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
1965 %attr(0755, root, root) %{_libexecdir}/libvirt_iohelper
1967 %if %{with_apparmor}
1968 %attr(0755, root, root) %{_libexecdir}/virt-aa-helper
1971 %attr(0755, root, root) %{_sbindir}/libvirtd
1972 %attr(0755, root, root) %{_sbindir}/virtlockd
1974 %{_mandir}/man8/libvirtd.8*
1975 %{_mandir}/man8/virtlockd.8*
1977 %if ! %{with_driver_modules}
1978 %if %{with_network} || %{with_qemu}
1979 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
1981 %if %{with_network} || %{with_nwfilter}
1982 %ghost %dir %{_localstatedir}/run/libvirt/network/
1985 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
1986 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
1987 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
1988 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
1989 %attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper
1991 %if %{with_nwfilter}
1992 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
1994 %if %{with_storage_disk}
1995 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
1998 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
1999 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
2000 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
2001 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
2002 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
2003 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
2004 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/
2005 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/
2006 %dir %attr(0711, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/nvram/
2007 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
2008 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
2009 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
2012 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
2013 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
2014 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
2015 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
2016 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
2017 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
2018 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
2019 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
2022 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
2023 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
2024 %ghost %dir %{_localstatedir}/run/libvirt/uml/
2025 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
2028 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
2029 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
2030 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
2033 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/xen/
2035 %endif # ! %{with_driver_modules}
2038 %files daemon-config-network
2039 %defattr(-, root, root)
2040 %dir %{_datadir}/libvirt/networks/
2041 %{_datadir}/libvirt/networks/default.xml
2044 %if %{with_nwfilter}
2045 %files daemon-config-nwfilter
2046 %defattr(-, root, root)
2047 %{_sysconfdir}/libvirt/nwfilter/*.xml
2050 %if %{with_driver_modules}
2051 %if %{with_interface}
2052 %files daemon-driver-interface
2053 %defattr(-, root, root)
2054 %{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so
2058 %files daemon-driver-network
2059 %defattr(-, root, root)
2060 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
2061 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
2062 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
2063 %ghost %dir %{_localstatedir}/run/libvirt/network/
2064 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
2065 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
2066 %attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper
2067 %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so
2071 %files daemon-driver-nodedev
2072 %defattr(-, root, root)
2073 %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
2076 %if %{with_nwfilter}
2077 %files daemon-driver-nwfilter
2078 %defattr(-, root, root)
2079 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
2080 %ghost %dir %{_localstatedir}/run/libvirt/network/
2081 %{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so
2084 %files daemon-driver-secret
2085 %defattr(-, root, root)
2086 %{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so
2089 %files daemon-driver-storage
2090 %defattr(-, root, root)
2091 %if %{with_storage_disk}
2092 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
2094 %{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so
2098 %files daemon-driver-qemu
2099 %defattr(-, root, root)
2100 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
2101 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
2102 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
2103 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
2104 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
2105 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
2106 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
2107 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/
2108 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/
2109 %dir %attr(0711, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/nvram/
2110 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
2111 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
2112 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
2113 %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so
2117 %files daemon-driver-lxc
2118 %defattr(-, root, root)
2119 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
2120 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
2121 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
2122 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
2123 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
2124 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
2125 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
2126 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
2127 %{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so
2131 %files daemon-driver-uml
2132 %defattr(-, root, root)
2133 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
2134 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
2135 %ghost %dir %{_localstatedir}/run/libvirt/uml/
2136 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
2137 %{_libdir}/%{name}/connection-driver/libvirt_driver_uml.so
2141 %files daemon-driver-xen
2142 %defattr(-, root, root)
2143 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/xen/
2144 %{_libdir}/%{name}/connection-driver/libvirt_driver_xen.so
2148 %files daemon-driver-libxl
2149 %defattr(-, root, root)
2150 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
2151 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
2152 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
2153 %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so
2157 %files daemon-driver-vbox
2158 %defattr(-, root, root)
2159 %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so
2160 %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox_network.so
2161 %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox_storage.so
2163 %endif # %{with_driver_modules}
2165 %if %{with_qemu_tcg}
2167 %defattr(-, root, root)
2170 %if %{with_qemu_kvm}
2172 %defattr(-, root, root)
2177 %defattr(-, root, root)
2182 %defattr(-, root, root)
2185 %if %{with_xen} || %{with_libxl}
2187 %defattr(-, root, root)
2192 %defattr(-, root, root)
2194 %endif # %{with_libvirtd}
2198 %defattr(-, root, root)
2200 %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
2202 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
2203 %{_datadir}/augeas/lenses/libvirt_sanlock.aug
2204 %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
2205 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/sanlock
2206 %{_sbindir}/virt-sanlock-cleanup
2207 %{_mandir}/man8/virt-sanlock-cleanup.8*
2208 %attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper
2211 %files client -f %{name}.lang
2212 %defattr(-, root, root)
2213 %doc COPYING COPYING.LESSER
2215 %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
2216 %{_mandir}/man1/virsh.1*
2217 %{_mandir}/man1/virt-xml-validate.1*
2218 %{_mandir}/man1/virt-pki-validate.1*
2219 %{_mandir}/man1/virt-host-validate.1*
2221 %{_bindir}/virt-xml-validate
2222 %{_bindir}/virt-pki-validate
2223 %{_bindir}/virt-host-validate
2224 %{_libdir}/libvirt.so.*
2225 %{_libdir}/libvirt-qemu.so.*
2226 %{_libdir}/libvirt-lxc.so.*
2229 %{_datadir}/systemtap/tapset/libvirt_probes*.stp
2230 %{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
2231 %{_datadir}/systemtap/tapset/libvirt_functions.stp
2234 %dir %{_datadir}/libvirt/
2235 %dir %{_datadir}/libvirt/schemas/
2237 %{_datadir}/libvirt/schemas/basictypes.rng
2238 %{_datadir}/libvirt/schemas/capability.rng
2239 %{_datadir}/libvirt/schemas/domain.rng
2240 %{_datadir}/libvirt/schemas/domaincaps.rng
2241 %{_datadir}/libvirt/schemas/domaincommon.rng
2242 %{_datadir}/libvirt/schemas/domainsnapshot.rng
2243 %{_datadir}/libvirt/schemas/interface.rng
2244 %{_datadir}/libvirt/schemas/network.rng
2245 %{_datadir}/libvirt/schemas/networkcommon.rng
2246 %{_datadir}/libvirt/schemas/nodedev.rng
2247 %{_datadir}/libvirt/schemas/nwfilter.rng
2248 %{_datadir}/libvirt/schemas/secret.rng
2249 %{_datadir}/libvirt/schemas/storagecommon.rng
2250 %{_datadir}/libvirt/schemas/storagepool.rng
2251 %{_datadir}/libvirt/schemas/storagevol.rng
2253 %{_datadir}/libvirt/cpu_map.xml
2254 %{_datadir}/libvirt/libvirtLogo.png
2257 %{_unitdir}/libvirt-guests.service
2259 %{_sysconfdir}/rc.d/init.d/libvirt-guests
2261 %config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
2262 %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
2263 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
2266 %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
2269 %if %{with_wireshark}
2271 %{_libdir}/wireshark/plugins/*/libvirt.so
2276 %attr(4750, root, virtlogin) %{_bindir}/virt-login-shell
2277 %config(noreplace) %{_sysconfdir}/libvirt/virt-login-shell.conf
2278 %{_mandir}/man1/virt-login-shell.1*
2282 %defattr(-, root, root)
2284 %{_libdir}/libvirt.so
2285 %{_libdir}/libvirt-qemu.so
2286 %{_libdir}/libvirt-lxc.so
2287 %dir %{_includedir}/libvirt
2288 %{_includedir}/libvirt/virterror.h
2289 %{_includedir}/libvirt/libvirt.h
2290 %{_includedir}/libvirt/libvirt-domain.h
2291 %{_includedir}/libvirt/libvirt-domain-snapshot.h
2292 %{_includedir}/libvirt/libvirt-event.h
2293 %{_includedir}/libvirt/libvirt-host.h
2294 %{_includedir}/libvirt/libvirt-interface.h
2295 %{_includedir}/libvirt/libvirt-network.h
2296 %{_includedir}/libvirt/libvirt-nodedev.h
2297 %{_includedir}/libvirt/libvirt-nwfilter.h
2298 %{_includedir}/libvirt/libvirt-secret.h
2299 %{_includedir}/libvirt/libvirt-storage.h
2300 %{_includedir}/libvirt/libvirt-stream.h
2301 %{_includedir}/libvirt/libvirt-qemu.h
2302 %{_includedir}/libvirt/libvirt-lxc.h
2303 %{_libdir}/pkgconfig/libvirt.pc
2304 %{_libdir}/pkgconfig/libvirt-qemu.pc
2305 %{_libdir}/pkgconfig/libvirt-lxc.pc
2307 %dir %{_datadir}/libvirt/api/
2308 %{_datadir}/libvirt/api/libvirt-api.xml
2309 %{_datadir}/libvirt/api/libvirt-qemu-api.xml
2310 %{_datadir}/libvirt/api/libvirt-lxc-api.xml
2312 %doc docs/*.html docs/html docs/*.gif
2313 %doc docs/libvirt-api.xml
2314 %doc examples/hellolibvirt
2315 %doc examples/object-events
2316 %doc examples/dominfo
2317 %doc examples/domsuspend
2318 %doc examples/dommigrate
2319 %doc examples/openauth
2321 %doc examples/systemtap
2324 * Wed Feb 18 2015 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - libvirt-1.2.11-2
2325 - identical to mainstream 1.2.11
2327 * Sat Dec 13 2014 Daniel Veillard <veillard@redhat.com> - 1.2.11-1
2328 - CVE-2014-8131: Fix possible deadlock and segfault in qemuConnectGetAllDomainStats()
2329 - CVE-2014-7823: dumpxml: security hole with migratable flag
2330 - Implement public API for virDomainGetFSInfo
2331 - Add define support for the new throttle options
2332 - a number of improvements and bug fixes
2334 * Mon Nov 3 2014 Daniel Veillard <veillard@redhat.com> - 1.2.10-1
2335 - vbox: various drivers improvements
2336 - libxl: various drivers improvements
2337 - Internal driver refactoring
2338 - a number of improvements and bug fixes
2340 * Wed Oct 1 2014 Daniel Veillard <veillard@redhat.com> - 1.2.9-1
2341 - CVE-2014-3657: domain_conf: fix domain deadlock
2342 - CVE-2014-3633: qemu: blkiotune: Use correct definition when looking up disk
2343 - Introduce virNodeAllocPages
2344 - event: introduce new event for tunable values
2345 - add migration support for OpenVZ driver
2346 - Add support for fetching statistics of completed jobs
2347 - many improvements and bug fixes
2349 * Tue Sep 2 2014 Daniel Veillard <veillard@redhat.com> - 1.2.8-1
2350 - blockcopy: virDomainBlockCopy with XML destination, typed params
2351 - Introduce API for retrieving bulk domain stats
2352 - Introduce virDomainOpenGraphicsFD API
2353 - storage: ZFS support
2354 - many improvements and bug fixes
2356 * Sun Aug 3 2014 Daniel Veillard <veillard@redhat.com> - 1.2.7-1
2357 - Introduce virConnectGetDomainCapabilities
2358 - many improvements and bug fixes
2360 * Wed Jul 16 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - libvirt-1.2.5-1
2361 - libvirt 1.2.5 for PL
2363 * Wed Jul 2 2014 Daniel Veillard <veillard@redhat.com> - 1.2.6-1
2364 - libxl: add migration support and fixes
2365 - various improvements and fixes for NUMA
2366 - many improvements and bug fixes
2368 * Mon Jun 2 2014 Daniel Veillard <veillard@redhat.com> - 1.2.5-1
2369 - LSN-2014-0003: Don't expand entities when parsing XML (security)
2370 - Introduce virDomain{Get,Set}Time APIs
2371 - Introduce virDomainFSFreeze() and virDomainFSThaw() public API
2372 - various improvements and bug fixes
2374 * Mon Jun 02 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - libvirt-1.2.4-1
2375 - complete build for 1.2.4, works fine on f18, still has an issue with f20 for slice re-creation
2377 * Sun May 4 2014 Daniel Veillard <veillard@redhat.com> - 1.2.4-1
2378 - various improvements and bug fixes
2379 - lot of internal code refactoring
2381 * Mon Apr 28 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - libvirt-1.2.3-2
2383 - libvirt-python needs a release of libvirt that matches its own
2384 - and there was a screw up when tagging libvirt-python, so we catch up
2386 * Mon Apr 28 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - libvirt-1.2.3-1
2387 - tested version of 1.2.3
2389 * Tue Apr 1 2014 Daniel Veillard <veillard@redhat.com> - 1.2.3-1
2390 - add new virDomainCoreDumpWithFormat API (Qiao Nuohan)
2391 - conf: Introduce virDomainDeviceGetInfo API (Jiri Denemark)
2392 - more features and fixes on bhyve driver (Roman Bogorodskiy)
2393 - lot of cleanups and improvement on the Xen driver (Chunyan Liu, Jim Fehlig)
2394 - a lot of various improvements and bug fixes
2396 * Fri Mar 21 2014 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - libvirt-1.2.1-1
2397 - builds fine on f{18,20}
2399 * Sun Mar 2 2014 Daniel Veillard <veillard@redhat.com> - 1.2.2-1
2400 - add LXC from native conversion tool
2401 - vbox: add support for v4.2.20+ and v4.3.4+
2402 - Introduce Libvirt Wireshark dissector
2403 - Fix CVE-2013-6456: Avoid unsafe use of /proc/$PID/root in LXC
2404 - a lot of various improvements and bug fixes
2406 * Thu Jan 16 2014 Daniel Veillard <veillard@redhat.com> - 1.2.1-1
2407 - Fix s CVE-2014-0028 event: filter global events by domain:getattr ACL
2408 - Fix CVE-2014-1447 Don't crash if a connection closes early
2409 - Fix CVE-2013-6458-1 qemu: Do not access stale data in virDomainBlockStats
2410 - Fix CVE-2013-6457 libxl: avoid crashing if calling `virsh numatune' on inactive domain
2411 - Fix CVE-2013-6436: fix crash in lxcDomainGetMemoryParameters
2412 - many doc and bug fixes and improvements
2414 * Mon Dec 2 2013 Daniel Veillard <veillard@redhat.com> - 1.2.0-1
2415 - Separation of python binding as libvirt-python srpm
2416 - Add support for gluster pool
2417 - vbox: add support for 4.3 APIs
2418 - a number of doc, bug fixes and various improvements
2420 * Mon Nov 4 2013 Daniel Veillard <veillard@redhat.com> - 1.1.4-1
2421 - Add support for AArch64 architecture
2422 - Various improvements on test code and test driver
2423 - 4 security bug fixes
2424 - a lot of bug fixes and various improvements
2426 * Tue Oct 1 2013 Daniel Veillard <veillard@redhat.com> - 1.1.3-1
2427 - VMware: Initial VMware Fusion support and various improvements
2428 - libvirt: add new public API virConnectGetCPUModelNames
2429 - various libxl driver improvements
2430 - LXC many container driver improvement
2431 - ARM cpu improvements
2432 - 3 security bug fixes
2433 - a lot of bug and leak fixes and various improvements
2435 * Mon Sep 2 2013 Daniel Veillard <veillard@redhat.com> - 1.1.2-1
2436 - various improvements to libxl driver
2437 - systemd integration improvements
2438 - Add flag to BaselineCPU API to return detailed CPU features
2439 - Introduce a virt-login-shell binary
2440 - conf: add startupPolicy attribute for harddisk
2441 - various bug fixes and improvements including localizations
2443 * Tue Jul 30 2013 Daniel Veillard <veillard@redhat.com> - 1.1.1-1
2444 - Adding device removal or deletion events
2445 - Introduce new domain create APIs to pass pre-opened FDs to LXC
2446 - Add interface versions for Xen 4.3
2447 - Add new public API virDomainSetMemoryStatsPeriod
2448 - Various LXC improvements
2449 - various bug fixes and improvements including localizations
2451 * Mon Jul 1 2013 Daniel Veillard <veillard@redhat.com> - 1.1.0-1
2452 - CVE-2013-2218: Fix crash listing network interfaces with filters
2453 - Fine grained ACL support for the API
2454 - Extensible migration APIs
2455 - various improvements in the Xen driver
2456 - agent based vCPU hotplug support
2457 - various bug fixes and improvements including localizations
2459 * Mon Jun 3 2013 Daniel Veillard <veillard@redhat.com> - 1.0.6-1
2460 - Move VirtualBox driver into libvirtd
2461 - Support for static routes on a virtual bridge
2462 - Various improvement for hostdev SCSI support
2463 - Switch to VIR_STRDUP and VIR_STRNDUP
2464 - Various cleanups and improvement in Xen and LXC drivers
2465 - various bug fixes and improvements including localizations
2467 * Thu May 2 2013 Daniel Veillard <veillard@redhat.com> - 1.0.5-1
2468 - add support for NVRAM device
2469 - Add XML config for resource partitions
2470 - Add support for TPM
2471 - NPIV storage migration support
2472 - various bug fixes and improvements including localizations
2474 * Mon Apr 1 2013 Daniel Veillard <veillard@redhat.com> - 1.0.4-1
2475 - qemu: support passthrough for iscsi disks
2476 - various S390 improvements
2477 - various LXC bugs fixes and improvements
2478 - Add API for thread cancellation
2479 - various bug fixes and improvements
2481 * Tue Mar 5 2013 Daniel Veillard <veillard@redhat.com> - 1.0.3-1
2482 - Introduce virDomainMigrate*CompressionCache APIs
2483 - Introduce virDomainGetJobStats API
2484 - Add basic support for VDI images
2485 - Introduce API virNodeDeviceLookupSCSIHostByWWN
2486 - Various locking improvements
2487 - a lot of bug fixes and overall improvements
2489 * Wed Jan 30 2013 Daniel Veillard <veillard@redhat.com> - 1.0.2-1
2491 - S390 architecture improvement
2492 - Power architecture improvement
2493 - large Coverity report cleanups and associated bug fixes
2494 - virTypedParams* APIs to helps with those data structures
2495 - a lot of bug fixes and overall improvements
2497 * Fri Nov 2 2012 Daniel Veillard <veillard@redhat.com> - 1.0.0-1
2498 - virNodeGetCPUMap: Define public API
2499 - Add systemd journal support
2500 - Add a qemu capabilities cache manager
2501 - USB migration support
2502 - various improvement and fixes when using QMP QEmu interface
2503 - Support for Xen 4.2
2504 - Lot of localization enhancements
2505 - a lot of bug fixes, improvements and portability work
2507 * Mon Sep 24 2012 Daniel Veillard <veillard@redhat.com> - 0.10.2-1
2508 - network: define new API virNetworkUpdate
2509 - add support for QEmu sandbox support
2510 - blockjob: add virDomainBlockCommit
2511 - New APIs to get/set Node memory parameters
2512 - new API virConnectListAllSecrets
2513 - new API virConnectListAllNWFilters
2514 - new API virConnectListAllNodeDevices
2515 - parallels: add support of containers to the driver
2516 - new API virConnectListAllInterfaces
2517 - new API virConnectListAllNetworks
2518 - new API virStoragePoolListAllVolumes
2519 - Add PMSUSPENDED life cycle event
2520 - new API virStorageListAllStoragePools
2521 - Add per-guest S3/S4 state configuration
2522 - qemu: Support for Block Device IO Limits
2523 - a lot of bug fixes, improvements and portability work
2525 * Fri Aug 31 2012 Daniel Veillard <veillard@redhat.com> - 0.10.1-1
2526 - bugfixes and a brown paper bag
2528 * Wed Aug 29 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-1
2529 - agent: add qemuAgentArbitraryCommand() for general qemu agent command
2530 - Introduce virDomainPinEmulator and virDomainGetEmulatorPinInfo functions
2531 - network: use firewalld instead of iptables, when available
2532 - network: make network driver vlan-aware
2533 - esx: Implement network driver
2534 - driver for parallels hypervisor
2535 - Various LXC improvements
2536 - Add virDomainGetHostname
2537 - a lot of bug fixes, improvements and portability work
2539 * Mon Jul 2 2012 Daniel Veillard <veillard@redhat.com> - 0.9.13-1
2540 - S390: support for s390(x)
2541 - snapshot: implement new APIs for esx and vbox
2542 - snapshot: new query APIs and many improvements
2543 - virsh: Allow users to reedit rejected XML
2544 - nwfilter: add DHCP snooping
2545 - Enable driver modules in libvirt RPM
2546 - Default to enable driver modules for libvirtd
2547 - storage backend: Add RBD (RADOS Block Device) support
2548 - sVirt support for LXC domains inprovement
2549 - a lot of bug fixes, improvements and portability work
2551 * Mon May 14 2012 Daniel Veillard <veillard@redhat.com> - 0.9.12-1
2552 - qemu: allow snapshotting of sheepdog and rbd disks
2553 - blockjob: add new APIs
2554 - a lot of bug fixes, improvements and portability work
2556 * Tue Apr 3 2012 Daniel Veillard <veillard@redhat.com> - 0.9.11-1
2557 - Add support for the suspend event
2558 - Add support for event tray moved of removable disks
2559 - qemu: Support numad
2560 - cpustats: API, improvements and qemu support
2561 - qemu: support type='hostdev' network devices at domain start
2562 - Introduce virDomainPMWakeup API
2563 - network: support Open vSwitch
2564 - a number of snapshot improvements
2565 - many improvements and bug fixes
2567 * Mon Feb 13 2012 Daniel Veillard <veillard@redhat.com> - 0.9.10-1
2568 - Add support for sVirt in the LXC driver
2569 - block rebase: add new API virDomainBlockRebase
2570 - API: Add api to set and get domain metadata
2571 - virDomainGetDiskErrors public API
2572 - conf: add rawio attribute to disk element of domain XML
2573 - Add new public API virDomainGetCPUStats()
2574 - Introduce virDomainPMSuspendForDuration API
2575 - resize: add virStorageVolResize() API
2576 - Add a virt-host-validate command to sanity check HV config
2577 - Add new virDomainShutdownFlags API
2578 - QEMU guest agent support
2579 - many improvements and bug fixes
2581 * Sat Jan 7 2012 Daniel Veillard <veillard@redhat.com> - 0.9.9-1
2582 - Add API virDomain{S,G}etInterfaceParameters
2583 - Add API virDomain{G, S}etNumaParameters
2584 - Add support for ppc64 qemu
2585 - Support Xen domctl v8
2586 - many improvements and bug fixes
2588 * Thu Dec 8 2011 Daniel Veillard <veillard@redhat.com> - 0.9.8-1
2589 - Add support for QEMU 1.0
2590 - Add preliminary PPC cpu driver
2591 - Add new API virDomain{Set, Get}BlockIoTune
2592 - block_resize: Define the new API
2593 - Add a public API to invoke suspend/resume on the host
2594 - various improvements for LXC containers
2595 - Define keepalive protocol and add virConnectIsAlive API
2596 - Add support for STP and VLAN filtering
2597 - many improvements and bug fixes
2599 * Tue Nov 8 2011 Daniel Veillard <veillard@redhat.com> - 0.9.7-1
2600 - esx: support vSphere 5.x
2601 - vbox: support for VirtualBox 4.1
2602 - Introduce the virDomainOpenGraphics API
2603 - Add AHCI support to qemu driver
2604 - snapshot: many improvements and 2 new APIs
2605 - api: Add public api for 'reset'
2606 - many improvements and bug fixes
2608 * Thu Sep 22 2011 Daniel Veillard <veillard@redhat.com> - 0.9.6-1
2609 - Fix the qemu reboot bug and a few others bug fixes
2611 * Tue Sep 20 2011 Daniel Veillard <veillard@redhat.com> - 0.9.5-1
2612 - many snapshot improvements (Eric Blake)
2613 - latency: Define new public API and structure (Osier Yang)
2614 - USB2 and various USB improvements (Marc-André Lureau)
2615 - storage: Add fs pool formatting (Osier Yang)
2616 - Add public API for getting migration speed (Jim Fehlig)
2617 - Add basic driver for Microsoft Hyper-V (Matthias Bolte)
2618 - many improvements and bug fixes
2620 * Wed Aug 3 2011 Daniel Veillard <veillard@redhat.com> - 0.9.4-1
2621 - network bandwidth QoS control
2622 - Add new API virDomainBlockPull*
2623 - save: new API to manipulate save file images
2624 - CPU bandwidth limits support
2625 - allow to send NMI and key event to guests
2626 - new API virDomainUndefineFlags
2627 - Implement code to attach to external QEMU instances
2628 - bios: Add support for SGA
2629 - various missing python binding
2630 - many improvements and bug fixes
2632 * Mon Jul 4 2011 Daniel Veillard <veillard@redhat.com> - 0.9.3-1
2633 - new API virDomainGetVcpupinInfo
2634 - Add TXT record support for virtual DNS service
2635 - Support reboots with the QEMU driver
2636 - New API virDomainGetControlInfo API
2637 - New API virNodeGetMemoryStats
2638 - New API virNodeGetCPUTime
2639 - New API for send-key
2640 - New API virDomainPinVcpuFlags
2641 - support multifunction PCI device
2642 - lxc: various improvements
2643 - many improvements and bug fixes
2645 * Mon Jun 6 2011 Daniel Veillard <veillard@redhat.com> - 0.9.2-1
2646 - Framework for lock manager plugins
2647 - API for network config change transactions
2648 - flags for setting memory parameters
2649 - virDomainGetState public API
2650 - qemu: allow blkstat/blkinfo calls during migration
2651 - Introduce migration v3 API
2652 - Defining the Screenshot public API
2653 - public API for NMI injection
2654 - Various improvements and bug fixes
2656 * Thu May 5 2011 Daniel Veillard <veillard@redhat.com> - 0.9.1-1
2657 - support various persistent domain updates
2658 - improvements on memory APIs
2659 - Add virDomainEventRebootNew
2660 - various improvements to libxl driver
2661 - Spice: support audio, images and stream compression
2662 - Various improvements and bug fixes
2664 * Mon Apr 4 2011 Daniel Veillard <veillard@redhat.com> - 0.9.0-1
2665 - Support cputune cpu usage tuning
2666 - Add public APIs for storage volume upload/download
2667 - Add public API for setting migration speed on the fly
2668 - Add libxenlight driver
2669 - qemu: support migration to fd
2670 - libvirt: add virDomain{Get,Set}BlkioParameters
2671 - setmem: introduce a new libvirt API (virDomainSetMemoryFlags)
2672 - Expose event loop implementation as a public API
2673 - Dump the debug buffer to libvirtd.log on fatal signal
2675 - Various improvements and bug fixes
2677 * Thu Feb 17 2011 Daniel Veillard <veillard@redhat.com> - 0.8.8-1
2678 - expose new API for sysinfo extraction
2679 - cgroup blkio weight support
2680 - smartcard device support
2681 - qemu: Support per-device boot ordering
2682 - Various improvements and bug fixes
2684 * Tue Jan 4 2011 Daniel Veillard <veillard@redhat.com> - 0.8.7-1
2685 - Preliminary support for VirtualBox 4.0
2687 - Add VMware Workstation and Player driver driver
2688 - Add network disk support
2689 - Various improvements and bug fixes
2691 * Tue Nov 30 2010 Daniel Veillard <veillard@redhat.com> - 0.8.6-1
2692 - Add support for iSCSI target auto-discovery
2693 - QED: Basic support for QED images
2694 - remote console support
2695 - support for SPICE graphics
2696 - sysinfo and VMBIOS support
2697 - virsh qemu-monitor-command
2698 - various improvements and bug fixes
2700 * Fri Oct 29 2010 Daniel Veillard <veillard@redhat.com> - 0.8.5-1
2701 - Enable JSON and netdev features in QEMU >= 0.13
2702 - framework for auditing integration
2703 - framework DTrace/SystemTap integration
2704 - Setting the number of vcpu at boot
2705 - Enable support for nested SVM
2706 - Virtio plan9fs filesystem QEMU
2707 - Memory parameter controls
2708 - various improvements and bug fixes
2710 * Fri Sep 10 2010 Daniel Veillard <veillard@redhat.com> - 0.8.4-1
2711 - big improvements to UML driver
2712 - various improvements and bug fixes
2714 * Wed Aug 4 2010 Daniel Veillard <veillard@redhat.com> - 0.8.3-1
2715 - esx: Support vSphere 4.1
2716 - Qemu arbitrary monitor commands
2717 - Qemu Monitor API entry point
2718 - various improvements and bug fixes
2720 * Mon Jul 5 2010 Daniel Veillard <veillard@redhat.com> - 0.8.2-1
2721 - phyp: adding support for IVM
2722 - libvirt: introduce domainCreateWithFlags API
2723 - add 802.1Qbh and 802.1Qbg switches handling
2724 - Support for VirtualBox version 3.2
2725 - Init script for handling guests on shutdown/boot
2726 - qemu: live migration with non-shared storage for kvm
2728 * Fri Apr 30 2010 Daniel Veillard <veillard@redhat.com> - 0.8.1-1
2729 - Starts dnsmasq from libvirtd with --dhcp-hostsfile
2730 - Add virDomainGetBlockInfo API to query disk sizing
2731 - a lot of bug fixes and cleanups
2733 * Mon Apr 12 2010 Daniel Veillard <veillard@redhat.com> - 0.8.0-1
2734 - Snapshotting support (QEmu/VBox/ESX)
2735 - Network filtering API
2737 - new APIs for domain events
2738 - Libvirt managed save API
2739 - timer subselection for domain clock
2741 - API to update guest CPU to host CPU
2742 - virDomainUpdateDeviceFlags new API
2743 - migrate max downtime API
2745 - and many bug fixes
2747 * Fri Mar 5 2010 Daniel Veillard <veillard@redhat.com> - 0.7.7-1
2749 - async job handling
2751 - computing baseline CPU
2752 - virDomain{Attach,Detach}DeviceFlags
2753 - assorted bug fixes and lots of cleanups
2755 * Wed Feb 3 2010 Daniel Veillard <veillard@redhat.com> - 0.7.6-1
2757 * Wed Dec 23 2009 Daniel Veillard <veillard@redhat.com> - 0.7.5-1
2758 - Add new API virDomainMemoryStats
2759 - Public API and domain extension for CPU flags
2760 - vbox: Add support for version 3.1
2761 - Support QEMU's virtual FAT block device driver
2764 * Fri Nov 20 2009 Daniel Veillard <veillard@redhat.com> - 0.7.3-1
2765 - udev node device backend
2766 - API to check object properties
2767 - better QEmu monitor processing
2768 - MAC address based port filtering for qemu
2769 - support IPv6 and multiple addresses per interfaces
2772 * Tue Sep 15 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-1
2773 - ESX, VBox driver updates
2775 - support for encrypted (qcow) volume
2776 - compressed save image format for Qemu/KVM
2777 - QEmu host PCI device hotplug support
2778 - configuration of huge pages in guests
2781 * Wed Aug 5 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-1
2782 - ESX, VBox3, Power Hypervisor drivers
2783 - new net filesystem glusterfs
2784 - Storage cloning for LVM and Disk backends
2785 - interface implementation based on netcf
2786 - Support cgroups in QEMU driver
2787 - QEmu hotplug NIC support
2790 * Fri Jul 3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.5-1
2793 * Fri May 29 2009 Daniel Veillard <veillard@redhat.com> - 0.6.4-1
2797 * Fri Apr 24 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-1
2801 * Fri Apr 3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.2-1
2804 * Wed Mar 4 2009 Daniel Veillard <veillard@redhat.com> - 0.6.1-1
2807 * Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1
2810 * Tue Nov 25 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1
2813 * Tue Sep 23 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-1
2816 * Mon Sep 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-1
2819 * Wed Jun 25 2008 Daniel Veillard <veillard@redhat.com> - 0.4.4-1
2821 - mostly a few bug fixes from 0.4.3
2823 * Thu Jun 12 2008 Daniel Veillard <veillard@redhat.com> - 0.4.3-1
2825 - lots of bug fixes and small improvements
2827 * Tue Apr 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.2-1
2829 - lots of bug fixes and small improvements
2831 * Mon Mar 3 2008 Daniel Veillard <veillard@redhat.com> - 0.4.1-1
2835 - lots of assorted improvements, bugfixes and cleanups
2836 - documentation and localization improvements
2838 * Tue Dec 18 2007 Daniel Veillard <veillard@redhat.com> - 0.4.0-1
2840 - SASL based authentication
2841 - PolicyKit authentication
2842 - improved NUMA and statistics support
2843 - lots of assorted improvements, bugfixes and cleanups
2844 - documentation and localization improvements
2846 * Sun Sep 30 2007 Daniel Veillard <veillard@redhat.com> - 0.3.3-1
2850 - lots of assorted improvements, bugfixes and cleanups
2851 - documentation and localization improvements
2853 * Tue Aug 21 2007 Daniel Veillard <veillard@redhat.com> - 0.3.2-1
2855 - API for domains migration
2856 - APIs for collecting statistics on disks and interfaces
2857 - lots of assorted bugfixes and cleanups
2858 - documentation and localization improvements
2860 * Tue Jul 24 2007 Daniel Veillard <veillard@redhat.com> - 0.3.1-1
2862 - localtime clock support
2863 - PS/2 and USB input devices
2864 - lots of assorted bugfixes and cleanups
2865 - documentation and localization improvements
2867 * Mon Jul 9 2007 Daniel Veillard <veillard@redhat.com> - 0.3.0-1
2869 - Secure remote access support
2870 - unification of daemons
2871 - lots of assorted bugfixes and cleanups
2872 - documentation and localization improvements
2874 * Fri Jun 8 2007 Daniel Veillard <veillard@redhat.com> - 0.2.3-1
2876 - lot of assorted bugfixes and cleanups
2877 - support for Xen-3.1
2880 * Tue Apr 17 2007 Daniel Veillard <veillard@redhat.com> - 0.2.2-1
2882 - lot of assorted bugfixes and cleanups
2883 - preparing for Xen-3.0.5
2885 * Thu Mar 22 2007 Jeremy Katz <katzj@redhat.com> - 0.2.1-2.fc7
2886 - don't require xen; we don't need the daemon and can control non-xen now
2887 - fix scriptlet error (need to own more directories)
2888 - update description text
2890 * Fri Mar 16 2007 Daniel Veillard <veillard@redhat.com> - 0.2.1-1
2892 - lot of bug and portability fixes
2893 - Add support for network autostart and init scripts
2894 - New API to detect the virtualization capabilities of a host
2895 - Documentation updates
2897 * Fri Feb 23 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-4.fc7
2898 - Fix loading of guest & network configs
2900 * Fri Feb 16 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-3.fc7
2901 - Disable kqemu support since its not in Fedora qemu binary
2902 - Fix for -vnc arg syntax change in 0.9.0 QEMU
2904 * Thu Feb 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-2.fc7
2905 - Fixed path to qemu daemon for autostart
2906 - Fixed generation of <features> block in XML
2907 - Pre-create config directory at startup
2909 * Wed Feb 14 2007 Daniel Veillard <veillard@redhat.com> 0.2.0-1.fc7
2910 - support for KVM and QEmu
2911 - support for network configuration
2914 * Mon Jan 22 2007 Daniel Veillard <veillard@redhat.com> 0.1.11-1.fc7
2915 - finish inactive Xen domains support
2917 - RelaxNG schemas for XML configs
2919 * Wed Dec 20 2006 Daniel Veillard <veillard@redhat.com> 0.1.10-1.fc7
2920 - support for inactive Xen domains
2921 - improved support for Xen display and vnc
2923 - localization updates
2925 * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.9-2
2926 - rebuild against python 2.5
2928 * Wed Nov 29 2006 Daniel Veillard <veillard@redhat.com> 0.1.9-1
2929 - better error reporting
2930 - python bindings fixes and extensions
2931 - add support for shareable drives
2932 - add support for non-bridge style networking
2933 - hot plug device support
2934 - added support for inactive domains
2935 - API to dump core of domains
2936 - various bug fixes, cleanups and improvements
2937 - updated the localization
2939 * Tue Nov 7 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-3
2940 - it's pkgconfig not pgkconfig !
2942 * Mon Nov 6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
2943 - fixing spec file, added %%dist, -devel requires pkgconfig and xen-devel
2944 - Resolves: rhbz#202320
2946 * Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
2947 - fix missing page size detection code for ia64
2948 - fix mlock size when getting domain info list from hypervisor
2949 - vcpu number initialization
2950 - don't label crashed domains as shut off
2951 - fix virsh man page
2952 - blktapdd support for alternate drivers like blktap
2953 - memory leak fixes (xend interface and XML parsing)
2955 - mlock/munlock size fixes
2957 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.7-1
2958 - Fix bug when running against xen-3.0.3 hypercalls
2959 - Fix memory bug when getting vcpus info from xend
2961 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.6-1
2962 - Support for localization
2963 - Support for new Xen-3.0.3 cdrom and disk configuration
2964 - Support for setting VNC port
2965 - Fix bug when running against xen-3.0.2 hypercalls
2966 - Fix reconnection problem when talking directly to http xend
2968 * Tue Sep 5 2006 Jeremy Katz <katzj@redhat.com> - 0.1.5-3
2969 - patch from danpb to support new-format cd devices for HVM guests
2971 * Tue Sep 5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-2
2972 - reactivating ia64 support
2974 * Tue Sep 5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-1
2977 - support for new hypervisor calls
2978 - early code for config files and defined domains
2980 * Mon Sep 4 2006 Daniel Berrange <berrange@redhat.com> - 0.1.4-5
2981 - add patch to address dom0_ops API breakage in Xen 3.0.3 tree
2983 * Mon Aug 28 2006 Jeremy Katz <katzj@redhat.com> - 0.1.4-4
2984 - add patch to support paravirt framebuffer in Xen
2986 * Mon Aug 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-3
2987 - another patch to fix network handling in non-HVM guests
2989 * Thu Aug 17 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-2
2990 - patch to fix virParseUUID()
2992 * Wed Aug 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-1
2993 - vCPUs and affinity support
2994 - more complete XML, console and boot options
2995 - specific features support
2996 - enforced read-only connections
2997 - various improvements, bug fixes
2999 * Wed Aug 2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-6
3000 - add patch from pvetere to allow getting uuid from libvirt
3002 * Wed Aug 2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-5
3005 * Thu Jul 27 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-4
3006 - don't BR xen, we just need xen-devel
3008 * Thu Jul 27 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-3
3009 - need rebuild since libxenstore is now versionned
3011 * Mon Jul 24 2006 Mark McLoughlin <markmc@redhat.com> - 0.1.3-2
3012 - Add BuildRequires: xen-devel
3014 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1.3-1.1
3017 * Tue Jul 11 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-1
3018 - support for HVM Xen guests
3021 * Mon Jul 3 2006 Daniel Veillard <veillard@redhat.com> 0.1.2-1
3022 - added a proxy mechanism for read only access using httpu
3023 - fixed header includes paths
3025 * Wed Jun 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.1-1
3026 - extend and cleanup the driver infrastructure and code
3028 - extend uuid support
3029 - bug fixes, buffer handling cleanups
3030 - support for new Xen hypervisor API
3031 - test driver for unit testing
3032 - virsh --conect argument
3034 * Mon Apr 10 2006 Daniel Veillard <veillard@redhat.com> 0.1.0-1
3036 - new APIs: for Node information and Reboot
3037 - virsh improvements and extensions
3038 - documentation updates and man page
3039 - enhancement and fixes of the XML description format
3041 * Tue Feb 28 2006 Daniel Veillard <veillard@redhat.com> 0.0.6-1
3042 - added error handling APIs
3044 - improve python bindings
3045 - augment documentation and regression tests
3047 * Thu Feb 23 2006 Daniel Veillard <veillard@redhat.com> 0.0.5-1
3048 - new domain creation API
3049 - new UUID based APIs
3050 - more tests, documentation, devhelp
3053 * Fri Feb 10 2006 Daniel Veillard <veillard@redhat.com> 0.0.4-1
3054 - fixes some problems in 0.0.3 due to the change of names
3056 * Wed Feb 8 2006 Daniel Veillard <veillard@redhat.com> 0.0.3-1
3057 - changed library name to libvirt from libvir, complete and test the python
3060 * Sun Jan 29 2006 Daniel Veillard <veillard@redhat.com> 0.0.2-1
3061 - upstream release of 0.0.2, use xend, save and restore added, python bindings
3064 * Wed Nov 2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1