QEMU KVM live migration crashes when the VM is in booting state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm |
Unknown
|
Unknown
|
|||
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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:/
There are also bug reports available for this problem:
https:/
https:/
I stumbled over this problem while testing latest builds of Ganeti (https:/
qemu-system-x86_64: /build/
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.
Related branches
- Rafael David Tinoco (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 606 lines (+418/-48)11 files modifieddebian/binfmt-install (+46/-37)
debian/changelog (+19/-0)
debian/control (+1/-1)
debian/control-in (+1/-1)
debian/patches/arm-fix-PAuth-sbox-functions-CVE-2020-10702.patch (+48/-0)
debian/patches/net-tulip-check-frame-size-and-r-w-data-length-CVE-2020-11102.patch (+145/-0)
debian/patches/series (+4/-0)
debian/patches/ubuntu/lp-1871830-module-increase-dirs-array-size-by-one.patch (+38/-0)
debian/patches/ubuntu/lp-1872107-kvm-Reallocate-dirty_bmap-when-we-change-a-slot.patch (+103/-0)
debian/qemu-system-data.install (+1/-1)
debian/rules (+12/-8)
Thanks for the Report Rudolph.
I missed that fix when I was scanning for things that went to stable@qemu since this wasn#t tagged for it.
It went into v5.0.0-rc0 and will be released with it.
There are no follow on fixes since then in upstream/master.
I'm working on a another fix upload for focal anyway and made this part of it.