aboutsummaryrefslogtreecommitdiff
path: root/docker/nova/nova-libvirt/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nova/nova-libvirt/Dockerfile.j2')
-rw-r--r--docker/nova/nova-libvirt/Dockerfile.j230
1 files changed, 8 insertions, 22 deletions
diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2
index c9a806a14..953a0e43d 100644
--- a/docker/nova/nova-libvirt/Dockerfile.j2
+++ b/docker/nova/nova-libvirt/Dockerfile.j2
@@ -22,23 +22,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'libvirt-daemon-config-nwfilter',
'libvirt-daemon-driver-nwfilter',
'openvswitch',
+ 'qemu-kvm',
'trousers'
] %}
- {% if distro_package_manager == 'dnf' or base_distro not in ['centos'] %}
- {% set nova_libvirt_packages = nova_libvirt_packages + [
- 'qemu-kvm'
- ] %}
- {% else %}
- {% set nova_libvirt_packages = nova_libvirt_packages + [
- 'qemu-kvm-ev'
- ] %}
- {% endif %}
- {% if distro_package_manager != 'dnf' %}
- {% set nova_libvirt_packages = nova_libvirt_packages + [
- 'libvirt-daemon-driver-lxc',
- ] %}
- {% endif %}
-
{% if base_arch == 'x86_64' %}
{% if base_distro_tag.startswith('7') %}
{% set nova_libvirt_packages = nova_libvirt_packages + [
@@ -77,6 +63,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'qemu-system',
'trousers'
] %}
+{% elif base_package_type == 'rpm' %}
+
+ {% if base_arch == 'x86_64' and base_distro_tag.startswith('7') %}
+# NOTE(jeffrey4l): for x86_64, nova will validate the existence of /usr/share/OVMF/OVMF_CODE.fd
+RUN ln -sf /usr/share/OVMF/OVMF_CODE.secboot.fd /usr/share/OVMF/OVMF_CODE.fd
+ {% endif %}
+
{% if base_arch == "aarch64" %}
{% set nova_libvirt_packages = nova_libvirt_packages + [
@@ -109,13 +102,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
RUN rm -f /etc/libvirt/qemu/networks/default.xml /etc/libvirt/qemu/networks/autostart/default.xml
-{% elif base_package_type == 'rpm' %}
-
- {% if base_arch == 'x86_64' and base_distro_tag.startswith('7') %}
-# NOTE(jeffrey4l): for x86_64, nova will validate the existence of /usr/share/OVMF/OVMF_CODE.fd
-RUN ln -sf /usr/share/OVMF/OVMF_CODE.secboot.fd /usr/share/OVMF/OVMF_CODE.fd
- {% endif %}
-
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start