File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ function configure_nova {
259259 if [ ! -e /dev/kvm ]; then
260260 echo " WARNING: Switching to QEMU"
261261 LIBVIRT_TYPE=qemu
262+ LIBVIRT_CPU_MODE=none
262263 if which selinuxenabled > /dev/null 2>&1 && selinuxenabled; then
263264 # https://bugzilla.redhat.com/show_bug.cgi?id=753589
264265 sudo setsebool virt_use_execmem on
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function cleanup_nova_hypervisor {
3939function configure_nova_hypervisor {
4040 configure_libvirt
4141 iniset $NOVA_CONF libvirt virt_type " $LIBVIRT_TYPE "
42- iniset $NOVA_CONF libvirt cpu_mode " none "
42+ iniset $NOVA_CONF libvirt cpu_mode " $LIBVIRT_CPU_MODE "
4343 # Do not enable USB tablet input devices to avoid QEMU CPU overhead.
4444 iniset $NOVA_CONF DEFAULT pointer_model " ps2mouse"
4545 iniset $NOVA_CONF libvirt live_migration_uri " qemu+ssh://$STACK_USER @%s/system"
Original file line number Diff line number Diff line change @@ -621,6 +621,7 @@ VIRT_DRIVER=${VIRT_DRIVER:-$DEFAULT_VIRT_DRIVER}
621621case " $VIRT_DRIVER " in
622622 ironic|libvirt)
623623 LIBVIRT_TYPE=${LIBVIRT_TYPE:- kvm}
624+ LIBVIRT_CPU_MODE=${LIBVIRT_CPU_MODE:- none}
624625 if [[ " $os_VENDOR " =~ (Debian| Ubuntu) ]]; then
625626 # The groups change with newer libvirt. Older Ubuntu used
626627 # 'libvirtd', but now uses libvirt like Debian. Do a quick check
You can’t perform that action at this time.
0 commit comments