About Releases Build & Install Configure Blog
February 2014 November 2013 November 2012 December 2011 July 2011 January 2011 November 2010 August 2010 May 2010 April 2010 March 2010

The Blog

4 November 2012

It's been a long time since I wrote a blog entry, as we tend to discuss most things on the mailing list, but I wanted to talk a bit about the new VM snapshot facilities in xvp 1.15.0.

There have been a few requests for snapshots over the last couple of years, and I've been finally spurred into action by Julien Dary's recent contribution of code for xvpweb to handle reverting to existing snapshots. I've built on and extended this to include facilities for creating and deleting snapshots.

These features should be considered experimental at the moment. As far as I can tell they work (I've tested with XenServer 5.6 SP2, 6.0 and 6.1, as well as XCP 1.6 Beta 3), but the exact appearance and configuration may change in future versions, depending on feedback from you.

There is one new entry, Snapshots, in the right-button context menu, as shown here. Clicking pops up a window similar to this:

From here you can select any existing snapshot from the scrollable list, to revert to it or to delete it. To create a new snapshot, type its name into the box lower down and click the button. Currently, this supports creating disk snapshots only, not the quiesced (VSS-based) or live memory ones that can be created from XenCenter using paid editions of XenServer. Old versions of XenServer (5.5 and earlier) and older XCP do not implement revert-to-snapshot, so the revert operation will always fail for VMs hosted on these.

To police access to these facilities, a new snapshot operation is defined in the rights definition file. If you use custom rights definitions you should update your file as described in the manual page for xvprights.conf. The default setting requires the user to have all rights in order to manage snapshots, but you could use a custom rights definition to require e.g. control rights instead. If you want to disable the snapshot facilities completely, set snapshot to disabled in your custom xvprights.conf. Obviously, if you grant your users access to snapshotting, your storage requirements may grow considerably.

I can imagine some people will want variations on these features, and we can change them where there's a common requirement. If you want to heavily customise you can play with the source of snapshot.php, but be careful as you could end up writing code that unintentionally deletes VMs or virtual disks. I'd suggest discussing features via the mailing list rather than contributing a lot of code patches at this stage.