You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -135,12 +135,9 @@ public Answer execute(final MigrateCommand command, final LibvirtComputingResour
135
135
136
136
dm = conn.domainLookupByName(vmName);
137
137
/*
138
-
We replace the private IP address with the address of the destination host.
139
-
This is because the VNC listens on the private IP address of the hypervisor,
140
-
but that address is of course different on the target host.
141
-
142
-
MigrateCommand.getDestinationIp() returns the private IP address of the target
143
-
hypervisor. So it's safe to use.
138
+
We replace the VNC graphics listen address with the VNC address configured for
139
+
the target host. This is typically the private IP address of the destination
140
+
hypervisor, but it must remain independent from the migration transport IP.
144
141
145
142
The Domain.migrate method from libvirt supports passing a different XML
146
143
description for the instance to be used on the target host.
@@ -156,6 +153,7 @@ Use VIR_DOMAIN_XML_SECURE (value = 1) prior to v1.0.0.
0 commit comments