CLOUDSTACK-5039 bugfix: live migration failure in KVM env.

Signed-off-by: ynojima <mail@ynojima.net>
This commit is contained in:
ynojima 2013-11-04 21:50:14 -07:00 committed by Kishan Kavala
parent f6f4a93145
commit b864e677e5

View File

@ -2910,8 +2910,7 @@ ServerResource {
try {
conn = LibvirtConnection.getConnectionByVmName(cmd.getVmName());
ifaces = getInterfaces(conn, vmName);
dm = conn.domainLookupByUUID(UUID.nameUUIDFromBytes(vmName
.getBytes()));
dm = conn.domainLookupByName(vmName);
/*
We replace the private IP address with the address of the destination host.
This is because the VNC listens on the private IP address of the hypervisor,