From: "Daniel P. Berrange" <berrange@redhat.com>
To: kvm@vger.kernel.org, qemu-devel@nongnu.org,
okeanos-dev@lists.grnet.gr, synnefo-devel@googlegroups.com
Subject: Re: [Qemu-devel] [okeanos-dev] Re: KVM versions, machine types and failed migrations
Date: Thu, 10 Jan 2013 09:43:48 +0000 [thread overview]
Message-ID: <20130110094348.GB6021@redhat.com> (raw)
In-Reply-To: <20130109132753.GG13451@daedalus.cslab.ece.ntua.gr>
On Wed, Jan 09, 2013 at 03:27:53PM +0200, Vangelis Koukis wrote:
> On Wed, Jan 09, 2013 at 01:10:45pm +0000, Daniel P. Berrange wrote:
> > When doing migration, the fundamental requirement is that the guest
> > OS visible machine ABI must not change. Thus there are three key
> > things to take care of when launching QEMU on the migration target
> > host.
> >
> > - The device PCI/USB addresses must be identical to the source
> > - The machine type must be identical to the source
> > - The CPU model must be identical to the source
> >
>
> Thanks for the detailed list of requirements, we'll take it into account
> for the relevant Ganeti patch.
>
> > If you don't follow those requirements, either QEMU or the guest OS
> > or both will crash & burn during migration & you get to keep both
> > pieces :-)
> >
>
> My point is, are these requirements left up to the caller of "kvm
> -incoming" to satisfy? Since the migration will most probably break,
> wouldn't it be best for QEMU to detect this and complain loudly, instead
> of continuing with the migration, failing silently and destroying the
> VM?
>
> Sure there could be some "yes, do it, I know it is going to break"
> option, which will make QEMU proceed with the migration. However, in 99%
> of the cases this is just user error, e.g. the user has upgraded the
> version on the other end and has not specified -M explicitly. It would
> be best if QEMU was able to detect and warn the user about what is going
> to happen, because it does lead to the VM dying.
What you describe is certainly desirable, but it is quite hard to achieve
with current QEMU. Much of the work with moving to the new QEMU object
model & configuration descriptions has been motivated by a desire to
enable improvements migration handling. As you suggest, the goal is that
the source QEMU be able to send a complete & reliable hardware description
to the destination QEMU during migration.It is getting closer, but we're
not there yet.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
prev parent reply other threads:[~2013-01-10 9:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 12:23 [Qemu-devel] KVM versions, machine types and failed migrations Vangelis Koukis
2013-01-09 13:10 ` Daniel P. Berrange
2013-01-09 13:27 ` [Qemu-devel] [okeanos-dev] " Vangelis Koukis
2013-01-10 9:43 ` Daniel P. Berrange [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130110094348.GB6021@redhat.com \
--to=berrange@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=okeanos-dev@lists.grnet.gr \
--cc=qemu-devel@nongnu.org \
--cc=synnefo-devel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).