All of lore.kernel.org
 help / color / mirror / Atom feed
From: Uri Lublin <uri@il.qumranet.com>
To: Sukanto Ghosh <sukanto.cse.iitb@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Automating Live Migration
Date: Wed, 27 Aug 2008 10:56:47 +0300	[thread overview]
Message-ID: <48B508BF.6020604@il.qumranet.com> (raw)
In-Reply-To: <a85e78f50808262338u6c01fc7ej7c2b873844bcd1da@mail.gmail.com>

Sukanto Ghosh wrote:
> Hi,
> 
> What needs to be done in case I want to automate the live migration of
> the guests (e.g. for load balancing) ?
> 
> I want to have some programs running on multiple nodes, which will
> monitor the load on the respective hosts and in case of imbalance can
> automatically migrate a guest from one host to another.
> 
> What is the interface by which this migration request/command can be
> sent to the particular kvm-userspace (at source host) ?
> 
> Can this be done using userspace programs or we need kernel modules ?
> 
> Getting the destination ready for incoming migration is I guess
> straightforward.
> 
> 


Please take a look at http://kvm.qumranet.com/kvmwiki/Migration

Basically you need to be able to send qemu monitor commands to your kvm-qemu. 
For example redirect the monitor to a unix domain socket (e.g. with -monitor 
/tmp/vmid.monitor) and connect your program to that socket. When you want to 
migrate that VM issue a migrate monitor command, and checkout the result (info 
migration).

Uri.

  reply	other threads:[~2008-08-27  7:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27  6:38 Automating Live Migration Sukanto Ghosh
2008-08-27  7:56 ` Uri Lublin [this message]
2008-08-27  8:47   ` Sukanto Ghosh

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=48B508BF.6020604@il.qumranet.com \
    --to=uri@il.qumranet.com \
    --cc=kvm@vger.kernel.org \
    --cc=sukanto.cse.iitb@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.