Update qemu package name for Ubuntu aarch64
The qemu-system package, and not qemu-kvm, should be installed on either trusty- or utopic-based ARMv8 (aarch64) Ubuntu releases. Additionally, libguestfs is not available so that is not installed. No changes are required for vivid. Change-Id: Id9dc1fc465bd7acab17c991c292fb531016758ad Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
This commit is contained in:
8
lib/nova_plugins/functions-libvirt
Normal file → Executable file
8
lib/nova_plugins/functions-libvirt
Normal file → Executable file
@@ -23,11 +23,15 @@ DEBUG_LIBVIRT=$(trueorfalse True DEBUG_LIBVIRT)
|
|||||||
# Installs required distro-specific libvirt packages.
|
# Installs required distro-specific libvirt packages.
|
||||||
function install_libvirt {
|
function install_libvirt {
|
||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
|
if is_arch "aarch64" && [[ ${DISTRO} =~ (trusty|utopic) ]]; then
|
||||||
|
install_package qemu-system
|
||||||
|
else
|
||||||
install_package qemu-kvm
|
install_package qemu-kvm
|
||||||
install_package libvirt-bin libvirt-dev
|
|
||||||
pip_install libvirt-python
|
|
||||||
install_package libguestfs0
|
install_package libguestfs0
|
||||||
install_package python-guestfs
|
install_package python-guestfs
|
||||||
|
fi
|
||||||
|
install_package libvirt-bin libvirt-dev
|
||||||
|
pip_install libvirt-python
|
||||||
#pip_install <there-si-no-guestfs-in-pypi>
|
#pip_install <there-si-no-guestfs-in-pypi>
|
||||||
elif is_fedora || is_suse; then
|
elif is_fedora || is_suse; then
|
||||||
install_package kvm
|
install_package kvm
|
||||||
|
|||||||
Reference in New Issue
Block a user