XenServer Create & Revert Snapshot from Shell




This post if to demonstrate howto take snapshot & revert using shell.

Take Snapshot

xe vm-snapshot vm="VM-NAME"  new-name-label=LatestSnap new-name-description="backup snapshot"

Revert Snapshot

#get list of existing snapshots, to find uuid of the snapshot you wish to revert.

xe snapshot-list
uuid ( RO)                     : a0974e1f-e740-f1ad-760f-1240e2104385
               name-label ( RW): 2011-12-01
         name-description ( RW): 
    is-snapshot-from-vmpp ( RO): false
 
 
uuid ( RO)                     : db61ebbe-f3cd-1c3e-f0a1-847a91d0df91
               name-label ( RW): AfterHDDResize
         name-description ( RW): 
    is-snapshot-from-vmpp ( RO): false

use snapshot-revert. here we are reverting backto snap “AfterHDDResize”

xe snapshot-revert uuid=db61ebbe-f3cd-1c3e-f0a1-847a91d0df91


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.
Read 240 articles by

Trending Posts