diff --git a/docker/nova/nova-compute/Dockerfile.j2 b/docker/nova/nova-compute/Dockerfile.j2 index 200e2c100d..9b2bd3792f 100644 --- a/docker/nova/nova-compute/Dockerfile.j2 +++ b/docker/nova/nova-compute/Dockerfile.j2 @@ -21,7 +21,8 @@ RUN apt-get install -y --no-install-recommends \ ceph-common \ ironic-common \ python-ironicclient \ - && apt-get clean + && apt-get clean \ + && rm -f /etc/nova/nova-compute.conf {% endif %} {% elif install_type == 'source' %} diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2 index 19f6053ce1..fc54c3ed84 100644 --- a/docker/nova/nova-libvirt/Dockerfile.j2 +++ b/docker/nova/nova-libvirt/Dockerfile.j2 @@ -23,6 +23,7 @@ RUN apt-get install -y --no-install-recommends \ qemu \ qemu-block-extra \ ebtables \ + xen-utils \ && apt-get clean \ && mkdir -p /etc/ceph \ && rm /etc/libvirt/qemu/networks/default.xml /etc/libvirt/qemu/networks/autostart/default.xml diff --git a/docker/nova/nova-libvirt/extend_start.sh b/docker/nova/nova-libvirt/extend_start.sh index 3b8084ca8c..2b6f481a0b 100644 --- a/docker/nova/nova-libvirt/extend_start.sh +++ b/docker/nova/nova-libvirt/extend_start.sh @@ -8,6 +8,11 @@ if [[ -c /dev/kvm ]]; then chown root:kvm /dev/kvm fi +# Mount xenfs for libxl to work +if [[ $(lsmod | grep xenfs) ]]; then + mount -t xenfs xenfs /proc/xen +fi + if [[ ! -d "/var/log/kolla/nova" ]]; then mkdir -p /var/log/kolla/nova fi