Migration was refused connection to the destination. Please check libvirt configurations compatibility and firewall #9987
|
Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts. ISSUE TYPE
COMPONENT NAMECLOUDSTACK VERSIONCONFIGURATION3 KVM hosts on Ubuntu 22.04 all are in same subnet. enable automatic DRS in global settings and also on the cluster. Firewall is disable on cloudstack and kvm hosts. OS / ENVIRONMENTSUMMARY2024-11-22 17:34:27,689 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-15:ctx-36934979 job-484/job-485 ctx-bb524027) (logid:1ece315b) Invocation exception, caused by: com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts. STEPS TO REPRODUCEEXPECTED RESULTSACTUAL RESULTS |
Replies: 13 comments
|
@verendrakalsi can you explain bit more instead of just pasting the logs. |
|
not sure why all the details are not showing up, i have updated it. Anyways. I have 3 KVM hosts in same subnet and cloudstack mgmt on a different subnet but there is communication between KVM hosts & cloudstack mgmt. There is no firewall in between. I have enabled DRS at global & cluster level and also they are on same storage as well. However either DRS runs automatic or manual, the VMs doesnt move and i get this error |
|
@verendrakalsi, are libvirt TCP connections allowed? |
|
Actually i am using ubuntu 22.04 as base OS not RHEL and yes Libvirt TCP connection is allowed |
|
@verendrakalsi |
can you remove the line if everything works, the output should be same as |
|
@verendrakalsi, can you check that TCP port for libvirt is open?
this is in my lab after changing to |
for Secure host, it uses tls listen_tcp=0 |
|
As per the documentation https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html#kvm-installation-overview However i changed it to this and now migration is working. I am going to load more VMs and see if even automatic is working or not. mostly it should. |
did you add the host via cloudstack UI ? it looks like your host is unsecure. you can go to host details and click "provision host security keys" which will secure cloudstack-agent and libvirtd with certificates. |
|
yes i did added it via cloudstacck UI and yes it was unsecure. |


did you add the host via cloudstack UI ?
it looks like your host is unsecure. you can go to host details and click "provision host security keys" which will secure cloudstack-agent and libvirtd with certificates.
please refer to https://docs.cloudstack.apache.org/en/latest/adminguide/hosts.html#securing-process