I think I've understand the issue now.

My system had still installed kvm 72+dfsg-5+squeeze1 which has another
command interface for qemu-monitor. The command 'info migrate' is not
available there. After forcing installation of qemu-kvm 'virsh save' at
least does not return with error "Migration is not active".

Maybe include this forced update of kvm in libvirt in some case?
Alternatively use attached patch to detect this error.

Well currently 'virsh save' has paused the VM but top shows kvm is still
running and gets a lot of CPU time. But 'domjobinfo' always show

---8<---
Job type:         Unbounded
Time elapsed:     743114       ms
Data processed:   108,000 KB
Data remaining:   528,145 MB
Data total:       528,250 MB
Memory processed: 108,000 KB
Memory remaining: 528,145 MB
Memory total:     528,250 MB
--->8---

The file to save the current VM state does not grow ... this is some
wired state. Will cleanup my kvm/libvirt packages, restart and give it
another try.

regards

Andreas Bießmann
>From 9844202bca23a0ea19bda4efdad966dd0f83b0c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= <biessm...@corscience.de>
Date: Thu, 18 Mar 2010 13:05:59 +0100
Subject: [PATCH] [QEMU monitor] patch qemuMonitorTextGetMigrationStatus to intercept unknown command 'info migrate'
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Andreas Bießmann <biessm...@corscience.de>
---
 src/qemu/qemu_monitor_text.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/qemu/qemu_monitor_text.c b/src/qemu/qemu_monitor_text.c
index 7f0e7f6..edee175 100644
--- a/src/qemu/qemu_monitor_text.c
+++ b/src/qemu/qemu_monitor_text.c
@@ -1078,7 +1078,12 @@ int qemuMonitorTextGetMigrationStatus(qemuMonitorPtr mon,
             *total *= 1024;
 
         }
-    }
+    } else if (strncmp(reply, "info", 4) == 0) {
+        /* it seems we have a old kvm monitor interface */
+        qemuReportError(VIR_ERR_INTERNAL_ERROR,
+                        _("weird kvm monitor interface"));
+        goto cleanup;
+   }
 
 done:
     ret = 0;
-- 
1.6.6.1

Reply via email to