From 5d7992a0189d940c0ffbb01e93bf3a0e4eba4ec7 Mon Sep 17 00:00:00 2001 From: Kevin Zhao Date: Tue, 19 Jul 2016 15:52:12 +0000 Subject: [PATCH] Modify the default cpu-mode for aarh64 in Libvirt For AArch64, KVM don't recognize the cpu-mode "none", so change the default cpu-mode as host-passthrough for generating nova.conf Change-Id: I94a22e5a15a974b9c11e9f9fd996857453b6e2ca Signed-off-by: Kevin Zhao --- lib/nova_plugins/hypervisor-libvirt | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nova_plugins/hypervisor-libvirt b/lib/nova_plugins/hypervisor-libvirt index d0e364efc3..51d807a160 100644 --- a/lib/nova_plugins/hypervisor-libvirt +++ b/lib/nova_plugins/hypervisor-libvirt @@ -55,6 +55,7 @@ function configure_nova_hypervisor { if is_arch "aarch64"; then # arm64 architecture currently does not support graphical consoles. iniset $NOVA_CONF vnc enabled "false" + iniset $NOVA_CONF libvirt cpu_mode "host-passthrough" fi # File injection is being disabled by default in the near future -