Nova live-migration failed(libvirt Connection refused)

asked 2013-10-28 02:17:20 -0600

Dongjh gravatar image

updated 2013-10-28 02:19:51 -0600


I was trying to migrate one instance from the compute node compute2 to another node compute1, but failed, the nova-compute.log said compute2 failed to connect the 16509 port on compute1, i noticed that the 16509 port is not opened on compute1, is there any additional configuration for Live-Migration ? Which service listens on port 16509 ?

The hypervisor is KVM.

2013-10-28 14:54:38.948 3086 ERROR nova.virt.libvirt.driver [-] [instance: 861c668c-57c1-4429-8884-1b272463faf5] Live Migration failure: operation failed: Failed to connect to remote libvirt URI qemu+tcp://compute1/system: unable to connect to server at 'compute1:16509': Connection refused
2013-10-28 14:54:51.868 3086 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2013-10-28 14:54:52.460 3086 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 14978
2013-10-28 14:54:52.460 3086 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 491
2013-10-28 14:54:52.461 3086 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 7
2013-10-28 14:54:52.535 3086 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute2:compute2

root@compute1:~# netstat -na|grep 16509
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-10-28 07:49:07 -0600

sgordon gravatar image

updated 2013-10-28 08:35:14 -0600

Port 16509 is used by Libvirt for virtual machine migration, to enable this you need to configure Libvirt to listen for TCP and ensure that TCP connections on this port are allowed through the firewall. You must also be using shared storage. Refer to this blog post for the steps required to configure shared storage and enable Libvirt's live migration facilities on each hypervisor:

In particular take note of steps 7 to 10, ensuring that the listen_tcp = 1 option is set in the Libvirt configuration and that the --listen argument is passed to Libvirt when the service is started.

edit flag offensive delete link more


The best answer ! Thanks.

Dongjh gravatar imageDongjh ( 2013-10-28 21:55:59 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-28 02:17:20 -0600

Seen: 8,265 times

Last updated: Oct 28 '13