kvm migration fails with large-memory VMs

Bug #362013 reported by Brent Nelson
2
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
High
Unassigned
kvm (Ubuntu)
Won't Fix
Low
Unassigned
qemu-kvm (Ubuntu)
Fix Released
Low
Dustin Kirkland 

Bug Description

Binary package hint: kvm

In Hardy, an attempt to migrate a 6GB VM results in:
migration: memory size mismatch: recv 2168467456 mine 2168467456
migrate_incoming_fd failed (rc=232)
Migration failed rc=232

I ran across a thread which suggests that this is a known KVM bug that has since been fixed (when Qemu fixed it in their source, and KVM pulled in the new code):

http://kerneltrap.org/index.php?q=mailarchive/linux-kvm/2008/12/14/4414784

I'm planning to test the KVM 84 Hardy backport to see if it is fixed there...

Revision history for this message
Brent Nelson (brent-phys-deactivatedaccount) wrote :

I just tried with the Hardy PPA KVM:84. It doesn't have this migration issue, and migration claims to go to completion, however:

1) The first time I tried migrating, after migration completed, the guest VM, also running Hardy, had done a fresh boot.

2) I tried migrating again, this time with a vncviewer attached to the destination. The vncviewer went away on migration completion, but when I started the vncviewer again, the guest VM, now on the destination, had panicked. See screenshot, attached, for what I was able to see of the kernel panic.

PS A minor nuisance with KVM:84, as packaged: if you don't specify script= in your -net options, kvm looks for /etc/kvm-ifup, which does not exist, rather than /etc/kvm/kvm-ifup.

Revision history for this message
Brent Nelson (brent-phys-deactivatedaccount) wrote :

I tried again to migrate with Hardy PPA KVM:84 and got a different oops. However, if I first stop the guest VM, and then migrate, it does work fine, and it's actually pretty quick, such that an ssh would see just a few seconds delay. So, offline migration does work, and isn't bad. I would love have live migration working properly, but the offline migration delay was brief enough that I'll probably cancel plans to experiment with Xen and just stick with KVM (the newer version in PPA).

One thing I didn't like with the migration is that the migrated guest takes the full amount of RAM the guest was allocated, rather than just the RAM the guest was using prior to the migration. Good thing I already bought more RAM, although maybe there's something I can do with the new memory ballooning feature...

Revision history for this message
Brent Nelson (brent-phys-deactivatedaccount) wrote :

The live migration crashes with KVM:84 are specific to SMP guests. This is already logged in the KVM bug database. I've seen mention that KVM:85 is soon to be release, but I do not know whether or not this bug is fixed.

Rick Clark (dendrobates)
Changed in kvm (Ubuntu):
assignee: nobody → kirkland
importance: Undecided → Medium
status: New → Triaged
Changed in qemu:
importance: Undecided → High
milestone: none → 0.11.0
status: New → Confirmed
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Brent-

Upstream indicates that this is solved in qemu 0.11, which is what we have in Karmic right now.

Any chance you can test this on a Karmic system running qemu-kvm 0.11?

With regard to your ifup/ifdown question, I'm uploading a fix right now for Bug #376387, which is that bug.

:-Dustin

Changed in kvm (Ubuntu):
status: Triaged → Won't Fix
Changed in qemu-kvm (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Changed in kvm (Ubuntu):
importance: Medium → Low
assignee: Dustin Kirkland (kirkland) → nobody
Changed in qemu-kvm (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'm marking "won't fix" against kvm, since we won't be backporting this feature.

And I'm marking "fix released" against qemu-kvm, since upstream says that this fixed there. If you can reproduce this on an up-to-date karmic system, please move the qemu-kvm task back to "confirmed".

Thanks,
:-Dustin

Changed in qemu:
status: Confirmed → Fix Released
Changed in qemu-kvm (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Brent Nelson (brent-phys-deactivatedaccount) wrote : Re: [Bug 362013] Re: kvm migration fails with large-memory VMs

On Tue, 8 Sep 2009, Dustin Kirkland wrote:

> Hi Brent-
>
> Upstream indicates that this is solved in qemu 0.11, which is what we
> have in Karmic right now.
>
> Any chance you can test this on a Karmic system running qemu-kvm 0.11?
>
> With regard to your ifup/ifdown question, I'm uploading a fix right now
> for Bug #376387, which is that bug.
>
> :-Dustin
>

The KVM 84 PPA you posted for Hardy fixed the memory issue (although live
migration of SMP systems is still broken; this is fixed somewhat after KVM
84, apparently). I don't have any Koala to test with (trying to hold out
for the next LTS release), but it appears to be the same version or
better, so I would expect that it resolves the issue with migration of
large-memory VMs.

Thanks,

Brent

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.