From ab399b7c5d8987b6b498e2fde75c404415f05f92 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 27 Dec 2012 09:18:15 +0100 Subject: [PATCH] add error log for qm start of the target vm. Can be usefull to see what's wrong if target vm doesn't start (missing storage, missing bridge,...) Signed-off-by: Alexandre Derumier --- PVE/QemuMigrate.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 9ca8f87e..282cbc53 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -312,7 +312,10 @@ sub phase2 { if ($line =~ m/^migration listens on port (\d+)$/) { $rport = $1; } - }, errfunc => sub {}); + }, errfunc => sub { + my $line = shift; + $self->log('info', $line); + }); die "unable to detect remote migration port\n" if !$rport;