3 %define mainstream_version 1.2.1
4 %define module_version_varname mainstream_version
7 #libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
8 ## --without storage-fs --without storage-lvm \
9 ## --without polkit --without sasl --without audit --with capng --with udev \
10 ## --without netcf --without avahi --without sanlock \
11 ## --without xen --without qemu --without hyperv --without phyp --without esx \
12 ## --without libxl --without vbox \
13 %define _without_storage_disk true
14 %define _without_storage_iscsi true
15 %define _without_storage_fs true
16 %define _without_storage_lvm true
17 %define _without_polkit true
18 %define _without_sasl true
19 %define _without_audit true
20 #interface requires netcf
21 #%define _without_netcf true
22 %define _without_avahi true
23 %define _without_sanlock true
24 %define _without_xen true
25 %define _without_qemu true
26 %define _without_hyperv true
27 %define _without_phyp true
28 %define _without_esx true
29 %define _without_libxl true
30 %define _without_vbox true
33 #turn this off even on f18 as an attempt to get back /proc/meminfo
34 %define _without_fuse true
36 %define enable_autotools 1
38 # If neither fedora nor rhel was defined, try to guess them from %{dist}
39 %if !0%{?rhel} && !0%{?fedora}
40 %{expand:%(echo "%{?dist}" | \
41 sed -ne 's/^\.el\([0-9]\+\).*/%%define rhel \1/p')}
42 %{expand:%(echo "%{?dist}" | \
43 sed -ne 's/^\.fc\?\([0-9]\+\).*/%%define fedora \1/p')}
46 # Default to skipping autoreconf. Distros can change just this one line
47 # (or provide a command-line override) if they backport any patches that
48 # touch configure.ac or Makefile.am.
49 %{!?enable_autotools:%define enable_autotools 0}
51 # A client only build will create a libvirt.so only containing
52 # the generic RPC driver, and test driver and no libvirtd
53 # Default to a full server + client build, but with the possibility
54 # of a command-line or ~/.rpmmacros override for client-only.
55 %{!?client_only:%define client_only 0}
57 # Now turn off server build in certain cases
59 # RHEL-5 builds are client-only for s390, ppc
61 %ifnarch %{ix86} x86_64 ia64
66 # Disable all server side drivers if client only build requested
68 %define server_drivers 0
70 %define server_drivers 1
73 # Always build with dlopen'd modules
74 %define with_driver_modules 1
76 # Now set the defaults for all the important features, independent
77 # of any particular OS
79 # First the daemon itself
80 %define with_libvirtd 0%{!?_without_libvirtd:%{server_drivers}}
81 %define with_avahi 0%{!?_without_avahi:%{server_drivers}}
83 # Then the hypervisor drivers that run in libvirtd
84 %define with_xen 0%{!?_without_xen:%{server_drivers}}
85 %define with_qemu 0%{!?_without_qemu:%{server_drivers}}
86 %define with_lxc 0%{!?_without_lxc:%{server_drivers}}
87 %define with_uml 0%{!?_without_uml:%{server_drivers}}
88 %define with_libxl 0%{!?_without_libxl:%{server_drivers}}
89 %define with_vbox 0%{!?_without_vbox:%{server_drivers}}
91 %define with_qemu_tcg %{with_qemu}
92 # Change if we ever provide qemu-kvm binaries on non-x86 hosts
95 %define qemu_kvm_arches %{ix86} x86_64 ppc64 s390x %{arm}
97 %define qemu_kvm_arches %{ix86} x86_64 ppc64 s390x
100 %define qemu_kvm_arches %{ix86} x86_64
103 %ifarch %{qemu_kvm_arches}
104 %define with_qemu_kvm %{with_qemu}
106 %define with_qemu_kvm 0
109 # Then the hypervisor drivers that run outside libvirtd, in libvirt.so
110 %define with_openvz 0%{!?_without_openvz:1}
111 %define with_vmware 0%{!?_without_vmware:1}
112 %define with_phyp 0%{!?_without_phyp:1}
113 %define with_esx 0%{!?_without_esx:1}
114 %define with_hyperv 0%{!?_without_hyperv:1}
115 %define with_xenapi 0%{!?_without_xenapi:1}
116 %define with_parallels 0%{!?_without_parallels:1}
118 # Then the secondary host drivers, which run inside libvirtd
119 %define with_interface 0%{!?_without_interface:%{server_drivers}}
120 %define with_network 0%{!?_without_network:%{server_drivers}}
121 %define with_storage_fs 0%{!?_without_storage_fs:%{server_drivers}}
122 %define with_storage_lvm 0%{!?_without_storage_lvm:%{server_drivers}}
123 %define with_storage_iscsi 0%{!?_without_storage_iscsi:%{server_drivers}}
124 %define with_storage_disk 0%{!?_without_storage_disk:%{server_drivers}}
125 %define with_storage_mpath 0%{!?_without_storage_mpath:%{server_drivers}}
126 %if 0%{?fedora} >= 16
127 %define with_storage_rbd 0%{!?_without_storage_rbd:%{server_drivers}}
129 %define with_storage_rbd 0
131 %if 0%{?fedora} >= 17
132 %define with_storage_sheepdog 0%{!?_without_storage_sheepdog:%{server_drivers}}
134 %define with_storage_sheepdog 0
136 %if 0%{?fedora} >= 19
137 %define with_storage_gluster 0%{!?_without_storage_gluster:%{server_drivers}}
139 %define with_storage_gluster 0
141 %define with_numactl 0%{!?_without_numactl:%{server_drivers}}
142 %define with_selinux 0%{!?_without_selinux:%{server_drivers}}
144 # Just hardcode to off, since few people ever have apparmor RPMs installed
145 %define with_apparmor 0%{!?_without_apparmor:0}
147 # A few optional bits off by default, we enable later
148 %define with_polkit 0%{!?_without_polkit:0}
149 %define with_capng 0%{!?_without_capng:0}
150 %define with_fuse 0%{!?_without_fuse:0}
151 %define with_netcf 0%{!?_without_netcf:0}
152 %define with_udev 0%{!?_without_udev:0}
153 %define with_hal 0%{!?_without_hal:0}
154 %define with_yajl 0%{!?_without_yajl:0}
155 %define with_nwfilter 0%{!?_without_nwfilter:0}
156 %define with_libpcap 0%{!?_without_libpcap:0}
157 %define with_macvtap 0%{!?_without_macvtap:0}
158 %define with_libnl 0%{!?_without_libnl:0}
159 %define with_audit 0%{!?_without_audit:0}
160 %define with_dtrace 0%{!?_without_dtrace:0}
161 %define with_cgconfig 0%{!?_without_cgconfig:0}
162 %define with_sanlock 0%{!?_without_sanlock:0}
163 %define with_systemd 0%{!?_without_systemd:0}
164 %define with_numad 0%{!?_without_numad:0}
165 %define with_firewalld 0%{!?_without_firewalld:0}
166 %define with_libssh2 0%{!?_without_libssh2:0}
168 # Non-server/HV driver defaults which are always enabled
169 %define with_sasl 0%{!?_without_sasl:1}
172 # Finally set the OS / architecture specific special cases
174 # Xen is available only on i386 x86_64 ia64
175 %ifnarch %{ix86} x86_64 ia64
180 # vbox is available only on i386 x86_64
181 %ifnarch %{ix86} x86_64
185 # Numactl is not available on s390[x] and ARM
186 %ifarch s390 s390x %{arm}
187 %define with_numactl 0
190 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
191 # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
194 %define with_openvz 0
198 %define with_vmware 0
199 %define with_xenapi 0
201 %define with_hyperv 0
202 %define with_parallels 0
205 # Fedora 17 / RHEL-7 are first where we use systemd. Although earlier
206 # Fedora has systemd, libvirt still used sysvinit there.
207 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
208 %define with_systemd 1
211 # Fedora 18 / RHEL-7 are first where firewalld support is enabled
212 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
213 %define with_firewalld 1
216 # RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
218 %define with_qemu_tcg 0
221 %define with_qemu_kvm 0
226 # RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen
227 # on all archs. Other archs all have LXC available though
229 %define with_qemu_tcg 0
232 %define with_qemu_kvm 0
237 # Fedora doesn't have any QEMU on ppc64 until FC16 - only ppc
238 %if 0%{?fedora} && 0%{?fedora} < 16
244 # Fedora doesn't have new enough Xen for libxl until F18
245 %if 0%{?fedora} && 0%{?fedora} < 18
249 # PolicyKit was introduced in Fedora 8 / RHEL-6 or newer
250 %if 0%{?fedora} >= 8 || 0%{?rhel} >= 6
251 %define with_polkit 0%{!?_without_polkit:1}
254 # libcapng is used to manage capabilities in Fedora 12 / RHEL-6 or newer
255 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
256 %define with_capng 0%{!?_without_capng:1}
259 # fuse is used to provide virtualized /proc for LXC
260 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
261 %define with_fuse 0%{!?_without_fuse:1}
264 # netcf is used to manage network interfaces in Fedora 12 / RHEL-6 or newer
265 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
266 %define with_netcf 0%{!?_without_netcf:%{server_drivers}}
269 # udev is used to manage host devices in Fedora 12 / RHEL-6 or newer
270 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
271 %define with_udev 0%{!?_without_udev:%{server_drivers}}
273 %define with_hal 0%{!?_without_hal:%{server_drivers}}
276 # interface requires netcf
277 %if ! 0%{?with_netcf}
278 %define with_interface 0
281 # Enable yajl library for JSON mode with QEMU
282 %if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
283 %define with_yajl 0%{!?_without_yajl:%{server_drivers}}
286 # Enable sanlock library for lock management with QEMU
287 # Sanlock is available only on i686 x86_64 for RHEL
288 %if 0%{?fedora} >= 16
289 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
292 %ifarch %{ix86} x86_64
293 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
298 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
302 # Enable libssh2 transport for new enough distros
303 %if 0%{?fedora} >= 17
304 %define with_libssh2 0%{!?_without_libssh2:1}
307 # Disable some drivers when building without libvirt daemon.
308 # The logic is the same as in configure.ac
309 %if ! %{with_libvirtd}
310 %define with_interface 0
311 %define with_network 0
317 %define with_storage_fs 0
318 %define with_storage_lvm 0
319 %define with_storage_iscsi 0
320 %define with_storage_mpath 0
321 %define with_storage_rbd 0
322 %define with_storage_sheepdog 0
323 %define with_storage_gluster 0
324 %define with_storage_disk 0
327 %if %{with_qemu} || %{with_lxc} || %{with_uml}
328 %define with_nwfilter 0%{!?_without_nwfilter:%{server_drivers}}
329 # Enable libpcap library
330 %define with_libpcap 0%{!?_without_libpcap:%{server_drivers}}
331 %define with_macvtap 0%{!?_without_macvtap:%{server_drivers}}
333 # numad is used to manage the CPU and memory placement dynamically,
334 # it's not available on s390[x] and ARM.
335 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
336 %ifnarch s390 s390x %{arm}
337 %define with_numad 0%{!?_without_numad:%{server_drivers}}
346 %if 0%{?fedora} >= 11 || 0%{?rhel} >= 5
347 %define with_audit 0%{!?_without_audit:1}
350 %if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
351 %define with_dtrace 1
354 # Pull in cgroups config system
355 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
356 %if %{with_qemu} || %{with_lxc}
357 %define with_cgconfig 0%{!?_without_cgconfig:1}
361 %if %{with_udev} || %{with_hal}
362 %define with_nodedev 1
364 %define with_nodedev 0
367 %if %{with_storage_fs} || %{with_storage_mpath} || %{with_storage_iscsi} || %{with_storage_lvm} || %{with_storage_disk}
368 %define with_storage 1
370 %define with_storage 0
374 # Force QEMU to run as non-root
375 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
376 %define qemu_user qemu
377 %define qemu_group qemu
379 %define qemu_user root
380 %define qemu_group root
384 # The RHEL-5 Xen package has some feature backports. This
385 # flag is set to enable use of those special bits on RHEL-5
392 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
393 %define with_systemd_macros 1
395 %define with_systemd_macros 0
399 # RHEL releases provide stable tool chains and so it is safe to turn
400 # compiler warning into errors without being worried about frequent
401 # changes in reported warnings
403 %define enable_werror --enable-werror
407 Summary: Library providing a simple virtualization API
409 Version: %{mainstream_version}
412 Group: Development/Libraries
413 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
414 URL: http://libvirt.org/
416 %if %(echo %{version} | grep -o \\. | wc -l) == 3
417 %define mainturl stable_updates/
419 Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.gz
422 Requires: libvirt-daemon = %{version}-%{release}
424 Requires: libvirt-daemon-config-network = %{version}-%{release}
427 Requires: libvirt-daemon-config-nwfilter = %{version}-%{release}
429 %if %{with_driver_modules}
431 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
434 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
437 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
440 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
443 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
446 Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
449 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
452 %if %{with_interface}
453 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
455 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
456 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
457 Requires: libvirt-daemon-driver-network = %{version}-%{release}
458 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
461 Requires: libvirt-client = %{version}-%{release}
463 # All build-time requirements. Run-time requirements are
464 # listed against each sub-RPM
465 %if 0%{?enable_autotools}
466 BuildRequires: autoconf
467 BuildRequires: automake
468 BuildRequires: gettext-devel
469 BuildRequires: libtool
470 BuildRequires: /usr/bin/pod2man
472 BuildRequires: python
474 BuildRequires: systemd-units
476 %if %{with_xen} || %{with_libxl}
477 BuildRequires: xen-devel
479 BuildRequires: libxml2-devel
480 BuildRequires: xhtml1-dtds
481 BuildRequires: libxslt
482 BuildRequires: readline-devel
483 BuildRequires: ncurses-devel
484 BuildRequires: gettext
485 BuildRequires: libtasn1-devel
486 %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 19)
487 BuildRequires: libgcrypt-devel
489 BuildRequires: gnutls-devel
490 BuildRequires: libattr-devel
492 # For pool-build probing for existing pools
493 BuildRequires: libblkid-devel >= 2.17
495 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
496 # for augparse, optionally used in testing
497 BuildRequires: augeas
500 BuildRequires: hal-devel
503 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
504 BuildRequires: systemd-devel >= 185
506 BuildRequires: libudev-devel >= 145
508 BuildRequires: libpciaccess-devel >= 0.10.9
511 BuildRequires: yajl-devel
514 # make sure libvirt is built with new enough sanlock on
515 # distros that have it; required for on_lockfailure
516 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
517 BuildRequires: sanlock-devel >= 2.4
519 BuildRequires: sanlock-devel >= 1.8
523 BuildRequires: libpcap-devel
526 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
527 BuildRequires: libnl3-devel
529 BuildRequires: libnl-devel
533 BuildRequires: avahi-devel
536 BuildRequires: libselinux-devel
539 BuildRequires: libapparmor-devel
542 BuildRequires: dnsmasq >= 2.41
543 BuildRequires: iptables
544 BuildRequires: iptables-ipv6
548 BuildRequires: ebtables
550 BuildRequires: module-init-tools
552 BuildRequires: cyrus-sasl-devel
555 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
556 BuildRequires: polkit-devel >= 0.93
558 BuildRequires: PolicyKit-devel >= 0.6
561 %if %{with_storage_fs}
562 # For mount/umount in FS driver
563 BuildRequires: util-linux
567 BuildRequires: /usr/bin/qemu-img
571 BuildRequires: /usr/sbin/qcow-create
574 %if %{with_storage_lvm}
578 %if %{with_storage_iscsi}
580 BuildRequires: iscsi-initiator-utils
582 %if %{with_storage_disk}
584 BuildRequires: parted-devel
586 # Broken RHEL-5 parted RPM is missing a dep
587 BuildRequires: e2fsprogs-devel
590 %if %{with_storage_mpath}
591 # For Multipath support
593 # Broken RHEL-5 packaging has header files in main RPM :-(
594 BuildRequires: device-mapper
596 BuildRequires: device-mapper-devel
598 %if %{with_storage_rbd}
599 BuildRequires: ceph-devel
602 %if %{with_storage_gluster}
603 BuildRequires: glusterfs-api-devel >= 3.4.1
604 BuildRequires: glusterfs-devel >= 3.4.1
607 # For QEMU/LXC numa info
608 BuildRequires: numactl-devel
611 BuildRequires: libcap-ng-devel >= 0.5.0
614 BuildRequires: fuse-devel >= 2.8.6
616 %if %{with_phyp} || %{with_libssh2}
617 BuildRequires: libssh2-devel >= 1.3.0
621 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
622 BuildRequires: netcf-devel >= 0.2.2
624 %if 0%{?fedora} >= 16 || 0%{?rhel} >= 6
625 BuildRequires: netcf-devel >= 0.1.8
627 BuildRequires: netcf-devel >= 0.1.4
632 %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
633 BuildRequires: libcurl-devel
635 BuildRequires: curl-devel
639 BuildRequires: libwsman-devel >= 2.2.3
642 BuildRequires: audit-libs-devel
645 # we need /usr/sbin/dtrace
646 BuildRequires: systemtap-sdt-devel
649 %if %{with_storage_fs}
650 # For mount/umount in FS driver
651 BuildRequires: util-linux
652 # For showmount in FS driver (netfs discovery)
653 BuildRequires: nfs-utils
656 %if %{with_firewalld}
657 # Communication with the firewall daemon uses DBus
658 BuildRequires: dbus-devel
661 # Fedora build root suckage
664 # For storage wiping with different algorithms
671 Provides: bundled(gnulib)
674 Libvirt is a C toolkit to interact with the virtualization capabilities
675 of recent versions of Linux (and other OSes). The main package includes
676 the libvirtd server exporting the virtualization support.
679 Summary: API reference and website documentation
680 Group: Development/Libraries
683 Includes the API reference for the libvirt C library, and a complete
684 copy of the libvirt.org website documentation.
688 Summary: Server side daemon and supporting files for libvirt library
689 Group: Development/Libraries
691 # All runtime requirements for the libvirt package (runtime requrements
692 # for subpackages are listed later in those subpackages)
694 # The client side, i.e. shared libs and virsh are in a subpackage
695 Requires: %{name}-client = %{version}-%{release}
697 # for modprobe of pci devices
698 Requires: module-init-tools
699 # for /sbin/ip & /sbin/tc
709 %if 0%{?fedora} >= 12 || 0%{?rhel} >=6
710 Requires: polkit >= 0.93
712 Requires: PolicyKit >= 0.6
718 %ifarch %{ix86} x86_64 ia64
719 # For virConnectGetSysinfo
722 # For service management
724 Requires(post): systemd-units
725 Requires(post): systemd-sysv
726 Requires(preun): systemd-units
727 Requires(postun): systemd-units
732 # libvirtd depends on 'messagebus' service
734 # For uid creation during pre
735 Requires(pre): shadow-utils
738 Server side daemon required to manage the virtualization capabilities
739 of recent versions of Linux. Requires a hypervisor specific sub-RPM
740 for specific drivers.
743 %package daemon-config-network
744 Summary: Default configuration files for the libvirtd daemon
745 Group: Development/Libraries
747 Requires: libvirt-daemon = %{version}-%{release}
749 %description daemon-config-network
750 Default configuration files for setting up NAT based networking
754 %package daemon-config-nwfilter
755 Summary: Network filter configuration files for the libvirtd daemon
756 Group: Development/Libraries
758 Requires: libvirt-daemon = %{version}-%{release}
760 %description daemon-config-nwfilter
761 Network filter configuration files for cleaning guest traffic
764 %if %{with_driver_modules}
766 %package daemon-driver-network
767 Summary: Network driver plugin for the libvirtd daemon
768 Group: Development/Libraries
769 Requires: libvirt-daemon = %{version}-%{release}
770 Requires: dnsmasq >= 2.41
773 Requires: iptables-ipv6
775 %description daemon-driver-network
776 The network driver plugin for the libvirtd daemon, providing
777 an implementation of the virtual network APIs using the Linux
783 %package daemon-driver-nwfilter
784 Summary: Nwfilter driver plugin for the libvirtd daemon
785 Group: Development/Libraries
786 Requires: libvirt-daemon = %{version}-%{release}
788 Requires: iptables-ipv6
791 %description daemon-driver-nwfilter
792 The nwfilter driver plugin for the libvirtd daemon, providing
793 an implementation of the firewall APIs using the ebtables,
794 iptables and ip6tables capabilities
799 %package daemon-driver-nodedev
800 Summary: Nodedev driver plugin for the libvirtd daemon
801 Group: Development/Libraries
802 Requires: libvirt-daemon = %{version}-%{release}
803 # needed for device enumeration
808 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
809 Requires: systemd >= 185
811 Requires: udev >= 145
815 %description daemon-driver-nodedev
816 The nodedev driver plugin for the libvirtd daemon, providing
817 an implementation of the node device APIs using the udev
822 %if %{with_interface}
823 %package daemon-driver-interface
824 Summary: Interface driver plugin for the libvirtd daemon
825 Group: Development/Libraries
826 Requires: libvirt-daemon = %{version}-%{release}
827 %if %{with_netcf} && (0%{?fedora} >= 18 || 0%{?rhel} >= 7)
828 Requires: netcf-libs >= 0.2.2
831 %description daemon-driver-interface
832 The interface driver plugin for the libvirtd daemon, providing
833 an implementation of the network interface APIs using the
838 %package daemon-driver-secret
839 Summary: Secret driver plugin for the libvirtd daemon
840 Group: Development/Libraries
841 Requires: libvirt-daemon = %{version}-%{release}
843 %description daemon-driver-secret
844 The secret driver plugin for the libvirtd daemon, providing
845 an implementation of the secret key APIs.
849 %package daemon-driver-storage
850 Summary: Storage driver plugin for the libvirtd daemon
851 Group: Development/Libraries
852 Requires: libvirt-daemon = %{version}-%{release}
853 %if %{with_storage_fs}
858 %if 0%{?fedora} >= 11
859 Requires: glusterfs-client >= 2.0.1
862 %if %{with_storage_lvm}
866 %if %{with_storage_iscsi}
868 Requires: iscsi-initiator-utils
870 %if %{with_storage_disk}
873 Requires: device-mapper
875 %if %{with_storage_mpath}
876 # For multipath support
877 Requires: device-mapper
879 %if %{with_storage_sheepdog}
880 # For Sheepdog support
885 Requires: /usr/bin/qemu-img
889 Requires: /usr/sbin/qcow-create
893 %description daemon-driver-storage
894 The storage driver plugin for the libvirtd daemon, providing
895 an implementation of the storage APIs using LVM, iSCSI,
901 %package daemon-driver-qemu
902 Summary: Qemu driver plugin for the libvirtd daemon
903 Group: Development/Libraries
904 Requires: libvirt-daemon = %{version}-%{release}
905 # There really is a hard cross-driver dependency here
906 Requires: libvirt-daemon-driver-network = %{version}-%{release}
907 Requires: /usr/bin/qemu-img
908 # For image compression
914 %description daemon-driver-qemu
915 The qemu driver plugin for the libvirtd daemon, providing
916 an implementation of the hypervisor driver APIs using
922 %package daemon-driver-lxc
923 Summary: LXC driver plugin for the libvirtd daemon
924 Group: Development/Libraries
925 Requires: libvirt-daemon = %{version}-%{release}
926 # There really is a hard cross-driver dependency here
927 Requires: libvirt-daemon-driver-network = %{version}-%{release}
929 %description daemon-driver-lxc
930 The LXC driver plugin for the libvirtd daemon, providing
931 an implementation of the hypervisor driver APIs using
937 %package daemon-driver-uml
938 Summary: Uml driver plugin for the libvirtd daemon
939 Group: Development/Libraries
940 Requires: libvirt-daemon = %{version}-%{release}
942 %description daemon-driver-uml
943 The UML driver plugin for the libvirtd daemon, providing
944 an implementation of the hypervisor driver APIs using
950 %package daemon-driver-xen
951 Summary: Xen driver plugin for the libvirtd daemon
952 Group: Development/Libraries
953 Requires: libvirt-daemon = %{version}-%{release}
955 %description daemon-driver-xen
956 The Xen driver plugin for the libvirtd daemon, providing
957 an implementation of the hypervisor driver APIs using
963 %package daemon-driver-vbox
964 Summary: VirtualBox driver plugin for the libvirtd daemon
965 Group: Development/Libraries
966 Requires: libvirt-daemon = %{version}-%{release}
968 %description daemon-driver-vbox
969 The vbox driver plugin for the libvirtd daemon, providing
970 an implementation of the hypervisor driver APIs using
976 %package daemon-driver-libxl
977 Summary: Libxl driver plugin for the libvirtd daemon
978 Group: Development/Libraries
979 Requires: libvirt-daemon = %{version}-%{release}
981 %description daemon-driver-libxl
982 The Libxl driver plugin for the libvirtd daemon, providing
983 an implementation of the hypervisor driver APIs using
986 %endif # %{with_driver_modules}
992 Summary: Server side daemon & driver required to run QEMU guests
993 Group: Development/Libraries
995 Requires: libvirt-daemon = %{version}-%{release}
996 %if %{with_driver_modules}
997 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
998 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
999 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1000 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1001 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1002 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1003 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1007 %description daemon-qemu
1008 Server side daemon and driver required to manage the virtualization
1009 capabilities of the QEMU TCG emulators
1013 %if %{with_qemu_kvm}
1015 Summary: Server side daemon & driver required to run KVM guests
1016 Group: Development/Libraries
1018 Requires: libvirt-daemon = %{version}-%{release}
1019 %if %{with_driver_modules}
1020 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
1021 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1022 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1023 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1024 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1025 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1026 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1030 %description daemon-kvm
1031 Server side daemon and driver required to manage the virtualization
1032 capabilities of the KVM hypervisor
1038 Summary: Server side daemon & driver required to run LXC guests
1039 Group: Development/Libraries
1041 Requires: libvirt-daemon = %{version}-%{release}
1042 %if %{with_driver_modules}
1043 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
1044 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1045 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1046 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1047 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1048 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1049 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1052 %description daemon-lxc
1053 Server side daemon and driver required to manage the virtualization
1060 Summary: Server side daemon & driver required to run UML guests
1061 Group: Development/Libraries
1063 Requires: libvirt-daemon = %{version}-%{release}
1064 %if %{with_driver_modules}
1065 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
1066 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1067 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1068 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1069 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1070 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1071 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1073 # There are no UML kernel RPMs in Fedora/RHEL to depend on.
1075 %description daemon-uml
1076 Server side daemon and driver required to manage the virtualization
1081 %if %{with_xen} || %{with_libxl}
1083 Summary: Server side daemon & driver required to run XEN guests
1084 Group: Development/Libraries
1086 Requires: libvirt-daemon = %{version}-%{release}
1087 %if %{with_driver_modules}
1089 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
1092 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
1094 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1095 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1096 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1097 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1098 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1099 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1103 %description daemon-xen
1104 Server side daemon and driver required to manage the virtualization
1109 %package daemon-vbox
1110 Summary: Server side daemon & driver required to run VirtualBox guests
1111 Group: Development/Libraries
1113 Requires: libvirt-daemon = %{version}-%{release}
1114 %if %{with_driver_modules}
1115 Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
1116 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1117 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1118 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1119 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1120 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1121 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1124 %description daemon-vbox
1125 Server side daemon and driver required to manage the virtualization
1126 capabilities of VirtualBox
1128 %endif # %{with_libvirtd}
1131 Summary: Client side library and utilities of the libvirt library
1132 Group: Development/Libraries
1135 # So remote clients can access libvirt over SSH tunnel
1136 # (client invokes 'nc' against the UNIX socket on the server)
1138 # Needed by /usr/libexec/libvirt-guests.sh script.
1140 # Needed by virt-pki-validate script.
1141 Requires: gnutls-utils
1142 # Needed for probing the power management features of the host.
1145 Requires: cyrus-sasl
1146 # Not technically required, but makes 'out-of-box' config
1147 # work correctly & doesn't have onerous dependencies
1148 Requires: cyrus-sasl-md5
1152 Shared libraries and client binaries needed to access to the
1153 virtualization capabilities of recent versions of Linux (and other OSes).
1156 %package login-shell
1157 Summary: Login shell for connecting users to an LXC container
1158 Group: Development/Libraries
1159 Requires: %{name}-client = %{version}-%{release}
1161 %description login-shell
1162 Provides the set-uid virt-login-shell binary that is used to
1163 connect a user to an LXC container when they login, by switching
1168 Summary: Libraries, includes, etc. to compile with the libvirt library
1169 Group: Development/Libraries
1170 Requires: %{name}-client = %{version}-%{release}
1171 Requires: %{name}-docs = %{version}-%{release}
1175 Include header files & development libraries for the libvirt C library.
1178 %package lock-sanlock
1179 Summary: Sanlock lock manager plugin for QEMU driver
1180 Group: Development/Libraries
1181 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
1182 Requires: sanlock >= 2.4
1184 Requires: sanlock >= 1.8
1186 #for virt-sanlock-cleanup require augeas
1188 Requires: %{name}-daemon = %{version}-%{release}
1189 Requires: %{name}-client = %{version}-%{release}
1191 %description lock-sanlock
1192 Includes the Sanlock lock manager plugin for the QEMU
1201 %define _without_xen --without-xen
1205 %define _without_qemu --without-qemu
1208 %if ! %{with_openvz}
1209 %define _without_openvz --without-openvz
1213 %define _without_lxc --without-lxc
1217 %define _without_vbox --without-vbox
1220 %if ! %{with_xenapi}
1221 %define _without_xenapi --without-xenapi
1225 %define _without_libxl --without-libxl
1229 %define _without_sasl --without-sasl
1233 %define _without_avahi --without-avahi
1237 %define _without_phyp --without-phyp
1241 %define _without_esx --without-esx
1244 %if ! %{with_hyperv}
1245 %define _without_hyperv --without-hyperv
1248 %if ! %{with_vmware}
1249 %define _without_vmware --without-vmware
1252 %if ! %{with_parallels}
1253 %define _without_parallels --without-parallels
1256 %if ! %{with_polkit}
1257 %define _without_polkit --without-polkit
1260 %if ! %{with_libvirtd}
1261 %define _without_libvirtd --without-libvirtd
1265 %define _without_uml --without-uml
1269 %define _with_rhel5_api --with-rhel5-api
1272 %if ! %{with_interface}
1273 %define _without_interface --without-interface
1276 %if ! %{with_network}
1277 %define _without_network --without-network
1280 %if ! %{with_storage_fs}
1281 %define _without_storage_fs --without-storage-fs
1284 %if ! %{with_storage_lvm}
1285 %define _without_storage_lvm --without-storage-lvm
1288 %if ! %{with_storage_iscsi}
1289 %define _without_storage_iscsi --without-storage-iscsi
1292 %if ! %{with_storage_disk}
1293 %define _without_storage_disk --without-storage-disk
1296 %if ! %{with_storage_mpath}
1297 %define _without_storage_mpath --without-storage-mpath
1300 %if ! %{with_storage_rbd}
1301 %define _without_storage_rbd --without-storage-rbd
1304 %if ! %{with_storage_sheepdog}
1305 %define _without_storage_sheepdog --without-storage-sheepdog
1308 %if ! %{with_storage_gluster}
1309 %define _without_storage_gluster --without-storage-gluster
1312 %if ! %{with_numactl}
1313 %define _without_numactl --without-numactl
1317 %define _without_numad --without-numad
1321 %define _without_capng --without-capng
1325 %define _without_fuse --without-fuse
1329 %define _without_netcf --without-netcf
1332 %if ! %{with_selinux}
1333 %define _without_selinux --without-selinux
1336 %if ! %{with_apparmor}
1337 %define _without_apparmor --without-apparmor
1341 %define _without_hal --without-hal
1345 %define _without_udev --without-udev
1349 %define _without_yajl --without-yajl
1352 %if ! %{with_sanlock}
1353 %define _without_sanlock --without-sanlock
1356 %if ! %{with_libpcap}
1357 %define _without_libpcap --without-libpcap
1360 %if ! %{with_macvtap}
1361 %define _without_macvtap --without-macvtap
1365 %define _without_audit --without-audit
1368 %if ! %{with_dtrace}
1369 %define _without_dtrace --without-dtrace
1372 %if ! %{with_driver_modules}
1373 %define _without_driver_modules --without-driver-modules
1376 %if %{with_firewalld}
1377 %define _with_firewalld --with-firewalld
1380 %define when %(date +"%%F-%%T")
1381 %define where %(hostname)
1382 %define who %{?packager}%{!?packager:Unknown}
1383 %define with_packager --with-packager="%{who}, %{when}, %{where}"
1384 %define with_packager_version --with-packager-version="%{release}"
1387 %define init_scripts --with-init_script=systemd
1389 %define init_scripts --with-init_script=redhat
1393 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
1394 %define with_selinux_mount --with-selinux-mount="/sys/fs/selinux"
1396 %define with_selinux_mount --with-selinux-mount="/selinux"
1400 # place macros above and build commands below this comment
1402 %if 0%{?enable_autotools}
1406 %configure %{?_without_xen} \
1408 %{?_without_openvz} \
1411 %{?_without_libxl} \
1412 %{?_without_xenapi} \
1414 %{?_without_avahi} \
1415 %{?_without_polkit} \
1416 %{?_without_libvirtd} \
1420 %{?_without_hyperv} \
1421 %{?_without_vmware} \
1422 %{?_without_parallels} \
1423 %{?_without_interface} \
1424 %{?_without_network} \
1425 %{?_with_rhel5_api} \
1426 %{?_without_storage_fs} \
1427 %{?_without_storage_lvm} \
1428 %{?_without_storage_iscsi} \
1429 %{?_without_storage_disk} \
1430 %{?_without_storage_mpath} \
1431 %{?_without_storage_rbd} \
1432 %{?_without_storage_sheepdog} \
1433 %{?_without_storage_gluster} \
1434 %{?_without_numactl} \
1435 %{?_without_numad} \
1436 %{?_without_capng} \
1438 %{?_without_netcf} \
1439 %{?_without_selinux} \
1440 %{?_with_selinux_mount} \
1441 %{?_without_apparmor} \
1445 %{?_without_sanlock} \
1446 %{?_without_libpcap} \
1447 %{?_without_macvtap} \
1448 %{?_without_audit} \
1449 %{?_without_dtrace} \
1450 %{?_without_driver_modules} \
1451 %{?_with_firewalld} \
1453 %{with_packager_version} \
1454 --with-qemu-user=%{qemu_user} \
1455 --with-qemu-group=%{qemu_group} \
1457 --enable-expensive-tests \
1459 make %{?_smp_mflags}
1465 # Avoid using makeinstall macro as it changes prefixes rather than setting
1466 # DESTDIR. Newer make_install macro would be better but it's not available
1467 # on RHEL 5, thus we need to expand it here.
1468 make install DESTDIR=%{?buildroot} SYSTEMD_UNIT_DIR=%{_unitdir}
1470 for i in object-events dominfo domsuspend hellolibvirt openauth xml/nwfilter systemtap
1472 (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
1474 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
1475 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
1476 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la
1477 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a
1478 %if %{with_driver_modules}
1479 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la
1480 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a
1484 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
1485 # We don't want to install /etc/libvirt/qemu/networks in the main %files list
1486 # because if the admin wants to delete the default network completely, we don't
1487 # want to end up re-incarnating it on every RPM upgrade.
1488 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/
1489 cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \
1490 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1491 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1492 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1493 # Strip auto-generated UUID - we need it generated per-install
1494 sed -i -e "/<uuid>/d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1496 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1497 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1500 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
1501 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1505 %if ! %{with_sanlock}
1506 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug
1507 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
1511 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
1512 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1516 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
1517 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu
1520 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
1521 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
1524 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
1527 # Copied into libvirt-docs subpackage eventually
1528 mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version} libvirt-docs
1531 %ifarch %{power64} s390x x86_64 ia64 alpha sparc64
1532 mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \
1533 $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes-64.stp
1534 mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \
1535 $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes-64.stp
1539 %if 0%{?fedora} < 14 && 0%{?rhel} < 6
1540 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/sysctl.d/libvirtd.conf
1549 # These tests don't current work in a mock build root
1550 for i in nodeinfotest seclabeltest
1553 printf 'int main(void) { return 0; }' > $i.c
1554 printf '#!/bin/sh\nexit 0\n' > $i
1557 if ! make check VIR_TEST_DEBUG=1
1559 cat test-suite.log || true
1563 %if %{with_libvirtd}
1564 %if ! %{with_driver_modules}
1567 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1568 # We want soft static allocation of well-known ids, as disk images
1569 # are commonly shared across NFS mounts by id rather than name; see
1570 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
1571 getent group kvm >/dev/null || groupadd -f -g 36 -r kvm
1572 getent group qemu >/dev/null || groupadd -f -g 107 -r qemu
1573 if ! getent passwd qemu >/dev/null; then
1574 if ! getent passwd 107 >/dev/null; then
1575 useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1577 useradd -r -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1588 # All newly defined networks will have a mac address for the bridge
1589 # auto-generated, but networks already existing at the time of upgrade
1590 # will not. We need to go through all the network configs, look for
1591 # those that don't have a mac address, and add one.
1593 network_files=$( (cd %{_localstatedir}/lib/libvirt/network && \
1594 grep -L "mac address" *.xml; \
1595 cd %{_sysconfdir}/libvirt/qemu/networks && \
1596 grep -L "mac address" *.xml) 2>/dev/null \
1599 for file in $network_files
1601 # each file exists in either the config or state directory (or both) and
1602 # does not have a mac address specified in either. We add the same mac
1603 # address to both files (or just one, if the other isn't there)
1605 mac4=`printf '%X' $(($RANDOM % 256))`
1606 mac5=`printf '%X' $(($RANDOM % 256))`
1607 mac6=`printf '%X' $(($RANDOM % 256))`
1608 for dir in %{_localstatedir}/lib/libvirt/network \
1609 %{_sysconfdir}/libvirt/qemu/networks
1611 if test -f $dir/$file
1614 "s|\(<bridge.*$\)|\0\n <mac address='52:54:00:$mac4:$mac5:$mac6'/>|" \
1618 echo "failed to add <mac address='52:54:00:$mac4:$mac5:$mac6'/>" \
1620 mv -f $dir/$file.orig $dir/$file
1622 rm -f $dir/$file.orig
1630 %if %{with_systemd_macros}
1631 %systemd_post virtlockd.socket libvirtd.service
1633 if [ $1 -eq 1 ] ; then
1634 # Initial installation
1635 /bin/systemctl enable virtlockd.socket libvirtd.service >/dev/null 2>&1 || :
1639 %if %{with_cgconfig}
1640 # Starting with Fedora 16/RHEL-7, systemd automounts all cgroups,
1641 # and cgconfig is no longer a necessary service.
1642 %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 16)
1643 if [ "$1" -eq "1" ]; then
1644 /sbin/chkconfig cgconfig on
1649 /sbin/chkconfig --add libvirtd
1650 /sbin/chkconfig --add virtlockd
1655 %if %{with_systemd_macros}
1656 %systemd_preun libvirtd.service virtlockd.socket virtlockd.service
1658 if [ $1 -eq 0 ] ; then
1659 # Package removal, not upgrade
1660 /bin/systemctl --no-reload disable libvirtd.service virtlockd.socket virtlockd.service > /dev/null 2>&1 || :
1661 /bin/systemctl stop libvirtd.service virtlockd.socket virtlockd.service > /dev/null 2>&1 || :
1666 /sbin/service libvirtd stop 1>/dev/null 2>&1
1667 /sbin/chkconfig --del libvirtd
1668 /sbin/service virtlockd stop 1>/dev/null 2>&1
1669 /sbin/chkconfig --del virtlockd
1675 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
1676 if [ $1 -ge 1 ] ; then
1677 /bin/systemctl reload-or-try-restart virtlockd.service >/dev/null 2>&1 || :
1678 /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1681 if [ $1 -ge 1 ]; then
1682 /sbin/service virtlockd reload > /dev/null 2>&1 || :
1683 /sbin/service libvirtd condrestart > /dev/null 2>&1
1689 %triggerpostun daemon -- libvirt-daemon < 1.2.1
1690 if [ "$1" -ge "1" ]; then
1691 /sbin/service virtlockd reload > /dev/null 2>&1 || :
1692 /sbin/service libvirtd condrestart > /dev/null 2>&1
1697 %post daemon-config-network
1698 if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
1699 UUID=`/usr/bin/uuidgen`
1700 sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
1701 < %{_datadir}/libvirt/networks/default.xml \
1702 > %{_sysconfdir}/libvirt/qemu/networks/default.xml
1703 ln -s ../default.xml %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1708 %triggerun -- libvirt < 0.9.4
1709 %{_bindir}/systemd-sysv-convert --save libvirtd >/dev/null 2>&1 ||:
1711 # If the package is allowed to autostart:
1712 /bin/systemctl --no-reload enable libvirtd.service >/dev/null 2>&1 ||:
1714 # Run these because the SysV package being removed won't do them
1715 /sbin/chkconfig --del libvirtd >/dev/null 2>&1 || :
1716 /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1719 %if %{with_driver_modules}
1721 %pre daemon-driver-qemu
1722 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1723 # We want soft static allocation of well-known ids, as disk images
1724 # are commonly shared across NFS mounts by id rather than name; see
1725 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
1726 getent group kvm >/dev/null || groupadd -f -g 36 -r kvm
1727 getent group qemu >/dev/null || groupadd -f -g 107 -r qemu
1728 if ! getent passwd qemu >/dev/null; then
1729 if ! getent passwd 107 >/dev/null; then
1730 useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1732 useradd -r -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1739 %endif # %{with_libvirtd}
1744 %if %{with_systemd_macros}
1745 %systemd_preun libvirt-guests.service
1749 /sbin/chkconfig --del libvirt-guests
1750 rm -f /var/lib/libvirt/libvirt-guests
1758 %if %{with_systemd_macros}
1759 %systemd_post libvirt-guests.service
1762 /sbin/chkconfig --add libvirt-guests
1769 %if %{with_systemd_macros}
1770 %systemd_postun libvirt-guests.service
1772 %triggerun client -- libvirt < 0.9.4
1773 %{_bindir}/systemd-sysv-convert --save libvirt-guests >/dev/null 2>&1 ||:
1775 # If the package is allowed to autostart:
1776 /bin/systemctl --no-reload enable libvirt-guests.service >/dev/null 2>&1 ||:
1778 # Run this because the SysV package being removed won't do them
1779 /sbin/chkconfig --del libvirt-guests >/dev/null 2>&1 || :
1784 if getent group sanlock > /dev/null ; then
1785 chmod 0770 %{_localstatedir}/lib/libvirt/sanlock
1786 chown root:sanlock %{_localstatedir}/lib/libvirt/sanlock
1792 getent group virtlogin >/dev/null || groupadd -r virtlogin
1797 %defattr(-, root, root)
1800 %defattr(-, root, root)
1801 %doc AUTHORS ChangeLog.gz NEWS README TODO libvirt-docs/*
1804 %dir %{_datadir}/gtk-doc/html/libvirt/
1805 %doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
1806 %doc %{_datadir}/gtk-doc/html/libvirt/*.html
1807 %doc %{_datadir}/gtk-doc/html/libvirt/*.png
1808 %doc %{_datadir}/gtk-doc/html/libvirt/*.css
1810 %if %{with_libvirtd}
1812 %defattr(-, root, root)
1814 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
1816 %if %{with_nwfilter}
1817 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
1821 %{_unitdir}/libvirtd.service
1822 %{_unitdir}/virtlockd.service
1823 %{_unitdir}/virtlockd.socket
1825 %{_sysconfdir}/rc.d/init.d/libvirtd
1826 %{_sysconfdir}/rc.d/init.d/virtlockd
1828 %doc daemon/libvirtd.upstart
1829 %config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
1830 %config(noreplace) %{_sysconfdir}/sysconfig/virtlockd
1831 %config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
1832 %config(noreplace) %{_sysconfdir}/libvirt/virtlockd.conf
1833 %if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
1834 %config(noreplace) %{_prefix}/lib/sysctl.d/libvirtd.conf
1837 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
1838 %dir %{_datadir}/libvirt/
1840 %ghost %dir %{_localstatedir}/run/libvirt/
1842 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
1843 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/filesystems/
1844 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
1845 %dir %attr(0711, root, root) %{_localstatedir}/cache/libvirt/
1848 %dir %attr(0755, root, root) %{_libdir}/libvirt/lock-driver
1849 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/lockd.so
1851 %{_datadir}/augeas/lenses/libvirtd.aug
1852 %{_datadir}/augeas/lenses/tests/test_libvirtd.aug
1853 %{_datadir}/augeas/lenses/virtlockd.aug
1854 %{_datadir}/augeas/lenses/tests/test_virtlockd.aug
1855 %{_datadir}/augeas/lenses/libvirt_lockd.aug
1856 %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug
1859 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1860 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy
1861 %{_datadir}/polkit-1/actions/org.libvirt.api.policy
1863 %{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
1867 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
1869 %attr(0755, root, root) %{_libexecdir}/libvirt_iohelper
1871 %if %{with_apparmor}
1872 %attr(0755, root, root) %{_libexecdir}/virt-aa-helper
1875 %attr(0755, root, root) %{_sbindir}/libvirtd
1876 %attr(0755, root, root) %{_sbindir}/virtlockd
1878 %{_mandir}/man8/libvirtd.8*
1879 %{_mandir}/man8/virtlockd.8*
1881 %if ! %{with_driver_modules}
1883 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
1884 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
1885 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
1886 %dir %{_datadir}/libvirt/networks/
1887 %{_datadir}/libvirt/networks/default.xml
1888 %ghost %dir %{_localstatedir}/run/libvirt/network/
1889 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
1890 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
1892 %if %{with_storage_disk}
1893 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
1896 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
1897 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
1898 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
1899 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
1900 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
1901 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
1902 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/
1903 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/
1904 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
1905 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
1906 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1909 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
1910 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
1911 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
1912 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
1913 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
1914 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
1915 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1916 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
1919 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
1920 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
1921 %ghost %dir %{_localstatedir}/run/libvirt/uml/
1922 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
1925 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
1926 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
1927 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
1930 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/xen/
1932 %endif # ! %{with_driver_modules}
1935 %files daemon-config-network
1936 %defattr(-, root, root)
1939 %if %{with_nwfilter}
1940 %files daemon-config-nwfilter
1941 %defattr(-, root, root)
1942 %{_sysconfdir}/libvirt/nwfilter/*.xml
1945 %if %{with_driver_modules}
1946 %if %{with_interface}
1947 %files daemon-driver-interface
1948 %defattr(-, root, root)
1949 %{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so
1953 %files daemon-driver-network
1954 %defattr(-, root, root)
1955 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
1956 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
1957 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
1958 %dir %{_datadir}/libvirt/networks/
1959 %{_datadir}/libvirt/networks/default.xml
1960 %ghost %dir %{_localstatedir}/run/libvirt/network/
1961 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
1962 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
1963 %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so
1967 %files daemon-driver-nodedev
1968 %defattr(-, root, root)
1969 %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
1972 %if %{with_nwfilter}
1973 %files daemon-driver-nwfilter
1974 %defattr(-, root, root)
1975 %{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so
1978 %files daemon-driver-secret
1979 %defattr(-, root, root)
1980 %{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so
1983 %files daemon-driver-storage
1984 %defattr(-, root, root)
1985 %if %{with_storage_disk}
1986 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
1988 %{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so
1992 %files daemon-driver-qemu
1993 %defattr(-, root, root)
1994 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
1995 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
1996 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
1997 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
1998 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
1999 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
2000 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/
2001 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/
2002 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
2003 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
2004 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
2005 %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so
2009 %files daemon-driver-lxc
2010 %defattr(-, root, root)
2011 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
2012 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
2013 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
2014 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
2015 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
2016 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
2017 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
2018 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
2019 %{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so
2023 %files daemon-driver-uml
2024 %defattr(-, root, root)
2025 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
2026 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
2027 %ghost %dir %{_localstatedir}/run/libvirt/uml/
2028 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
2029 %{_libdir}/%{name}/connection-driver/libvirt_driver_uml.so
2033 %files daemon-driver-xen
2034 %defattr(-, root, root)
2035 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/xen/
2036 %{_libdir}/%{name}/connection-driver/libvirt_driver_xen.so
2040 %files daemon-driver-libxl
2041 %defattr(-, root, root)
2042 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
2043 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
2044 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
2045 %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so
2049 %files daemon-driver-vbox
2050 %defattr(-, root, root)
2051 %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so
2053 %endif # %{with_driver_modules}
2055 %if %{with_qemu_tcg}
2057 %defattr(-, root, root)
2060 %if %{with_qemu_kvm}
2062 %defattr(-, root, root)
2067 %defattr(-, root, root)
2072 %defattr(-, root, root)
2075 %if %{with_xen} || %{with_libxl}
2077 %defattr(-, root, root)
2082 %defattr(-, root, root)
2084 %endif # %{with_libvirtd}
2088 %defattr(-, root, root)
2090 %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
2092 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
2093 %{_datadir}/augeas/lenses/libvirt_sanlock.aug
2094 %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
2095 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/sanlock
2096 %{_sbindir}/virt-sanlock-cleanup
2097 %{_mandir}/man8/virt-sanlock-cleanup.8*
2098 %attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper
2101 %files client -f %{name}.lang
2102 %defattr(-, root, root)
2103 %doc COPYING COPYING.LESSER
2105 %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
2106 %{_mandir}/man1/virsh.1*
2107 %{_mandir}/man1/virt-xml-validate.1*
2108 %{_mandir}/man1/virt-pki-validate.1*
2109 %{_mandir}/man1/virt-host-validate.1*
2111 %{_bindir}/virt-xml-validate
2112 %{_bindir}/virt-pki-validate
2113 %{_bindir}/virt-host-validate
2114 %{_libdir}/lib*.so.*
2117 %{_datadir}/systemtap/tapset/libvirt_probes*.stp
2118 %{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
2119 %{_datadir}/systemtap/tapset/libvirt_functions.stp
2122 %dir %{_datadir}/libvirt/
2123 %dir %{_datadir}/libvirt/schemas/
2125 %{_datadir}/libvirt/schemas/basictypes.rng
2126 %{_datadir}/libvirt/schemas/capability.rng
2127 %{_datadir}/libvirt/schemas/domain.rng
2128 %{_datadir}/libvirt/schemas/domaincommon.rng
2129 %{_datadir}/libvirt/schemas/domainsnapshot.rng
2130 %{_datadir}/libvirt/schemas/interface.rng
2131 %{_datadir}/libvirt/schemas/network.rng
2132 %{_datadir}/libvirt/schemas/networkcommon.rng
2133 %{_datadir}/libvirt/schemas/nodedev.rng
2134 %{_datadir}/libvirt/schemas/nwfilter.rng
2135 %{_datadir}/libvirt/schemas/secret.rng
2136 %{_datadir}/libvirt/schemas/storageencryption.rng
2137 %{_datadir}/libvirt/schemas/storagefilefeatures.rng
2138 %{_datadir}/libvirt/schemas/storagepool.rng
2139 %{_datadir}/libvirt/schemas/storagevol.rng
2141 %{_datadir}/libvirt/cpu_map.xml
2142 %{_datadir}/libvirt/libvirtLogo.png
2145 %{_unitdir}/libvirt-guests.service
2147 %{_sysconfdir}/rc.d/init.d/libvirt-guests
2149 %config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
2150 %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
2151 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
2154 %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
2159 %attr(4750, root, virtlogin) %{_bindir}/virt-login-shell
2160 %config(noreplace) %{_sysconfdir}/libvirt/virt-login-shell.conf
2161 %{_mandir}/man1/virt-login-shell.1*
2165 %defattr(-, root, root)
2168 %dir %{_includedir}/libvirt
2169 %{_includedir}/libvirt/*.h
2170 %{_libdir}/pkgconfig/libvirt.pc
2172 %dir %{_datadir}/libvirt/api/
2173 %{_datadir}/libvirt/api/libvirt-api.xml
2174 %{_datadir}/libvirt/api/libvirt-qemu-api.xml
2175 %{_datadir}/libvirt/api/libvirt-lxc-api.xml
2177 %doc docs/*.html docs/html docs/*.gif
2178 %doc docs/libvirt-api.xml
2179 %doc examples/hellolibvirt
2180 %doc examples/object-events
2181 %doc examples/dominfo
2182 %doc examples/domsuspend
2183 %doc examples/openauth
2185 %doc examples/systemtap
2188 * Mon Jan 27 2014 Cole Robinson <crobinso@redhat.com> - 1.2.1-2
2189 - Rebuild for openwsman soname bump
2191 * Tue Jan 21 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.1-1
2192 - Update to 1.2.1 release
2194 * Mon Dec 2 2013 Daniel P. Berrange <berrange@redhat.com> - 1.2.0-1
2195 - Update to 1.2.0 release with python in a separate srpm
2197 * Tue Nov 12 2013 Cole Robinson <crobinso@redhat.com> - 1.1.4-2
2198 - virsh nodedev-detach fails if device has no driver (bz #1028629)
2200 * Mon Nov 4 2013 Daniel Veillard <veillard@redhat.com> - 1.1.4-1
2201 - upstream release of 1.1.4
2202 - Add support for AArch64 architecture
2203 - Various improvements on test code and test driver
2204 - a lot of bug fixes and various improvements
2206 * Sun Oct 06 2013 Cole Robinson <crobinso@redhat.com> - 1.1.3-2
2207 - Allow QoS change with update-device (bz #1014200)
2208 - Fix nwfilter crash during firewalld install (bz #1014762)
2209 - Fix crash with nographics (bz #1014088)
2211 * Tue Oct 1 2013 Daniel Veillard <veillard@redhat.com> - 1.1.3-1
2212 - VMware: Initial VMware Fusion support and various improvements
2213 - libvirt: add new public API virConnectGetCPUModelNames
2214 - various libxl driver improvements
2215 - LXC many container driver improvement
2216 - ARM cpu improvements
2217 - a lot of bug and leak fixes and various improvements
2219 * Tue Sep 24 2013 Cole Robinson <crobinso@redhat.com> - 1.1.2-4
2220 - Fix snapshot restore when VM has disabled usb support (bz #1011520)
2222 * Mon Sep 23 2013 Cole Robinson <crobinso@redhat.com> - 1.1.2-3
2223 - Sync with v1.1.2-maint
2224 - Rebuild for libswan soname bump (bz #1009701)
2225 - CVE-2013-4311: Insecure polkit usage (bz #1009539, bz #1005332)
2226 - CVE-2013-4296: Invalid free memory stats (bz #1006173, bz #1009667)
2227 - CVE-2013-4297: Invalid free in NBDDeviceAssociate (bz #1006505, bz #1006511)
2228 - Fix virsh block-commit abort (bz #1010056)
2230 * Wed Sep 18 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.2-2
2231 - Rebuild for soname break in openswman package
2233 * Mon Sep 2 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.2-1
2234 - Update to 1.1.2 release
2236 * Tue Aug 20 2013 Cole Robinson <crobinso@redhat.com> - 1.1.1-3
2237 - Fix launching ARM guests on x86 (patches posted upstream, F20 feature)
2239 * Wed Aug 14 2013 Cole Robinson <crobinso@redhat.com> - 1.1.1-2
2240 - CVE-2013-4239: xen: memory corruption in legacy driver (bz #996241, bz
2243 * Tue Jul 30 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.1-1
2244 - Update to 1.1.1 release
2246 * Sun Jul 28 2013 Dennis Gilmore <dennis@ausil.us> - 1.1.0-5
2247 - fix doc path in libvirt-python
2249 * Thu Jul 25 2013 Cole Robinson <crobinso@redhat.com> - 1.1.0-4
2250 - CVE-2013-4153: Fix double free of returned JSON (bz #986408, bz #986383)
2251 - CVE-2013-4154: Crash of libvirtd if guest agent not configured (bz #986386,
2254 * Wed Jul 17 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.0-3
2255 - Rebuild for change in Xen library ABI/soname
2257 * Thu Jul 11 2013 Cole Robinson <crobinso@redhat.com> - 1.1.0-2
2258 - CVE-2013-2230 libvirt: multiple registered events crash
2260 * Mon Jul 1 2013 Daniel Veillard <veillard@redhat.com> - 1.1.0-1
2261 - CVE-2013-2218: Fix crash listing network interfaces with filters
2262 - Fine grained ACL support for the API
2263 - Extensible migration APIs
2264 - various improvements in the Xen driver
2265 - agent based vCPU hotplug support
2266 - various bug fixes and improvements including localizations
2268 * Fri Jun 14 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.6-3
2269 - Enable KVM support on ARM
2271 * Sat Jun 08 2013 Cole Robinson <crobinso@redhat.com> - 1.0.6-2
2272 - Drop bogus dep on vbox
2274 * Mon Jun 3 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.6-1
2275 - Update to 1.0.6 release
2277 * Sun May 19 2013 Cole Robinson <crobinso@redhat.com> - 1.0.5.1-1
2278 - Rebased to version 1.0.5.1
2279 - Follow updated packaging guidelines for user alloc (bz #924501)
2280 - CVE-2013-1962 Open files DoS (bz #963789, bz #953107)
2282 * Tue May 14 2013 Cole Robinson <crobinso@redhat.com> - 1.0.5-3
2283 - Fix stream operations like screenshot (bz #960879)
2285 * Fri May 3 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-2
2286 - Fix network driver when using qemu:///session (bz #958907).
2288 * Thu May 2 2013 Daniel Veillard <veillard@redhat.com> - 1.0.5-1
2289 - Update to 1.0.5 release
2290 - add support for NVRAM device
2291 - Add XML config for resource partitions
2292 - Add support for TPM
2293 - NPIV storage migration support
2294 - various bug fixes and improvements including localizations
2296 * Mon Apr 1 2013 Daniel Veillard <veillard@redhat.com> - 1.0.4-1
2297 - Update to 1.0.4 release
2299 * Tue Mar 5 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.3-1
2300 - Update to 1.0.3 release
2302 * Thu Feb 28 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-4
2303 - Backport "qemu: check backing chains even when cgroup is omitted"
2305 - Disable virnettlscontexttest which apparently fails because of
2306 a broken gnutls3. Note since this patch touches Makefile.am, I
2307 have enabled autoreconf (enable_autotools).
2309 * Tue Feb 5 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.2-2
2310 - Fix missing python binding constants
2312 * Fri Feb 1 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.2-1
2313 - Update to 1.0.2 release
2315 * Tue Jan 29 2013 Cole Robinson <crobinso@redhat.com> - 1.0.1-6
2316 - Fix network persistence after define (bz #890492)
2318 * Mon Jan 28 2013 Cole Robinson <crobinso@redhat.com> - 1.0.1-5
2319 - CVE-2013-0170 libvirt: use-after-free in virNetMessageFree() (bz #893450, bz
2322 * Sun Jan 20 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-4
2323 - Rebuild for libnl soname breakage (RHBZ#901569).
2325 * Fri Jan 18 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.1-3
2326 - Rebuild for libnl3 soname change
2327 - Deal with broken kernel headers
2329 * Mon Dec 17 2012 Cole Robinson <crobinso@redhat.com> - 1.0.1-2
2330 - Fix scriplet warning when uninstalling libvirt-client (bz #888071)
2332 * Mon Dec 17 2012 Daniel Veillard <veillard@redhat.com> - 1.0.1-1
2333 - Update to 1.0.1 release
2335 * Thu Nov 8 2012 Daniel P. Berrange <berrange@redhat.com> - 1.0.0-1
2336 - Update to 1.0.0 release
2338 * Tue Oct 30 2012 Cole Robinson <crobinso@redhat.com> - 0.10.2.1-2
2339 - Disable libxl on F18 too
2341 * Sat Oct 27 2012 Cole Robinson <crobinso@redhat.com> - 0.10.2.1-1
2342 - Rebased to version 0.10.2.1
2343 - Fix lvm volume creation when alloc=0 (bz #866481)
2344 - Clarify virsh send-keys man page example (bz #860004)
2345 - Fix occasional deadlock via virDomainDestroy (bz #859009)
2346 - Fix LXC deadlock from ctrl-c (bz #848119)
2347 - Fix occasional selinux denials with macvtap (bz #798605)
2348 - Fix multilib conflict with systemtap files (bz #831425)
2349 - Don't trigger keytab warning in system logs (bz #745203)
2350 - Fix qemu domxml-2-native NIC model out (bz #636832)
2351 - Fix error message if not enough space for lvm vol (bz #609104)
2353 * Thu Oct 25 2012 Cole Robinson <crobinso@redhat.com> - 0.10.2-4
2354 - Disable libxl driver, since it doesn't build with xen 4.2 in rawhide
2356 * Mon Sep 24 2012 Richard W.M. Jones <rjones@redhat.com> - 0.10.2-3
2357 - Re-add Use-qemu-system-i386-as-binary-instead-of-qemu.patch
2358 NB: This patch is Fedora-specific and not upstream.
2359 - Add upstream patches: don't duplicate environment variables (RHBZ#859596).
2361 * Mon Sep 24 2012 Daniel Veillard <veillard@redhat.com> - 0.10.2-1
2362 - Upstream release 0.10.2
2363 - network: define new API virNetworkUpdate
2364 - add support for QEmu sandbox support
2365 - blockjob: add virDomainBlockCommit
2366 - New APIs to get/set Node memory parameters
2367 - new API virConnectListAllSecrets
2368 - new API virConnectListAllNWFilters
2369 - new API virConnectListAllNodeDevices
2370 - parallels: add support of containers to the driver
2371 - new API virConnectListAllInterfaces
2372 - new API virConnectListAllNetworks
2373 - new API virStoragePoolListAllVolumes
2374 - Add PMSUSPENDED life cycle event
2375 - new API virStorageListAllStoragePools
2376 - Add per-guest S3/S4 state configuration
2377 - qemu: Support for Block Device IO Limits
2378 - a lot of bug fixes, improvements and portability work
2380 * Fri Sep 21 2012 Richard W.M. Jones <rjones@redhat.com> - 0.10.1-5
2381 - Add (upstream) patches to label sockets for SELinux (RHBZ#853393).
2383 * Thu Sep 13 2012 Richard W.M. Jones <rjones@redhat.com> - 0.10.1-4
2384 - Fix for 32 bit qemu renamed to qemu-system-i386 (RHBZ#857026).
2386 * Wed Sep 12 2012 Cole Robinson <crobinso@redhat.com> - 0.10.1-3
2387 - Fix libvirtd segfault with old netcf-libs (bz 853381)
2388 - Drop unneeded dnsmasq --filterwin2k
2389 - Fix unwanted connection closing, needed for boxes
2391 * Wed Sep 5 2012 Daniel P. Berrange <berrange@redhat.com> - 0.10.1-2
2392 - Remove dep on ceph RPM (rhbz #854360)
2394 * Fri Aug 31 2012 Daniel Veillard <veillard@redhat.com> - 0.10.1-1
2395 - upstream release of 0.10.1
2396 - many fixes from 0.10.0
2398 * Wed Aug 29 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-1
2399 - upstream release of 0.10.0
2400 - agent: add qemuAgentArbitraryCommand() for general qemu agent command
2401 - Introduce virDomainPinEmulator and virDomainGetEmulatorPinInfo functions
2402 - network: use firewalld instead of iptables, when available
2403 - network: make network driver vlan-aware
2404 - esx: Implement network driver
2405 - driver for parallels hypervisor
2406 - Various LXC improvements
2407 - Add virDomainGetHostname
2408 - a lot of bug fixes, improvements and portability work
2410 * Thu Aug 23 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-0rc1
2411 - release candidate 1 of 0.10.0
2413 * Tue Aug 14 2012 Daniel P. Berrange <berrange@redhat.com> - 0.10.0-0rc0.2
2414 - Enable autotools to make previous patch work
2416 * Tue Aug 14 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-0rc0.1
2417 - fix security driver missing from the daemon
2419 * Wed Aug 8 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-0rc0
2420 - snapshot before 0.10.0 in a few weeks
2421 - adds the parallel driver support
2423 * Mon Jul 23 2012 Richard W.M. Jones <rjones@redhat.com> - 0.9.13-3
2424 - Add upstream patch to fix RHBZ#842114.
2426 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
2427 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2429 * Mon Jul 2 2012 Daniel Veillard <veillard@redhat.com> - 0.9.13-1
2430 - S390: support for s390(x)
2431 - snapshot: implement new APIs for esx and vbox
2432 - snapshot: new query APIs and many improvements
2433 - virsh: Allow users to reedit rejected XML
2434 - nwfilter: add DHCP snooping
2435 - Enable driver modules in libvirt RPM
2436 - Default to enable driver modules for libvirtd
2437 - storage backend: Add RBD (RADOS Block Device) support
2438 - sVirt support for LXC domains inprovement
2439 - a lot of bug fixes, improvements and portability work
2441 * Mon May 14 2012 Daniel Veillard <veillard@redhat.com> - 0.9.12-1
2442 - qemu: allow snapshotting of sheepdog and rbd disks
2443 - blockjob: add new APIs
2444 - a lot of bug fixes, improvements and portability work
2446 * Thu Apr 26 2012 Cole Robinson <crobinso@redhat.com> - 0.9.11.3-1
2447 - Rebased to version 0.9.11.3
2448 - Abide URI username when connecting to hypervisor (bz 811397)
2449 - Fix managed USB mode (bz 814866)
2450 - Fix crash connecting to ESX host (bz 811891)
2452 * Wed Apr 4 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.11-1
2453 - Update to 0.9.11 release
2455 * Tue Apr 3 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-4
2456 - Revert previous change
2458 * Sat Mar 31 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-3
2459 - Refactor RPM spec to allow install without default configs
2461 * Thu Mar 15 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-2
2462 - Rebuild for libparted soname break
2464 * Mon Feb 13 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-1
2467 * Thu Jan 12 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.9-2
2468 - Fix LXC I/O handling
2470 * Sat Jan 7 2012 Daniel Veillard <veillard@redhat.com> - 0.9.9-1
2471 - Add API virDomain{S,G}etInterfaceParameters
2472 - Add API virDomain{G, S}etNumaParameters
2473 - Add support for ppc64 qemu
2474 - Support Xen domctl v8
2475 - many improvements and bug fixes
2477 * Thu Dec 8 2011 Daniel P. Berrange <berrange@redhat.com> - 0.9.8-2
2478 - Fix install of libvirt-guests.service & libvirtd.service
2480 * Thu Dec 8 2011 Daniel Veillard <veillard@redhat.com> - 0.9.8-1
2481 - Add support for QEMU 1.0
2482 - Add preliminary PPC cpu driver
2483 - Add new API virDomain{Set, Get}BlockIoTune
2484 - block_resize: Define the new API
2485 - Add a public API to invoke suspend/resume on the host
2486 - various improvements for LXC containers
2487 - Define keepalive protocol and add virConnectIsAlive API
2488 - Add support for STP and VLAN filtering
2489 - many improvements and bug fixes
2491 * Mon Nov 14 2011 Justin M. Forbes <jforbes@redhat.com> - 0.9.7-3
2492 - Remove versioned buildreq for yajl as 2.0.x features are not required.
2494 * Thu Nov 10 2011 Daniel P. Berrange <berrange@redhat.com> - 0.9.7-2
2495 - Rebuild for yajl 2.0.1
2497 * Tue Nov 8 2011 Daniel P. Berrange <berrange@redhat.com> - 0.9.7-1
2498 - Update to 0.9.7 release
2500 * Tue Oct 11 2011 Dan Horák <dan[at]danny.cz> - 0.9.6-3
2501 - xenlight available only on Xen arches (#745020)
2503 * Mon Oct 3 2011 Laine Stump <laine@redhat.com> - 0.9.6-2
2504 - Make PCI multifunction support more manual - Bug 742836
2505 - F15 build still uses cgconfig - Bug 738725
2507 * Thu Sep 22 2011 Daniel Veillard <veillard@redhat.com> - 0.9.6-1
2508 - Fix the qemu reboot bug and a few others bug fixes
2510 * Tue Sep 20 2011 Daniel Veillard <veillard@redhat.com> - 0.9.5-1
2511 - many snapshot improvements (Eric Blake)
2512 - latency: Define new public API and structure (Osier Yang)
2513 - USB2 and various USB improvements (Marc-André Lureau)
2514 - storage: Add fs pool formatting (Osier Yang)
2515 - Add public API for getting migration speed (Jim Fehlig)
2516 - Add basic driver for Microsoft Hyper-V (Matthias Bolte)
2517 - many improvements and bug fixes
2519 * Wed Aug 3 2011 Daniel Veillard <veillard@redhat.com> - 0.9.4-1
2520 - network bandwidth QoS control
2521 - Add new API virDomainBlockPull*
2522 - save: new API to manipulate save file images
2523 - CPU bandwidth limits support
2524 - allow to send NMI and key event to guests
2525 - new API virDomainUndefineFlags
2526 - Implement code to attach to external QEMU instances
2527 - bios: Add support for SGA
2528 - various missing python binding
2529 - many improvements and bug fixes
2531 * Sat Jul 30 2011 Dan Hor?k <dan[at]danny.cz> - 0.9.3-3
2532 - xenlight available only on Xen arches
2534 * Wed Jul 6 2011 Peter Robinson <pbrobinson@gmail.com> - 0.9.3-2
2535 - Add ARM to NUMA platform excludes
2537 * Mon Jul 4 2011 Daniel Veillard <veillard@redhat.com> - 0.9.3-1
2538 - new API virDomainGetVcpupinInfo
2539 - Add TXT record support for virtual DNS service
2540 - Support reboots with the QEMU driver
2541 - New API virDomainGetControlInfo API
2542 - New API virNodeGetMemoryStats
2543 - New API virNodeGetCPUTime
2544 - New API for send-key
2545 - New API virDomainPinVcpuFlags
2546 - support multifunction PCI device
2547 - lxc: various improvements
2548 - many improvements and bug fixes
2550 * Wed Jun 29 2011 Richard W.M. Jones <rjones@redhat.com> - 0.9.2-3
2551 - Rebuild because of libparted soname bump (libparted.so.0 -> libparted.so.1).
2553 * Tue Jun 21 2011 Laine Stump <laine@redhat.com> - 0.9.2-2
2554 - add rule to require netcf-0.1.8 during build so that new transactional
2555 network change APIs are included.
2556 - document that CVE-2011-2178 has been fixed (by virtue of rebase
2557 to 0.9.2 - see https://bugzilla.redhat.com/show_bug.cgi?id=709777)
2559 * Mon Jun 6 2011 Daniel Veillard <veillard@redhat.com> - 0.9.2-1
2560 - Framework for lock manager plugins
2561 - API for network config change transactions
2562 - flags for setting memory parameters
2563 - virDomainGetState public API
2564 - qemu: allow blkstat/blkinfo calls during migration
2565 - Introduce migration v3 API
2566 - Defining the Screenshot public API
2567 - public API for NMI injection
2568 - Various improvements and bug fixes
2570 * Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - 0.9.1-3
2571 - Add upstream patches:
2572 0001-json-Avoid-passing-large-positive-64-bit-integers-to.patch
2573 0001-qemudDomainMemoryPeek-change-ownership-selinux-label.patch
2574 0002-remote-remove-bogus-virDomainFree.patch
2575 so that users can try out virt-dmesg.
2576 - Change /var/cache mode to 0711.
2578 * Thu May 5 2011 Daniel Veillard <veillard@redhat.com> - 0.9.1-1
2579 - support various persistent domain updates
2580 - improvements on memory APIs
2581 - Add virDomainEventRebootNew
2582 - various improvements to libxl driver
2583 - Spice: support audio, images and stream compression
2584 - Various improvements and bug fixes
2586 * Thu Apr 7 2011 Daniel Veillard <veillard@redhat.com> - 0.9.0-1
2587 - Support cputune cpu usage tuning
2588 - Add public APIs for storage volume upload/download
2589 - Add public API for setting migration speed on the fly
2590 - Add libxenlight driver
2591 - qemu: support migration to fd
2592 - libvirt: add virDomain{Get,Set}BlkioParameters
2593 - setmem: introduce a new libvirt API (virDomainSetMemoryFlags)
2594 - Expose event loop implementation as a public API
2595 - Dump the debug buffer to libvirtd.log on fatal signal
2597 - Various improvements and bug fixes
2599 * Mon Mar 14 2011 Daniel Veillard <veillard@redhat.com> - 0.8.8-3
2600 - fix a lack of API check on read-only connections
2603 * Mon Feb 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.8.8-2
2604 - Fix kernel boot with latest QEMU
2606 * Thu Feb 17 2011 Daniel Veillard <veillard@redhat.com> - 0.8.8-1
2607 - expose new API for sysinfo extraction
2608 - cgroup blkio weight support
2609 - smartcard device support
2610 - qemu: Support per-device boot ordering
2611 - Various improvements and bug fixes
2613 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.7-2
2614 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2616 * Thu Jan 6 2011 Daniel Veillard <veillard@redhat.com> - 0.8.7-1
2617 - Preliminary support for VirtualBox 4.0
2619 - Add VMware Workstation and Player driver driver
2620 - Add network disk support
2621 - Various improvements and bug fixes
2623 - Add support for iSCSI target auto-discovery
2624 - QED: Basic support for QED images
2625 - remote console support
2626 - support for SPICE graphics
2627 - sysinfo and VMBIOS support
2628 - virsh qemu-monitor-command
2629 - various improvements and bug fixes
2631 * Fri Oct 29 2010 Daniel Veillard <veillard@redhat.com> - 0.8.5-1
2632 - Enable JSON and netdev features in QEMU >= 0.13
2633 - framework for auditing integration
2634 - framework DTrace/SystemTap integration
2635 - Setting the number of vcpu at boot
2636 - Enable support for nested SVM
2637 - Virtio plan9fs filesystem QEMU
2638 - Memory parameter controls
2639 - various improvements and bug fixes
2641 * Wed Sep 29 2010 jkeating - 0.8.4-3
2642 - Rebuilt for gcc bug 634757
2644 * Thu Sep 16 2010 Dan Horák <dan[at]danny.cz> - 0.8.4-2
2645 - disable the nwfilterxml2xmltest also on s390(x)
2647 * Mon Sep 13 2010 Daniel Veillard <veillard@redhat.com> - 0.8.4-1
2648 - Upstream release 0.8.4
2650 * Mon Aug 23 2010 Daniel P. Berrange <berrange@redhat.com> - 0.8.3-2
2651 - Fix potential overflow in boot menu code
2653 * Mon Aug 23 2010 Daniel P. Berrange <berrange@redhat.com> - 0.8.3-1
2654 - Upstream release 0.8.3
2656 * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.8.2-3
2657 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2659 * Mon Jul 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.8.2-2
2660 - CVE-2010-2237 ignoring defined main disk format when looking up disk backing stores
2661 - CVE-2010-2238 ignoring defined disk backing store format when recursing into disk
2662 image backing stores
2663 - CVE-2010-2239 not setting user defined backing store format when creating new image
2664 - CVE-2010-2242 libvirt: improperly mapped source privileged ports may allow for
2665 obtaining privileged resources on the host
2667 * Mon Jul 5 2010 Daniel Veillard <veillard@redhat.com> - 0.8.2-1
2668 - Upstream release 0.8.2
2669 - phyp: adding support for IVM
2670 - libvirt: introduce domainCreateWithFlags API
2671 - add 802.1Qbh and 802.1Qbg switches handling
2672 - Support for VirtualBox version 3.2
2673 - Init script for handling guests on shutdown/boot
2674 - qemu: live migration with non-shared storage for kvm
2676 * Fri Apr 30 2010 Daniel Veillard <veillard@redhat.com> - 0.8.1-1
2677 - Upstream release 0.8.1
2678 - Starts dnsmasq from libvirtd with --dhcp-hostsfile
2679 - Add virDomainGetBlockInfo API to query disk sizing
2680 - a lot of bug fixes and cleanups
2682 * Mon Apr 12 2010 Daniel Veillard <veillard@redhat.com> - 0.8.0-1
2683 - Upstream release 0.8.0
2684 - Snapshotting support (QEmu/VBox/ESX)
2685 - Network filtering API
2687 - new APIs for domain events
2688 - Libvirt managed save API
2689 - timer subselection for domain clock
2691 - API to update guest CPU to host CPU
2692 - virDomainUpdateDeviceFlags new API
2693 - migrate max downtime API
2695 - and many bug fixes
2697 * Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 0.7.7-3.fc14
2698 - No change, just rebuild against new libparted with bumped soname.
2700 * Mon Mar 22 2010 Cole Robinson <crobinso@redhat.com> - 0.7.7-2.fc14
2701 - Fix USB devices by product with security enabled (bz 574136)
2702 - Set kernel/initrd in security driver, fixes some URL installs (bz 566425)
2704 * Fri Mar 5 2010 Daniel Veillard <veillard@redhat.com> - 0.7.7-1
2706 - async job handling
2708 - computing baseline CPU
2709 - virDomain{Attach,Detach}DeviceFlags
2710 - assorted bug fixes and lots of cleanups
2712 * Tue Feb 16 2010 Adam Jackson <ajax@redhat.com> 0.7.6-2
2713 - libvirt-0.7.6-add-needed.patch: Fix FTBFS from --no-add-needed
2714 - Add BuildRequires: xmlrpc-c-client for libxmlrpc_client.so
2716 * Wed Feb 3 2010 Daniel Veillard <veillard@redhat.com> - 0.7.6-1
2717 - upstream release of 0.7.6
2718 - Use QEmu new device adressing when possible
2719 - Implement CPU topology support for QEMU driver
2720 - Implement SCSI controller hotplug/unplug for QEMU
2721 - Implement support for multi IQN
2722 - a lot of fixes and improvements
2724 * Thu Jan 14 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.7.5-3
2725 - bump for libssh2 rebuild
2727 * Tue Jan 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.7.5-2
2728 - Rebuild for libparted soname change
2730 * Wed Dec 23 2009 Daniel Veillard <veillard@redhat.com> - 0.7.5-1
2731 - Add new API virDomainMemoryStats
2732 - Public API and domain extension for CPU flags
2733 - vbox: Add support for version 3.1
2734 - Support QEMU's virtual FAT block device driver
2737 * Fri Nov 20 2009 Daniel Veillard <veillard@redhat.com> - 0.7.4-1
2738 - upstream release of 0.7.4
2739 - udev node device backend
2740 - API to check object properties
2741 - better QEmu monitor processing
2742 - MAC address based port filtering for qemu
2743 - support IPv6 and multiple addresses per interfaces
2746 * Thu Nov 19 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-6
2747 - Really fix restore file labelling this time
2749 * Wed Nov 11 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-5
2750 - Disable numactl on s390[x]. Again.
2752 * Wed Nov 11 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-4
2753 - Fix QEMU save/restore permissions / labelling
2755 * Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.2-3
2756 - Avoid compressing small log files (#531030)
2758 * Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.2-2
2759 - Make libvirt-devel require libvirt-client, not libvirt
2760 - Fix qemu machine types handling
2762 * Wed Oct 14 2009 Daniel Veillard <veillard@redhat.com> - 0.7.2-1
2763 - Upstream release of 0.7.2
2764 - Allow to define ESX domains
2765 - Allows suspend and resulme of LXC domains
2766 - API for data streams
2769 * Tue Oct 13 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-12
2770 - Fix restore of qemu guest using raw save format (#523158)
2772 * Fri Oct 9 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-11
2773 - Fix libvirtd memory leak during error reply sending (#528162)
2774 - Add several PCI hot-unplug typo fixes from upstream
2776 * Tue Oct 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-10
2777 - Create /var/log/libvirt/{lxc,uml} dirs for logrotate
2778 - Make libvirt-python dependon on libvirt-client
2779 - Sync misc minor changes from upstream spec
2781 * Tue Oct 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-9
2782 - Change logrotate config to weekly (#526769)
2784 * Thu Oct 1 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-8
2785 - Disable sound backend, even when selinux is disabled (#524499)
2786 - Re-label qcow2 backing files (#497131)
2788 * Wed Sep 30 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-7
2789 - Fix USB device passthrough (#522683)
2791 * Mon Sep 21 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.7.1-6
2792 - rebuild for libssh2 1.2
2794 * Mon Sep 21 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-5
2795 - Don't set a bogus error in virDrvSupportsFeature()
2796 - Fix raw save format
2798 * Thu Sep 17 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-4
2799 - A couple of hot-unplug memory handling fixes (#523953)
2801 * Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-3
2802 - disable numactl on s390[x]
2804 * Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-2
2805 - revamp of spec file for modularity and RHELs
2807 * Tue Sep 15 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-1
2808 - Upstream release of 0.7.1
2809 - ESX, VBox driver updates
2811 - support for encrypted (qcow) volume
2812 - compressed save image format for Qemu/KVM
2813 - QEmu host PCI device hotplug support
2814 - configuration of huge pages in guests
2817 * Mon Sep 14 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-0.2.gitfac3f4c
2818 - Update to newer snapshot of 0.7.1
2819 - Stop libvirt using untrusted 'info vcpus' PID data (#520864)
2820 - Support relabelling of USB and PCI devices
2821 - Enable multipath storage support
2822 - Restart libvirtd upon RPM upgrade
2824 * Sun Sep 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-0.1.gitg3ef2e05
2825 - Update to pre-release git snapshot of 0.7.1
2826 - Drop upstreamed patches
2828 * Wed Aug 19 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-6
2829 - Fix migration completion with newer versions of qemu (#516187)
2831 * Wed Aug 19 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-5
2832 - Add PCI host device hotplug support
2833 - Allow PCI bus reset to reset other devices (#499678)
2834 - Fix stupid PCI reset error message (bug #499678)
2835 - Allow PM reset on multi-function PCI devices (bug #515689)
2836 - Re-attach PCI host devices after guest shuts down (bug #499561)
2837 - Fix list corruption after disk hot-unplug
2838 - Fix minor 'virsh nodedev-list --tree' annoyance
2840 * Thu Aug 13 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.0-4
2841 - Rewrite policykit support (rhbz #499970)
2842 - Log and ignore NUMA topology problems (rhbz #506590)
2844 * Mon Aug 10 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-3
2845 - Don't fail to start network if ipv6 modules is not loaded (#516497)
2847 * Thu Aug 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-2
2848 - Make sure qemu can access kernel/initrd (bug #516034)
2849 - Set perms on /var/lib/libvirt/boot to 0711 (bug #516034)
2851 * Wed Aug 5 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-1
2852 - ESX, VBox3, Power Hypervisor drivers
2853 - new net filesystem glusterfs
2854 - Storage cloning for LVM and Disk backends
2855 - interface implementation based on netcf
2856 - Support cgroups in QEMU driver
2857 - QEmu hotplug NIC support
2860 * Fri Jul 3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.5-1
2863 * Fri May 29 2009 Daniel Veillard <veillard@redhat.com> - 0.6.4-1
2867 * Fri Apr 24 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-1
2871 * Fri Apr 3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.2-1
2874 * Wed Mar 4 2009 Daniel Veillard <veillard@redhat.com> - 0.6.1-1
2877 * Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1
2880 * Tue Nov 25 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1
2883 * Tue Sep 23 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-1
2886 * Mon Sep 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-1
2889 * Wed Jun 25 2008 Daniel Veillard <veillard@redhat.com> - 0.4.4-1
2891 - mostly a few bug fixes from 0.4.3
2893 * Thu Jun 12 2008 Daniel Veillard <veillard@redhat.com> - 0.4.3-1
2895 - lots of bug fixes and small improvements
2897 * Tue Apr 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.2-1
2899 - lots of bug fixes and small improvements
2901 * Mon Mar 3 2008 Daniel Veillard <veillard@redhat.com> - 0.4.1-1
2905 - lots of assorted improvements, bugfixes and cleanups
2906 - documentation and localization improvements
2908 * Tue Dec 18 2007 Daniel Veillard <veillard@redhat.com> - 0.4.0-1
2910 - SASL based authentication
2911 - PolicyKit authentication
2912 - improved NUMA and statistics support
2913 - lots of assorted improvements, bugfixes and cleanups
2914 - documentation and localization improvements
2916 * Sun Sep 30 2007 Daniel Veillard <veillard@redhat.com> - 0.3.3-1
2920 - lots of assorted improvements, bugfixes and cleanups
2921 - documentation and localization improvements
2923 * Tue Aug 21 2007 Daniel Veillard <veillard@redhat.com> - 0.3.2-1
2925 - API for domains migration
2926 - APIs for collecting statistics on disks and interfaces
2927 - lots of assorted bugfixes and cleanups
2928 - documentation and localization improvements
2930 * Tue Jul 24 2007 Daniel Veillard <veillard@redhat.com> - 0.3.1-1
2932 - localtime clock support
2933 - PS/2 and USB input devices
2934 - lots of assorted bugfixes and cleanups
2935 - documentation and localization improvements
2937 * Mon Jul 9 2007 Daniel Veillard <veillard@redhat.com> - 0.3.0-1
2939 - Secure remote access support
2940 - unification of daemons
2941 - lots of assorted bugfixes and cleanups
2942 - documentation and localization improvements
2944 * Fri Jun 8 2007 Daniel Veillard <veillard@redhat.com> - 0.2.3-1
2946 - lot of assorted bugfixes and cleanups
2947 - support for Xen-3.1
2950 * Tue Apr 17 2007 Daniel Veillard <veillard@redhat.com> - 0.2.2-1
2952 - lot of assorted bugfixes and cleanups
2953 - preparing for Xen-3.0.5
2955 * Thu Mar 22 2007 Jeremy Katz <katzj@redhat.com> - 0.2.1-2.fc7
2956 - don't require xen; we don't need the daemon and can control non-xen now
2957 - fix scriptlet error (need to own more directories)
2958 - update description text
2960 * Fri Mar 16 2007 Daniel Veillard <veillard@redhat.com> - 0.2.1-1
2962 - lot of bug and portability fixes
2963 - Add support for network autostart and init scripts
2964 - New API to detect the virtualization capabilities of a host
2965 - Documentation updates
2967 * Fri Feb 23 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-4.fc7
2968 - Fix loading of guest & network configs
2970 * Fri Feb 16 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-3.fc7
2971 - Disable kqemu support since its not in Fedora qemu binary
2972 - Fix for -vnc arg syntax change in 0.9.0 QEMU
2974 * Thu Feb 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-2.fc7
2975 - Fixed path to qemu daemon for autostart
2976 - Fixed generation of <features> block in XML
2977 - Pre-create config directory at startup
2979 * Wed Feb 14 2007 Daniel Veillard <veillard@redhat.com> 0.2.0-1.fc7
2980 - support for KVM and QEmu
2981 - support for network configuration
2984 * Mon Jan 22 2007 Daniel Veillard <veillard@redhat.com> 0.1.11-1.fc7
2985 - finish inactive Xen domains support
2987 - RelaxNG schemas for XML configs
2989 * Wed Dec 20 2006 Daniel Veillard <veillard@redhat.com> 0.1.10-1.fc7
2990 - support for inactive Xen domains
2991 - improved support for Xen display and vnc
2993 - localization updates
2995 * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.9-2
2996 - rebuild against python 2.5
2998 * Wed Nov 29 2006 Daniel Veillard <veillard@redhat.com> 0.1.9-1
2999 - better error reporting
3000 - python bindings fixes and extensions
3001 - add support for shareable drives
3002 - add support for non-bridge style networking
3003 - hot plug device support
3004 - added support for inactive domains
3005 - API to dump core of domains
3006 - various bug fixes, cleanups and improvements
3007 - updated the localization
3009 * Tue Nov 7 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-3
3010 - it's pkgconfig not pgkconfig !
3012 * Mon Nov 6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
3013 - fixing spec file, added %dist, -devel requires pkgconfig and xen-devel
3014 - Resolves: rhbz#202320
3016 * Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
3017 - fix missing page size detection code for ia64
3018 - fix mlock size when getting domain info list from hypervisor
3019 - vcpu number initialization
3020 - don't label crashed domains as shut off
3021 - fix virsh man page
3022 - blktapdd support for alternate drivers like blktap
3023 - memory leak fixes (xend interface and XML parsing)
3025 - mlock/munlock size fixes
3027 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.7-1
3028 - Fix bug when running against xen-3.0.3 hypercalls
3029 - Fix memory bug when getting vcpus info from xend
3031 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.6-1
3032 - Support for localization
3033 - Support for new Xen-3.0.3 cdrom and disk configuration
3034 - Support for setting VNC port
3035 - Fix bug when running against xen-3.0.2 hypercalls
3036 - Fix reconnection problem when talking directly to http xend
3038 * Tue Sep 5 2006 Jeremy Katz <katzj@redhat.com> - 0.1.5-3
3039 - patch from danpb to support new-format cd devices for HVM guests
3041 * Tue Sep 5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-2
3042 - reactivating ia64 support
3044 * Tue Sep 5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-1
3047 - support for new hypervisor calls
3048 - early code for config files and defined domains
3050 * Mon Sep 4 2006 Daniel Berrange <berrange@redhat.com> - 0.1.4-5
3051 - add patch to address dom0_ops API breakage in Xen 3.0.3 tree
3053 * Mon Aug 28 2006 Jeremy Katz <katzj@redhat.com> - 0.1.4-4
3054 - add patch to support paravirt framebuffer in Xen
3056 * Mon Aug 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-3
3057 - another patch to fix network handling in non-HVM guests
3059 * Thu Aug 17 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-2
3060 - patch to fix virParseUUID()
3062 * Wed Aug 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-1
3063 - vCPUs and affinity support
3064 - more complete XML, console and boot options
3065 - specific features support
3066 - enforced read-only connections
3067 - various improvements, bug fixes
3069 * Wed Aug 2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-6
3070 - add patch from pvetere to allow getting uuid from libvirt
3072 * Wed Aug 2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-5
3075 * Thu Jul 27 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-4
3076 - don't BR xen, we just need xen-devel
3078 * Thu Jul 27 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-3
3079 - need rebuild since libxenstore is now versionned
3081 * Mon Jul 24 2006 Mark McLoughlin <markmc@redhat.com> - 0.1.3-2
3082 - Add BuildRequires: xen-devel
3084 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1.3-1.1
3087 * Tue Jul 11 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-1
3088 - support for HVM Xen guests
3091 * Mon Jul 3 2006 Daniel Veillard <veillard@redhat.com> 0.1.2-1
3092 - added a proxy mechanism for read only access using httpu
3093 - fixed header includes paths
3095 * Wed Jun 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.1-1
3096 - extend and cleanup the driver infrastructure and code
3098 - extend uuid support
3099 - bug fixes, buffer handling cleanups
3100 - support for new Xen hypervisor API
3101 - test driver for unit testing
3102 - virsh --conect argument
3104 * Mon Apr 10 2006 Daniel Veillard <veillard@redhat.com> 0.1.0-1
3106 - new APIs: for Node information and Reboot
3107 - virsh improvements and extensions
3108 - documentation updates and man page
3109 - enhancement and fixes of the XML description format
3111 * Tue Feb 28 2006 Daniel Veillard <veillard@redhat.com> 0.0.6-1
3112 - added error handling APIs
3114 - improve python bindings
3115 - augment documentation and regression tests
3117 * Thu Feb 23 2006 Daniel Veillard <veillard@redhat.com> 0.0.5-1
3118 - new domain creation API
3119 - new UUID based APIs
3120 - more tests, documentation, devhelp
3123 * Fri Feb 10 2006 Daniel Veillard <veillard@redhat.com> 0.0.4-1
3124 - fixes some problems in 0.0.3 due to the change of names
3126 * Wed Feb 8 2006 Daniel Veillard <veillard@redhat.com> 0.0.3-1
3127 - changed library name to libvirt from libvir, complete and test the python
3130 * Sun Jan 29 2006 Daniel Veillard <veillard@redhat.com> 0.0.2-1
3131 - upstream release of 0.0.2, use xend, save and restore added, python bindings
3134 * Wed Nov 2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1