|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] regarding xen
> 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
|
|
|
|
|