Fix install_libvirt for other RHEL-based distros
Since https://review.openstack.org/#/c/438325 landed it only works for Centos 7, but not for other RHEL-based distributions: Virtuozzo and, probably, RHEV. Both of above have own version for qemu-kvm package: qemu-kvm-vz and qemu-kvm-rhev, accordingly. These packages provide "qemu-kvm", like qemu-kvm-ev, and, when you call "yum install qemu-kvm", they replace the default OS package. Change-Id: I46da627c0da8925064862fdc283db81591979285
This commit is contained in:
parent
23d03b697f
commit
008aa3e095
@ -39,13 +39,11 @@ function install_libvirt {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${DISTRO} =~ "rhel7" ]]; then
|
if [[ ${DISTRO} =~ "rhel7" ]]; then
|
||||||
# On centos7 install the qemu-kvm-ev package, which is a
|
# This should install the latest qemu-kvm build,
|
||||||
# later version of qemu-kvm rebuilt from the qemu-kvm-rhev
|
# which is called qemu-kvm-ev in centos7
|
||||||
# package by the virt SIG (as required by nova). This
|
# (as the default OS qemu-kvm package is usually rather old,
|
||||||
# package is only provided for RHOS (openstack) or RHV
|
# and should be updated by above)
|
||||||
# (ovirt) in RHEL. We have already insalled the RDO
|
install_package qemu-kvm
|
||||||
# repositories which provide this.
|
|
||||||
install_package qemu-kvm-ev
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install_package libvirt libvirt-devel
|
install_package libvirt libvirt-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user