qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: xuanmao_001 <xuanmao_001@163.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	qemu-discuss <qemu-discuss@nongnu.org>
Subject: Re: [Qemu-devel] qemu-1.7.0 vm migration with nbd usage
Date: Fri, 14 Feb 2014 16:09:02 +0100	[thread overview]
Message-ID: <20140214150902.GN17391@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <201402121635195912042@163.com>

On Wed, Feb 12, 2014 at 04:35:19PM +0800, xuanmao_001 wrote:
> Hi, Is there a document describe vm migration with nbd server or any example about it?

NBD supports migration because it is a network storage protocol.

Imagine you have a "source" host and a "destination" host.  The source
host is currently running the guest.  The destination host is the live
migration target.

There is also an NBD server host that is independent of the source and
destination hosts.

Launch QEMU on the destination host with the same command-line as the
source host, but append "-incoming tcp::1234".

Start live migration using the "migrate" command in the QEMU monitor on
the source host.  Live migration will run until it completes.

Finally, you should see your VM has migrated to the destination host.
Disk I/O will still use the NBD server host.

So there's nothing really special here.  NBD is just considered shared
storage.

Stefan

      reply	other threads:[~2014-02-14 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12  8:35 [Qemu-devel] qemu-1.7.0 vm migration with nbd usage xuanmao_001
2014-02-14 15:09 ` Stefan Hajnoczi [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=20140214150902.GN17391@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=xuanmao_001@163.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).