|We moved this page to our Documentation Portal. You can find the latest updates here.
When trying to hot migrate a VS on a static compute resource, the migration fails with the error "error: internal error Attempt to migrate guest to the same host"
static KVM compute resources
To resolve the issue, you need to configure the unique libvirt UUID.
1. Check the current libvirt UUID with the command:
# virsh capabilities | grep uuid <uuid>b4eef507-e834-428f-82f5-188ab3d1b26e</uuid>
2. Generate the new libvirt UUID:
# uuidgen b1285b1c-7fa0-4c07-8ec7-cb8237b41140
3. Edit file /etc/libvirt/libvirtd.conf and add/edit the following line:
host_uuid = “b1285b1c-7fa0-4c07-8ec7-cb8237b41140”
4. Restart libvirtd# service:
# service libvirtd restart Redirecting to /bin/systemctl restart libvirtd.service
Same UUIDS across source and destination compute resources. Before the migration starts, virsh checks the UUID of the system by executing virsh sysinfo. Also, it executes the same command on the host that the VS will be migrated to. This is to avoid migrating to the same server in case of a cluster of compute resources.