Received: from [140.186.70.92] (port=43616 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PY1Lj-0000YO-4g for qemu-devel@nongnu.org; Wed, 29 Dec 2010 14:06:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PY1Lh-0003vV-Bo for qemu-devel@nongnu.org; Wed, 29 Dec 2010 14:06:14 -0500 Received: from adelie.canonical.com ([91.189.90.139]:33206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PY1Lg-0003vP-Sj for qemu-devel@nongnu.org; Wed, 29 Dec 2010 14:06:13 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PY1Lc-0005Mt-Ug for ; Wed, 29 Dec 2010 19:06:09 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 81D8B2E816F for ; Wed, 29 Dec 2010 19:05:55 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Dec 2010 18:55:41 -0000 From: Preston Connors <584121@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100522084232.29268.92008.malonedeb@soybean.canonical.com> Message-Id: <20101229185541.30469.19385.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 584121] Re: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Reply-To: Bug 584121 <584121@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I believe this issue to be affecting my systems too. I am willing to provide more information as necessary. Running two equivalent systems hardware wise - RAM type (not amount), CPU, BIOS, Ubuntu version except qemu-kvm binary. Both systems are running Ubuntu version 10.04.1 x86_64. Running Ubuntu qemu-kvm 0.12.3+noroms-0ubuntu9.3 on both systems however I have some running kvm processes that were running from qemu-kvm version 0.12.3+noroms-0ubuntu9.2. The kvm processes running from qemu- kvm version 0.12.3+noroms-0ubuntu9.2 are the kvm processes that are not migrating. Steps to reproduce: 1) Attempt to qemu+ssh migrate qemu-kvm 0.12.3+noroms-0ubuntu9.2 process to= another server running either qemu-kvm 0.12.3+noroms-0ubuntu9.2 or qemu-kv= m 0.12.3+noroms-0ubuntu9.3 using command virsh migrate --live my_domain qem= u+ssh://receiving.host/system 2) Wait for the migration to complete. It never completes and error 'qemu: = warning: error while loading state for instance 0x0 of device 'ram'' is rec= eived on the receiving host. During first migration attempt the guest will be created in the paused state on the receiving host and the migration will not exit unless you force quit (CTRL+C) the migration on the sending node. You can virsh resume the domain on the receiving end and the guest will re-boot itself and boot properly on the receiving end. Further migration attempts with the same domain will fail with error 'error: Requested operation is not valid: domain is already active as 'my_domain''' on the sending host. If you virsh destroy my_domain ; virsh undefine my_domain on the receiving host (which will have this domain in a paused state) you can re-try the migration. After doing 'service libvirt-bin restart' on both hosts you can re-try the migration multiple times. Around six tries of restarting service libvirt-bin and also attempting the migration will get the domain migrated over to the receiving host without any errors, however during this migration that is supposedly successful the guest domain will crash and re-boot itself on the receiving host. After this crash/migration you can then migrate the domain back and forth between hosts with no problems. Log entries/errors generated during migration on receiving host: /var/log/libvirt/qemu/$vm_name.log LC_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/= bin QEMU_AUDIO_DRV=3Dnone /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 1024 -s= mp 1 -name 27-1245 -uuid 47e4cbc4-bc91-12d4-3cd2-36b29de6f588 -chardev sock= et,id=3Dmonitor,path=3D/var/lib/libvirt/qemu/27-1245.monitor,server,nowait = -monitor chardev:monitor -boot c -drive file=3D/dev/disk/by-id/scsi-3600144= f0eae8810000004d0703550704,if=3Dvirtio,index=3D0,boot=3Don,format=3Draw,cac= he=3Dnone -net nic,macaddr=3D00:00:d1:d0:3e:b3,vlan=3D0,model=3Dvirtio,name= =3Dvirtio.0 -net tap,fd=3D51,vlan=3D0,name=3Dtap.0 -net nic,macaddr=3D00:00= :0a:d0:3e:b3,vlan=3D1,model=3Dvirtio,name=3Dvirtio.1 -net tap,fd=3D52,vlan= =3D1,name=3Dtap.1 -chardev pty,id=3Dserial0 -serial chardev:serial0 -parall= el none -usb -vnc 0.0.0.0:16,password -k en-us -vga cirrus -incoming tcp:0.= 0.0.0:49152 = char device redirected to /dev/pts/2 qemu: warning: error while loading state for instance 0x0 of device 'ram' load of migration failed Verbose libvirtd log output on receiving host: http://pastebin.com/GPxLCjyS Log entries/errors generated during migration on the sending host: Verbose libvirtd log output on sending host: http://pastebin.com/cMcU7SgS If you would like any further information/output please let me know. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/584121 Title: migration always fails on 32bit qemu-kvm-0.12+ (sigsegv) Status in QEMU: Confirmed Bug description: On a 32bit host (or when running 32bit userspace on 64bit host), migratio= n always fails with a crash of qemu-kvm process. See http://marc.info/?l=3Dkvm&m=3D127351472231666 for more information.