@@ -34,18 +34,23 @@ function install_libvirt {
3434 # pip_install_gr <there-si-no-guestfs-in-pypi>
3535 elif is_fedora || is_suse; then
3636 # On "KVM for IBM z Systems", kvm does not have its own package
37- if [[ ! ${DISTRO} =~ " kvmibm1" ]]; then
37+ if [[ ! ${DISTRO} =~ " kvmibm1" && ! ${DISTRO} =~ " rhel7 " ]]; then
3838 install_package kvm
3939 fi
40- # there is a dependency issue with kvm (which is really just a
41- # wrapper to qemu-system-x86) that leaves some bios files out,
42- # so install qemu-kvm (which shouldn't strictly be needed, as
43- # everything has been merged into qemu-system-x86) to bring in
44- # the right packages. see
45- # https://bugzilla.redhat.com/show_bug.cgi?id=1235890
46- install_package qemu-kvm
40+
41+ if [[ ${DISTRO} =~ " rhel7" ]]; then
42+ # On centos7 install the qemu-kvm-ev package, which is a
43+ # later version of qemu-kvm rebuilt from the qemu-kvm-rhev
44+ # package by the virt SIG (as required by nova). This
45+ # package is only provided for RHOS (openstack) or RHV
46+ # (ovirt) in RHEL. We have already insalled the RDO
47+ # repositories which provide this.
48+ install_package qemu-kvm-ev
49+ fi
50+
4751 install_package libvirt libvirt-devel
4852 pip_install_gr libvirt-python
53+
4954 fi
5055}
5156
0 commit comments