qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH 0/3 v5] Live migration without shared storage
@ 2010-03-16 19:57 jz4
  0 siblings, 0 replies; 6+ messages in thread
From: jz4 @ 2010-03-16 19:57 UTC (permalink / raw)
  To: qemu-devel

[Qemu-devel] [PATCH 0/3 v5] Live migration without shared storage

I tested the live migration without shared storage for the patch of  
the block migration. It succeeds for several times but sometimes it  
fails. I used the qemu-kvm-0.12.3 and the kvm 2.6.33 module on the  
ubuntu latest version.

In the failure case, i can see the shell on the destination site  
showed the correct content for the migrated VM, but it just hanged  
there without any response to the mouse and the keyboard. I can see it  
prints "migration  completes" twice. Is it a bug or did I do anything  
wrong?

Another question is about the command line for the destination site.  
For memory
migration, i will start the vm based on the shared image. For block  
migration, there is no shared image. What i did is creating an empty  
image with the same format (e.g. raw or qcow2) as the source migrated  
VM. Is it correct or it doesn't matter which format it is in the  
destination site?

For the memory migration, it emphasizes that the path for the VM  
should be the same as the source path. But for the block migration, i  
change the destination path to a different one and it also works. Does  
that mean path is not important now?

The command line must be "migrate -d -b ..". If it is "-b -d", the  
qemu-monitor doesn't understand. Does that intend to be designed like  
this or will it be modified in the future?

Thanks!

-Jie

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH 0/3 v5] Live migration without shared storage
@ 2009-11-02 13:40 lirans
  2009-11-02 18:47 ` Avi Kivity
  2009-11-03  7:33 ` Liran Schour
  0 siblings, 2 replies; 6+ messages in thread
From: lirans @ 2009-11-02 13:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: Liran Schour

This series adds support for live migration without shared storage, means 
copy the storage while migrating. It was tested with KVM. Supports 2 ways 
to replicate the storage during migration:
1. Complete copy of storage to destination 
2. Assuming the storage is cow based, copy only the allocated 
data, time of the migration will be linear with the amount of allocated 
data (user responsibility to verify that the same backend file reside 
on src and destination).

Live migration will work as follows:
(qemu) migrate -d tcp:0:4444 # for ordinary live migration
(qemu) migrate -d blk tcp:0:4444 # for live migration with complete storage copy
(qemu) migrate -d blk inc tcp:0:4444 # for live migration with incremental storage copy, storage is cow based.

Changes from v4:
- Register block dirty tracking for each block device.
- Block.c will now manage a dirty bitmap per device once 
bdrv_set_dirty_tracking() is called. Bitmap is polled by the upper 
layer (block-migration.c).
- Global variabels moved to a global state structure allocated dynamically.
- Coding style issues.

Patch summary:

Makefile          |    1 +
block-migration.c |  558 +++++++++++++++++++++++++++++++++++++++++++++++++++++
block-migration.h |   29 +++
block.c           |   78 ++++++++-
block.h           |    8 +-
block_int.h       |    2 +
buffered_file.c   |   10 +-
hw/hw.h           |    9 +-
migration-exec.c  |    9 +-
migration-fd.c    |    7 +-
migration-tcp.c   |    7 +-
migration-unix.c  |    7 +-
migration.c       |   23 ++-
migration.h       |   20 ++-
monitor.c         |   36 +++-
qemu-monitor.hx   |   19 ++-
savevm.c          |   62 +++++--
sysemu.h          |    2 +-
vl.c              |    9 +-
19 files changed, 841 insertions(+), 55 deletions(-)

Signed-off-by: Liran Schour <lirans@il.ibm.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-16 19:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 19:57 [Qemu-devel] [PATCH 0/3 v5] Live migration without shared storage jz4
  -- strict thread matches above, loose matches on Subject: below --
2009-11-02 13:40 lirans
2009-11-02 18:47 ` Avi Kivity
2009-11-03  9:40   ` Liran Schour
2009-11-03 10:38     ` Avi Kivity
2009-11-03  7:33 ` Liran Schour

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).