Skip to content

Commit b864e67

Browse files
ynojimaKishan Kavala
authored andcommitted
CLOUDSTACK-5039 bugfix: live migration failure in KVM env.
Signed-off-by: ynojima <mail@ynojima.net>
1 parent f6f4a93 commit b864e67

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,8 +2910,7 @@ private Answer execute(MigrateCommand cmd) {
29102910
try {
29112911
conn = LibvirtConnection.getConnectionByVmName(cmd.getVmName());
29122912
ifaces = getInterfaces(conn, vmName);
2913-
dm = conn.domainLookupByUUID(UUID.nameUUIDFromBytes(vmName
2914-
.getBytes()));
2913+
dm = conn.domainLookupByName(vmName);
29152914
/*
29162915
We replace the private IP address with the address of the destination host.
29172916
This is because the VNC listens on the private IP address of the hypervisor,

0 commit comments

Comments
 (0)