[pve-devel] [PATCH 10/19] phase2 : don't sent migratedfrom for externalmigration

Alexandre Derumier aderumier at odiso.com
Wed Feb 22 14:33:34 CET 2017


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuMigrate.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index ab396b3..1ca445d 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -514,7 +514,11 @@ sub phase2 {
 	$spice_ticket = $res->{ticket};
     }
 
-    push @$cmd , 'qm', 'start', $targetvmid, '--skiplock', '--migratedfrom', $nodename;
+    push @$cmd , 'qm', 'start', $targetvmid, '--skiplock';
+
+    if(!$self->{opts}->{externalcluster}) {
+	push @$cmd , '--migratedfrom', $nodename;
+    }
 
     # we use TCP only for unsecure migrations as TCP ssh forward tunnels often
     # did appeared to late (they are hard, if not impossible, to check for)
-- 
2.1.4




More information about the pve-devel mailing list