Package: qemu-kvm
Version: 1:4.2-7
Severity: important

Dear Maintainer,

During a QEMU KVM live migration the sending process crashes if the VM is 
currently in a booting state (and possibly also during a 'soft' reboot from 
inside the VM). This has been fixed upstream:

https://github.com/qemu/qemu/commit/9b3a31c745b61758aaa5466a3a9fc0526d409188

There are also bug reports available for this problem:

https://bugzilla.redhat.com/show_bug.cgi?id=1771032
https://bugzilla.redhat.com/show_bug.cgi?id=1772774

I stumbled over this problem while testing latest builds of Ganeti 
(https://github.com/ganeti/ganeti) on Debian Bullseye and Ubuntu Focal Fossa 
which both ship qemu 4.2. The Ganeti QA suite runs a series of tests against a 
cluster and issues a VM failover (QEMU shutdown on Node A and start on Node B) 
directly followed by a live migration (QEMU live migration from Node B to Node 
A). The sending QEMU process dies with this error message:

qemu-system-x86_64: /build/qemu-oknQD6/qemu-4.2/accel/kvm/kvm-all.c:653: 
kvm_log_clear_one_slot: Assertion `mem->dirty_bmap' failed.

If you add 'sleep 2' between the reboot and the live migration instructions 
everything works fine, because the QEMU VM has left the booting state by the 
time the live migration starts. From a Ganeti point of view, this only happens 
when using the "sharedfile" storage backend. When you use e.g. DRBD, the Ganeti 
commands take a bit longer to finish which gives the VM enough time to boot up.

For further reference, the same issue has been opened (and fixed) for the 
respective Ubuntu package:

https://bugs.launchpad.net/qemu-kvm/+bug/1872107

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_US.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default 
locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages qemu-kvm depends on:
ii  qemu-system-x86  1:4.2-7

qemu-kvm recommends no packages.

qemu-kvm suggests no packages.

-- debconf information excluded

Reply via email to