[pve-devel] [PATCH 2/3] add error log for qm start of the target vm.

Alexandre Derumier aderumier at odiso.com
Thu Dec 27 09:18:15 CET 2012


Can be usefull to see what's wrong if target vm doesn't start (missing storage, missing bridge,...)

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

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 9ca8f87..282cbc5 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;
 
-- 
1.7.10.4




More information about the pve-devel mailing list