public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Lalancette <clalance@redhat.com>
To: Jean-Pierre Dion <jean-pierre.dion@bull.net>
Cc: kvm@vger.kernel.org, Laurent Vivier <laurent.vivier@bull.net>
Subject: Re: Migrating Vm's from one machine to another...and back
Date: Mon, 11 Aug 2008 19:01:26 +0200	[thread overview]
Message-ID: <48A07066.9000108@redhat.com> (raw)
In-Reply-To: <48A05869.60706@bull.net>

Jean-Pierre Dion wrote:
> Hi,
> 
> I made some VM migrations between several machines
> (Intel-Intel and Intel-AMD) and when one VM has been
> migrated onto a second machine, I cannot put it
> back on the first one. I talked with Laurent and it
> seems that there is no way (or no obvious one)
> to do that.
> 
> This could be useful when doing some tasks (load
> balancing...).
> 
> Is it an item that is interesting enough to be done ?
> And does anyone have some idea on how to do that ?

Hm, this seems to work for me, in combination with my recently posted "Implement
tcp nowait option" patch.  Basically you start the guest on machine A like
normal.  Then you start the "container" on machine B with the -incoming flags.
Now you migrate the guest over to machine B (I assume you've gotten this far).
Now, you kill the container on machine A (since the running guest is on B now),
and restart it with -incoming.  Now you migrate back from B to A, and it all
works out.

You can actually probably get rid of one of these steps by starting the machine
on machine A in the first place with -S -incoming tcp://0:4444,nowait, and then
running "cont" in the monitor.  In this case, the machine is already running,
and *also* listening for incoming migrate requests.  Now you do exactly the same
on machine B, and you should be able to migrate back and forth between them at will.

Chris Lalancette

  reply	other threads:[~2008-08-11 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-11 15:19 Migrating Vm's from one machine to another...and back Jean-Pierre Dion
2008-08-11 17:01 ` Chris Lalancette [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-08-19 20:21 Jean-Pierre Dion 

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=48A07066.9000108@redhat.com \
    --to=clalance@redhat.com \
    --cc=jean-pierre.dion@bull.net \
    --cc=kvm@vger.kernel.org \
    --cc=laurent.vivier@bull.net \
    /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