kayobe-config-dev/etc/kayobe/kolla/config/nova/nova-compute.conf
Bartosz Bezak 12cbf39eed Use custom cpu_models on Redhat family only
Change-Id: Ibe02bf3430bad3606e291273c8a1feb148b83711
2023-02-21 15:32:10 +01:00

12 lines
406 B
Plaintext

{% raw %}
{% if ansible_facts.os_family == 'RedHat' and nova_compute_virt_type == 'kvm' %}
[libvirt]
# RHEL 9 are being compiled for the x86_64-v2
# architecture which is newer than the qemu default of qemu64.
# Nehalem is apparently the oldest model that works for x86_64-v2
# and is expected to work on Intel and AMD cpus with kvm or qemu.
cpu_mode = custom
cpu_models = Nehalem
{% endif %}
{% endraw %}