VMware vSphere

 View Only
  • 1.  virtual machine restore to original state

    Posted Jul 27, 2012 05:58 AM

    For example I have five (5) virtual machines.  These are assigned to different users and do their stuff there.  Overtime it gets dirty.  Is there a way to restore it to the original state every "x" number of days automatically?

    Using ESXi 5.  THanks.



  • 2.  RE: virtual machine restore to original state

    Posted Jul 27, 2012 06:53 AM

    sure

    start with a main image.

    create snapshot

    let users work on the vm

    delete snapshot.

    create snapshot again.

    use power shell to script it out and connect to the vcenter every so often as you please.



  • 3.  RE: virtual machine restore to original state

    Posted Jul 27, 2012 07:10 AM

    Oh ok, using power shell.

    is there a GUI-based if none then I guess i have to learn how to do it. :smileyhappy:

    thanks!



  • 4.  RE: virtual machine restore to original state

    Posted Jul 27, 2012 08:15 AM

    Hi,

    You could set the disks to be nonpersistant - that means they will lose any changes made since the last power cycle. Have a look at this for more info: http://www.vspecialist.co.uk/non-persistent-disks-with-vms/

    You could then use a scheduled task to power off/restart the VMs overnight.

    Thanks



  • 5.  RE: virtual machine restore to original state

    Posted Jul 27, 2012 09:49 AM

    Thanks.  I think this was the feature mentioned to me when i attended the workshop few days ago.

    I'll check the link you posted.

    Thanks.