[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Feature request: snapshot again


  • To: Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Alain Barthe <ab266061@xxxxxxxxx>
  • Date: Mon, 24 Aug 2009 16:28:32 +0200
  • Cc:
  • Delivery-date: Mon, 24 Aug 2009 07:29:25 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DfnFA1HyBP1gmHtX8MD284IpPylbDJO0L5JM/FGAcbho7ljCemdWCHQ2Uxp3wlo7M0 tu3yAIvOdADuwB8DIJEMyImlQ8vxcCHh2SxGS3L4S4shOxoYXe8N8yyaLpw2g9B/jRxq Mosl1fSWmrqVya2PkIMXUZoJgfoTfP0KxPedg=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello everybody,

Many requests for Xen are: we need a snapshot mechanism like VMWare. Xen does not provide the feature that allows this kind of snapshot.

With VMWare snapshot, you can do a snapshot on an alive VM, just by clicking a button or issuing a command. The VM is kept alive as nothing happened.
When a VM is reverted from a snapshot, it runs at the same state it was when the snapshot occured (except network connections, I suppose).

To do this, VMWare takes a snapshot of both the memory and the disks. That is the point missed by xen: there is no way to synchronise a kind of suspend with a disk snapshot.

This should be easy to implement, by reusing the live migration feature. We need to have 2 new xm commands:

- snap_and_pause: this function dump the memory of the running VM in a file, using the way the live migration does (instead of sending data through the network, they are stored in a file). After that, the VM is left in a paused state.

- start_from_snap: a VM is created from a file previously created by the previous command, as a VM magically appears on the target dom0 when you live-migrate a VM.

With those 2 commands, the snapshot becomes trivial to script:
- run "snap_and_pause" on the VM
- take a disk snapshot by the appropiate way depending your setup (LVM snapshots, etc)
- unpause the VM

To revert to a snapshot:
- switch the disk snapshot with the original
- run "start_from_snap".

What are your opinions about this? Is it feasable? Have I missed some point?

Several month ago, I heard about a patch on the live migration function to store the memory in a file instead of sending it through the network. I didn't retreive the thread.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.