summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Skalski <mskalski@mirantis.com>2016-08-11 01:33:55 +0200
committerMichal Skalski <mskalski@mirantis.com>2016-08-11 01:33:55 +0200
commitec146fdd9fd79098a892de30fe66166ec5712ffa (patch)
treebc1f86d04dfc588820ab51a9b5330c6e753b27b8
parentad783f86906639eca1b586831c39ed5f7a5c52cf (diff)
Pass host cpu flags to compute guests
Both kvm and ovs plugins require specific cpu flags. Host-model mode will pass most of the host cpu flags to guest. If a hypervisor is not able to use the exact CPU model, libvirt automatically falls back to a closest model. JIRA: FUEL-157 Change-Id: I77ce625e118b6de51cbcdb58e4be5a6dcaecf384 Signed-off-by: Michal Skalski <mskalski@mirantis.com>
-rw-r--r--deploy/templates/virtual_environment/vms/compute.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/templates/virtual_environment/vms/compute.xml b/deploy/templates/virtual_environment/vms/compute.xml
index 95db87984..0bff88827 100644
--- a/deploy/templates/virtual_environment/vms/compute.xml
+++ b/deploy/templates/virtual_environment/vms/compute.xml
@@ -14,6 +14,9 @@
<apic/>
<pae/>
</features>
+ <cpu mode='host-model'>
+ <model fallback='allow'/>
+ </cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>