Description of problem: In KubeVirt we have a somewhat unique use case where we need to migration between two libvirt environments that have the same hostname. There's a check in libvirt that prevents this from being possible. "Attempt to migrate guest to the same host" Normally that makes complete sense. However for our use case, we are migrating a VM between two containerized environments scheduled by kubernetes that exist on different hosts. We need both the source and target containerized environments (pods) to look identical in order to operate within kubernetes in a predictable way. This makes libvirt think we're attempting a live migration to the same node when in fact we are not. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. attempt to perform a live migration between two nodes with the same hostname. Additional info:
This was fixed in commit 6799b72d927015db4ce4cab879f072abc91a41ae Author: Michal Prívozník <mprivozn> Date: Tue Feb 25 15:53:12 2020 +0100 qemu: Don't compare local and remote hostnames on migration