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

Re: [Xen-users] regarding xen


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Joost Roeleveld" <joost@xxxxxxxxxxxxxxx>
  • Date: Fri, 11 Jan 2008 10:07:11 -0000 (GMT)
  • Delivery-date: Fri, 11 Jan 2008 02:07:41 -0800
  • Importance: Normal
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

> hi
>
> i am new to xen,  i have created xen set up using sles10 sp1.
> i am trying to get any api for taking snapshot of the virtual
> machine (virual disk ) in the host machine.
> Is there any snapshot supported API, which i can use for
> taking snapshot of the virtual disk?
>
> please help me in this regards. i have tried a lot for getting such api,
> but i could not.
>
> Thanks and regards
> namitha

Hi Namitha,

There is no "snapshot" functionality in Xen like you have in other
products like VMWare.
You can, however, 'emulate' this behaviour with the following steps:

1) xm save <domain> <memory_snapshot_file>
2) Copy <memory_snapshot_file> to the snapshot-location
3) create a snapshot of the filesystems using LVM
4) xm restore <memory_snapshot_file>
5) dd if=<lvmsnapshot1> of=<filesystem_snapshot_file1>
6) Repeat (5) for all the filesystems
7) remove the LVM snapshots

To restore back to a previous snapshot, stop the domain, restore the
filesystems and restore the domain using "xm restore ...."

For everyone else, please correct me if there is a simpler method.

Kind regards,

Joost Roeleveld


_______________________________________________
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®.