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 NAME
CLOUDSTACK VERSION
CONFIGURATION3 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 REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
|
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
@verendrakalsi can you explain bit more instead of just pasting the logs. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@verendrakalsi, are libvirt TCP connections allowed? |
Beta Was this translation helpful? Give feedback.
-
Actually i am using ubuntu 22.04 as base OS not RHEL and yes Libvirt TCP connection is allowed |
Beta Was this translation helpful? Give feedback.
-
@verendrakalsi
|
Beta Was this translation helpful? Give feedback.
-
Here is the screenshot from one of the server and it is same for all of them. |
Beta Was this translation helpful? Give feedback.
-
can you remove the line if everything works, the output should be same as
|
Beta Was this translation helpful? Give feedback.
-
i have commented the line and i get this output after running the ps command. |
Beta Was this translation helpful? Give feedback.
-
@verendrakalsi, can you check that TCP port for libvirt is open?
this is in my lab
after changing to
|
Beta Was this translation helpful? Give feedback.
-
for Secure host, it uses tls listen_tcp=0 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
yes i did added it via cloudstacck UI and yes it was unsecure. |
Beta Was this translation helpful? Give feedback.
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