Received: from eggs.gnu.org ([2001:4830:134:3::10]:52665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkCl-0004PU-Ph for qemu-devel@nongnu.org; Tue, 19 Aug 2014 10:16:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJkCf-0000GP-MM for qemu-devel@nongnu.org; Tue, 19 Aug 2014 10:16:07 -0400 Received: from indium.canonical.com ([91.189.90.7]:53613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkCf-0000GK-Gl for qemu-devel@nongnu.org; Tue, 19 Aug 2014 10:16:01 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XJkCe-0006pz-UR for ; Tue, 19 Aug 2014 14:16:00 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E22C82E80BB for ; Tue, 19 Aug 2014 14:16:00 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Aug 2014 14:06:26 -0000 From: "Dr. David Alan Gilbert" Sender: bounces@canonical.com References: <20140819063553.17571.47743.malonedeb@soybean.canonical.com> Message-Id: <20140819140626.4866.37534.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1358619] Re: keep savevm/loadvm and migration cause snapshot crash Reply-To: Bug 1358619 <1358619@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, Can I just check, when you do the incoming migrate, do you wait for the i= ncoming migrate to finish before you do the loadvm, or do you do the loadvm= during the incoming migrate? -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1358619 Title: keep savevm/loadvm and migration cause snapshot crash Status in QEMU: New Bug description: --Version: qemu 2.1.0 public release --OS: CentOS release 6.4 --gcc: 4.4.7 Hi: I found problems when doing some tests on qemu migration and savevm/= loadvm. On my experiment, a quest is migrated between two same host back and fort= h. = Source host would savevm after migration completed and incoming host load= vm before migration coming. image=3D./image/centos-1.qcow2 =3D=3D=3D=3DMigration Part=3D=3D=3D=3D qemu-system-x86_64 \ -qmp tcp:$host_ip:4451,server,nowait \ -drive file=3D$image \ --enable-kvm \ -monitor stdio \ -m 8192 \ -device virtio-net-pci,netdev=3Dnet0,mac=3D$mac \ -netdev tap,id=3Dnet0,script=3D./qemu-ifup =3D=3D=3D=3DIncoming Part=3D=3D=3D=3D qemu-system-x86_64 \ -qmp tcp:$host_ip:4451,server,nowait \ -incoming tcp:0:4449 \ --enable-kvm \ -monitor stdio \ -drive file=3D$image \ -m 8192 \ -device virtio-net-pci,netdev=3Dnet0,mac=3D$mac \ -netdev tap,id=3Dnet0,script=3D./qemu-ifup = Command lines: host1 $: qemu-system-x86_64 ........ //migration part host2 $: qemu-system-x86_64 ...incoming... //incoming part After finishing boot host1 (qemu) : migrate tcp:host2:4449 host1 (qemu) : savevm s1 host1 (qemu) : quit host1 $: qemu-system-x86_64 ...incoming... //incoming part host1 (qemu) : loadvm s1 host2 (qemu) : migrate tcp:host1:4449 host2 (qemu) : savevm s2 host2 (qemu) : quit host2 $: qemu-system-x86_64 ...incoming... //incoming part host2 (qemu) : loadvm s2 host1 (qemu) : migrate tcp:host2:4449 host1 (qemu) : savevm s3 host1 (qemu) : quit host1 $: qemu-system-x86_64 ...incoming... //incoming part host1 (qemu) : loadvm s3 I wish those operation can be success every time. = However problem happened irregularly when loadvm and error messages are n= ot the same. host1 (qemu) : loadvm s3 qcow2: Preventing invalid write on metadata (overlaps with active L1 tabl= e); image marked as corrupt. Error -5 while activating snapshot 's3' on 'ide0-hd0' or host2 (qemu) : loadvm s2 Error -22 while loading VM state = I have done some sample test on savevm/loadvm On same host (qemu) savevm test1 (qemu) loadvm test1 (qemu) savevm test2 (qemu) loadvm test2 (qemu) savevm test3 (qemu) loadvm test3 (qemu) savevm test4 (qemu) loadvm test4 (qemu) savevm test5 (qemu) loadvm test5 (qemu) savevm test6 (qemu) loadvm test6 This is OK. No any problem. = Any idea? = I think it is related to migration. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1358619/+subscriptions