[SOLVED] Unable to migrate VMs and VNC (Host key verification failed)

martgb

Member
Jul 21, 2022
10
2
8
Hi Everyone,

I'm getting an error trying to migrate VMs between two nodes in a recently setup cluster.

The messages I get are:
- Host key verification failed.
- Migration aborted: Can't connect to destination address using public key.
- Migration aborted.

As for context leading to the issue:
- When I created the cluster I nad the wrong IP in one of the host files.
- This happened because after the initial installation I had to change IP addresses but wasn't aware of the host file.
- After creating the cluster I noticed that the join information and certificates had the wrong ip addresses. I fixed that with "pvecm updatecerts -force"
- The certificates now show the correct IP address.
- However when I try to migrate VMs I get "Host key verification failed" and the process is aborted.

Host key issues don't seem too uncomon in the forum but I couldn't find a thread that made sense to me. Any help will be much appreciated.
 

Attachments

  • Host key verification failed.png
    Host key verification failed.png
    30 KB · Views: 44
Alright, managed to get it working!

I had to run the following comand I found on another thread:

ssh -o 'HostKeyAlias=<Target node Name>' root@<Target node IP>

Obiously replacing <Taget node Name> and <Target node IP> with the respectives.

That did the trick for me.
 
Last edited:
  • Like
Reactions: Sh000ter