From 8c1e4e90523ba800f1f959b188a0cd67bd0e1eff Mon Sep 17 00:00:00 2001 From: Zhangfei Gao Date: Wed, 9 Aug 2017 14:13:09 +0800 Subject: nova-libvirt: add package qemu-efi to support uefi image On arm64, uefi image is usually used via --property hw_firmware_type=uefi In order to support this, qemu-efi has to be installed Ohterwise error reports: Terminating instance: libvirtError: Failed to open file '/usr/share/AAVMF/AAVMF_VARS.fd': No such file or directory Change-Id: Ibc1b39e821e84fb9739833be04bdb41db59d2ff5 Signed-off-by: Kevin Zhao Signed-off-by: Zhangfei Gao --- docker/nova/nova-libvirt/Dockerfile.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docker') diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2 index 67070e62a..d3d7a2d20 100644 --- a/docker/nova/nova-libvirt/Dockerfile.j2 +++ b/docker/nova/nova-libvirt/Dockerfile.j2 @@ -39,6 +39,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build ] %} {% endif %} + {% if base_arch == "aarch64" %} + {% set nova_libvirt_packages = nova_libvirt_packages + [ + 'qemu-efi' + ] %} + {% endif %} + {% elif base_distro in ['debian'] %} {% set nova_libvirt_packages = [ @@ -60,6 +66,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build ] %} {% endif %} + {% if base_arch == "aarch64" %} + {% set nova_libvirt_packages = nova_libvirt_packages + [ + 'qemu-efi' + ] %} + {% endif %} + {% endif %} {{ macros.install_packages(nova_libvirt_packages | customizable("packages")) }} -- cgit v1.2.3