Pass host cpu flags to compute guests 59/18359/1
authorMichal Skalski <mskalski@mirantis.com>
Wed, 10 Aug 2016 23:33:55 +0000 (01:33 +0200)
committerMichal Skalski <mskalski@mirantis.com>
Wed, 10 Aug 2016 23:33:55 +0000 (01:33 +0200)
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>
deploy/templates/virtual_environment/vms/compute.xml

index 95db879..0bff888 100644 (file)
@@ -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>