

Live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_TUNNELLEDĪssuming that the compute nodes have different hardware you have to set up a common cpu model in nf configuration file. Set the needed flags in libvirt for live migration: Once the changes are made restart the libvirt-bin service:Ĭheck if libvirt-bin is listening on tcp port 16509 # Set to 0 to disable file ownership changes. # to match the configured user/group above. # Whether libvirt should dynamically change file ownership # The group for QEMU processes run by the system instance. # parse this value first as a name and then, if the name doesn't exist,

# specified as a user name or as a user id. etc/libvirt/nf # The user for QEMU processes run by the system instance. # the network providing auth (eg, TLS/x509 certilos resultadosficates)īecause we are setting no auth for tcp connection you should take other actions for your production environment to ensure only certain servers are allowed to connect to this port, for example using iptables. # socket permissions), or if there is a lower layer in # restrictions on connecting to the socket (eg, UNIX This can be a numeric IPv4/6 address, or hostname # Override the default configuration which binds to all network # Listen for unencrypted TCP connections on the public TCP/IP port. etc/libvirt/nf # Flag listening for secure TLS connections on the public TCP/IP port. In libvirtd configuration, set the options needed to listen on tcp: # options passed to libvirtd, add "-l" to listen on tcp etc/default/libvirt-bin # Defaults for libvirt-bin initscript (/etc/init.d/libvirt-bin) In libvirt-bin service configuration file we have to enable -l flag to libvirt-bin service args so it listen through tcp socket. In my set-up cinder volumes and the nova instances ephimeral disks are backed with CEPH so all the compute nodes can see all the storage.Īssuming that cinder and nova is correctly integrated with CEPH we have to follow these steps to set up live migration: In this post I going to configure the compute nodes to enable the instance live migration on kvm instances backed with CEPH.
