Skip to contentSkip to conversation

migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)

Qemu-devel Michael Tokarev 5 participants 11 messages May 22, 2010 – Sep 7, 2012

lore
Share & tools
lore
#0 lore raw

Public bug reported:

On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process. See http://marc.info/?l=kvm&m=127351472231666 for more information.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#1 lore raw

Hi

You're filing bugs against the QEMU project, which is used to track upstream issues (issues in the tarballs released by the QEMU project, or in their git tree).

I think you intended to file these against the Ubuntu package of qemu, "qemu-kvm".

AFAIK, QEMU doesn't have any upstream bug tracker, they just discuss issues on the mailing-list.

Could you please file future bugs using "ubuntu-bug qemu-kvm"?

Thanks,

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#2 lore raw
In reply to Michael Tokarev

Sorry, I failed to realize that qemu-kvm uses the qemu project in launchpad to track bugs; so this is the right place to file these.

Thanks!

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#3 lore raw
In reply to Michael Tokarev

** Tags added: 32bit migration qemu-kvm sigsegv

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#4 lore raw
In reply to Michael Tokarev

Please test this against an unmodified upstream qemu to validate whether this is a qemu or a qemu-kvm issue. Also, please include the full command line along with the exact version information.

If you can collect a backtrace and attach it, that would also be helpful. Thanks!

** Changed in: qemu
Importance: Undecided => Medium

** Changed in: qemu
Status: New => Incomplete

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Incomplete

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#5 lore raw
In reply to Michael Tokarev

Running it on unmodified qemu-0.12.4 gives the same effect: the sending side crashes immediately with heap corruption (detected in realloc).

On the receiving side, there are 2 messages:
qemu: warning: error while loading state for instance 0x0 of device 'ram' load of migration failed

ie, the same as in qemu-kvm case.

This is with -enable-kvm. Running without...

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Incomplete

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#6 lore raw
In reply to Michael Tokarev

..And without -enable-kvm, it works (it corrupts cirrus vga but that's another issue, fixed in 0.13-tobe).

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Incomplete

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#7 lore raw
In reply to Michael Tokarev

** Changed in: qemu
Status: Incomplete => Confirmed

Signature · 10 lines
migration always fails on 32bit qemu-kvm-0.12+ (sigsegv)
https://bugs.launchpad.net/bugs/584121
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Confirmed

Bug description:
On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#8 lore raw
In reply to Michael Tokarev

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-kvm 0.12.3+noroms-0ubuntu9.3 using command virsh migrate --live my_domain qemu+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 received 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=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 1024 -smp 1 -name 27-1245 -uuid 47e4cbc4-bc91-12d4-3cd2-36b29de6f588 -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/27-1245.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/dev/disk/by-id/scsi-3600144f0eae8810000004d0703550704,if=virtio,index=0,boot=on,format=raw,cache=none -net nic,macaddr=00:00:d1:d0:3e:b3,vlan=0,model=virtio,name=virtio.0 -net tap,fd=51,vlan=0,name=tap.0 -net nic,macaddr=00:00:0a:d0:3e:b3,vlan=1,model=virtio,name=virtio.1 -net tap,fd=52,vlan=1,name=tap.1 -chardev pty,id=serial0 -serial chardev:serial0 -parallel 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.

Signature · 13 lines
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), migration always fails with a crash of qemu-kvm process.
See http://marc.info/?l=kvm&m=127351472231666 for more information.
#9 lore raw
In reply to Michael Tokarev

This is fixed by two commits. The second half is here:
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=51b0c6065aa6e47a47094d73e24be298a4a7f3a1
which fixes mixed 32/63 user/kernel host environment part of the problem, and the first half belongs to the time between 0.13 and 0.14 when dirty bitmap handling qemu-kvm code has been converted to qemu equivalent (this is the main part, when migration started working in 32bits again).

** Changed in: qemu
Status: Confirmed => Fix Committed

Signature · 13 lines
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:
  Fix Committed

Bug description:
  On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
  See http://marc.info/?l=kvm&m=127351472231666 for more information.
#10 lore raw
In reply to Michael Tokarev

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 16 lines
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:
  Fix Released

Bug description:
  On a 32bit host (or when running 32bit userspace on 64bit host), migration always fails with a crash of qemu-kvm process.
  See http://marc.info/?l=kvm&m=127351472231666 for more information.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/584121/+subscriptions