Public bug reported: 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 Ubuntu Focal Fossa which ships 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. Debian Bullseye (which ships the same QEMU version as Focal) shows the exact same behaviour. ** Affects: qemu-kvm Importance: Unknown Status: Unknown ** Affects: qemu-kvm (Ubuntu) Importance: Undecided Status: New ** Bug watch added: Red Hat Bugzilla #1772774 https://bugzilla.redhat.com/show_bug.cgi?id=1772774 ** Also affects: qemu-kvm via https://bugzilla.redhat.com/show_bug.cgi?id=1772774 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1872107 Title: QEMU KVM live migration crashes when the VM is in booting state To manage notifications about this bug go to: https://bugs.launchpad.net/qemu-kvm/+bug/1872107/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs