配置libvirtd

sed -i /listen_tls/s/.*/listen_tls\ =\ 0/g /etc/libvirt/libvirtd.conf
sed -i /listen_tcp/s/.*/listen_tcp\ =\ 1/g /etc/libvirt/libvirtd.conf
sed -i /tcp_port/s/.*/tcp_port\ =\ \"16509\"/g /etc/libvirt/libvirtd.conf
sed -i /listen_addr/s/.*/listen_addr\ =\ \"0.0.0.0\"/g /etc/libvirt/libvirtd.conf
sed -i /auth_tcp/s/.*/auth_tcp\ =\ \"none\"/g /etc/libvirt/libvirtd.conf
sed -i /libvirtd_opts/s/.*/libvirtd_opts=\"\-l\"/g /etc/default/libvirtd

service libvirtd restart

配置nova-compute

编辑/etc/nova/nova-compute.conf

[libvirt]
live_migration_bandwidth = 0
libvirt_live_migration_flag="VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST,VIR_MIGRATE_TUNNELLED"
live_migration_uri = qemu+tcp://%s/system

重启nova-compute

service nova-compute restart