From a1ffcfab478888ac4b0953c51e6d92f586d31d42 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Thu, 20 Nov 2014 16:42:32 -0800 Subject: [PATCH] Set libvirt live_migration_uri Sets up n-cpu to migrate domains via SSH. By default, hosts attempt to connect to each other as root, so this specifies STACK_USER instead. Change-Id: Ic6e868091c89a2cc6b2f0fada3f7e95002aaff8b --- 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 259bf15a27..53dbfb976f 100644 --- a/lib/nova_plugins/hypervisor-libvirt +++ b/lib/nova_plugins/hypervisor-libvirt @@ -42,6 +42,7 @@ function configure_nova_hypervisor { iniset $NOVA_CONF libvirt virt_type "$LIBVIRT_TYPE" iniset $NOVA_CONF libvirt cpu_mode "none" iniset $NOVA_CONF libvirt use_usb_tablet "False" + iniset $NOVA_CONF libvirt live_migration_uri "qemu+ssh://$STACK_USER@%s/system" iniset $NOVA_CONF DEFAULT default_ephemeral_format "ext4" iniset $NOVA_CONF DEFAULT compute_driver "libvirt.LibvirtDriver" LIBVIRT_FIREWALL_DRIVER=${LIBVIRT_FIREWALL_DRIVER:-"nova.virt.libvirt.firewall.IptablesFirewallDriver"}