Use custom cpu_models on Redhat family only

Change-Id: Ibe02bf3430bad3606e291273c8a1feb148b83711
This commit is contained in:
Bartosz Bezak 2023-02-21 15:22:04 +01:00
parent 416da1f522
commit 12cbf39eed

View File

@ -1,11 +1,11 @@
{% raw %}
{% if ansible_facts.os_family == 'RedHat' and nova_compute_virt_type == 'kvm' %}
[libvirt]
# RHEL 9 and Ubuntu Jammy are being compiled for the x86_64-v2
# 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.
{% if nova_compute_virt_type == 'kvm' %}
cpu_mode=custom
cpu_model=Nehalem
cpu_mode = custom
cpu_models = Nehalem
{% endif %}
{% endraw %}