From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR3BP-0001is-Se for qemu-devel@nongnu.org; Fri, 21 Mar 2014 13:24:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR3BK-00048E-7N for qemu-devel@nongnu.org; Fri, 21 Mar 2014 13:24:39 -0400 Received: from static.92.5.9.176.clients.your-server.de ([176.9.5.92]:53410 helo=hallynmail2) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR3BK-000481-0k for qemu-devel@nongnu.org; Fri, 21 Mar 2014 13:24:34 -0400 Date: Fri, 21 Mar 2014 18:24:33 +0100 From: "Serge E. Hallyn" Message-ID: <20140321172433.GA17892@mail.hallyn.com> References: <20140319154247.GA31501@mail.hallyn.com> <5329BCA1.3030303@redhat.com> <20140319155216.GA31857@mail.hallyn.com> <20140319161631.GA32205@mail.hallyn.com> <532A33F0.5050305@redhat.com> <20140321170011.GA17659@mail.hallyn.com> <532C754C.5090707@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <532C754C.5090707@redhat.com> Subject: Re: [Qemu-devel] migrating instances from qemu-kvm to qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cole Robinson Cc: Paolo Bonzini , qemu-devel@nongnu.org, "Serge E. Hallyn" Quoting Cole Robinson (crobinso@redhat.com): > On 03/21/2014 01:00 PM, Serge E. Hallyn wrote: > > Quoting Cole Robinson (crobinso@redhat.com): > >> On 03/19/2014 12:16 PM, Serge E. Hallyn wrote: > >>> Quoting Serge E. Hallyn (serge@hallyn.com): > >>>> Quoting Paolo Bonzini (pbonzini@redhat.com): > >>>>> Il 19/03/2014 16:42, Serge E. Hallyn ha scritto: > >>>>>> Hi, > >>>>>> > >>>>>> at https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1291321 > >>>>>> it was found that migrating running vms from a machine with > >>>>>> qemu-kvm to one with qemu, migration fails due to some mismatches. > >>>>>> The first one we usually hit is > >>>>>> > >>>>>> Length mismatch: vga.vram: 1000000 in != 800000 > >>>>>> > >>>>>> while the second one is network card (and I have not gone beyond > >>>>>> that). > >>>>> > >>>>> This is just a different default. Make sure you specify the right > >>>>> model on the command line. > >>>>> > >>>>>> The vga one can be handled on the command line by > >>>>>> specifying the -global cirrus-vga.vrammem_mb=8. However that > >>>>>> doesn't help with a libvirt migration. > >>>>> > >>>>> You can patch Ubuntu's QEMU to detect old machine types (pc-1.2 and > >>>>> earlier) and give cirrus-vga 16MB memory by default. Migration only > >>>>> works with versioned machine types (or between same-version QEMU), > >>>>> so it's okay to only do it there. > >>>>> > >>>>>> I guess this happens at ram_load() unfortunately - is there any > >>>>>> good way that this could be detected at incoming migration time > >>>>>> and the virtual hardware modified as needed for migration to > >>>>>> continue? > >>>>> > >>>>> It cannot, but the destination can be patched to operate correctly > >>>>> for the old machine types, on the assumption that migration from the > >>>>> old machine types is always from Ubuntu's qemu-kvm. > >>>>> > >>>>> Paolo > >>>> > >>>> Ah, thank you, that assumption should be safe and sounds like a > >>>> great idea. > >>> > >>> Although, some people are using newer qemu with '-M pc-1.0'. So we'd be > >>> stopping thing from migrating to support the people coming from qemu-kvm. > >>> Hmm. > >>> > >> > >> FWIW, we've carried a patch like this in Fedora 18, 19, and 20: > >> > >> http://pkgs.fedoraproject.org/cgit/qemu.git/tree/0001-Fix-migration-from-qemu-kvm.patch?h=f20 > >> > >> As you say, it breaks incoming migration from stock qemu.git. But we never > >> shipped qemu.git prior to F18 (well, not in any timeframe that matters here), > >> so back compat wasn't a real concern. > >> > >> For Fedora 21 we are dropping this patch, since there's been enough releases > >> for the people to transition: > >> > >> http://blog.wikichoon.com/2013/12/kvm-migration-from-fedora-17-to-fedora.html > > > > Thanks, Cole. I notice it doesn't do anything for -vga cirrus - is that > > just bc in general fedora users tend to use -vga qxl? > > > > Line 149 of the patch changes the cirrus-vga default memory for old machine > types, seems to fix things in my testing. Hh, hm, how did i miss that. thanks, -serge