Openstack - nova live migration - Live Migration failure: operation failed xxxx : Connection refused

今天我們以cmd的方式進行live migration(我們這邊是用ceph rbd當作instance的backend storage)
$ nova live-migration instance-id compute-hostname

# 結果檢查nova-compute.log的時候出現了
Live Migration failure: operation failed: Failed to connect to remote libvirt URI qemu+tcp://compute-hostname/system: unable to connect to server at 'compute-hostname:16509': Connection refused

# 這時請修改libvirt的相關conf參數
$ vim /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp = 1
auth_tcp = "none"

$ vim /etc/default/libvirt-bin
libvirtd_opts=" -d -l"

# 重啟libvirt服務
$ restart libvirt-bin

# 這樣應該就可以正常了
$ nova live-migration instance-id compute-hostname

留言

這個網誌中的熱門文章

Python - 計算特定目錄底下的檔案以及目錄數量

PHP - 產生qrcode

devstack安裝all in one openstack(pike)