KVM live migration and QEMU_PROTOCOL

Hi all

We want to enable VM live migration support in our cloud service, we are using a ceph backend and our system datastore is shared. We have tested that live migrations works from command line but it fails using opennebula service, we get these logs:

2015-07-09T14:56:32.259718+02:00 one01 oned[11314]: [VM 244][Z0][VMM][E]: migrate: Command “virsh --connect qemu:///system migrate --live one-244 qemu+ssh://hyp101/system” failed: error: Cannot recv data: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).: Connection reset by peer

but it should be

virsh --connect qemu:///system migrate --live one-244 qemu+tcp://hyp101/system

We are using qemu tcp instead ssh auth, so we have changed /var/lib/one/remotes/vmm/kvm/kvmrc file to set:

export QEMU_PROTOCOL=qemu+tcp

and one service was restarted but it still using qemu+ssh…

do you know if something is missing or wrong?

Cheers and thanks!
Alvaro

Have you done a “onehost sync --force” on the opennebula frontend to push the changes to your hypervisors after the changes made in kvmrc?

Ah no, thanks a lot! I forgot to do that :relaxed:

Cheers
Alvaro