In last post of this series Virtual Machine Backup we had a look into how to configure Data Protection Service on a Virtual Datacenter and how to take backup of a virtual machine.
In this post we will learn how to recover a VM from the backup.
To learn more about DPS I would recommend reading first 2 posts of this series from below links
Let’s jump into lab now and see how restore works within DPS.
1: Login to vCloud Air and Navigate to Data Protection tab and select any VM on which you have previously taken backup.
The DPS dashboard will show how many restore points are available for this VM and how much disk space it is consuming on data protection storage.
2: Clicking on the restore point will bring up a new window which will list the details of restore points available.
Selecting anyone of the restore points will highlights additional options for recovery i.e Either Restore as New vApp (Out of place restore) or Restore vApp In-place (In-place Restore). We have discussed about these 2 modes in the Introduction post of this series.
3: Let’s delete our original virtual machine now by navigating to Virtual machines tab and selecting delete option by clicking on the arrow button available on extreme right corner.
4: Wait for the portal confirmation about delete VM job.
5: To restore the deleted VM, navigate to Deleted vApps option within Data Protection page.
You will see the list of all those VM’s which have been deleted from your VDC. Since this is my lab environment so I have purposefully deleted only one VM for purpose of demonstrations.
6: To restore the VM, click on the available restore point and it will bring a new window with list of the restore points.
Notice that In-place restore option is not available anymore on the restore points because we have deleted the original VM. This option is available when Original VM is intact and you want to restore the backup in the same VM instead of creating a new one.
Click on Restore as New vApp to start the restoration process.
7: You will be asked for in which VDC you want to restore the VM (in case you have more than one VDC protected by DPS). Also you have to provide a name for the restored vApp.
For restore DPS will ask you whether you want to restore entire vApp of individual virtual machines from the vApp. In my lab I have only one VM in my vApp so I selected Entire vApp option.
Hit restore button to start Restore job.
8: Portal will display a message regarding restore job has been kicked off.
9: Once the restore job is completed, vCloud Air portal is kind enough to let you know about that.
10: If you now navigate to Virtual machines tab again, you can see the restored VM listed there. This VM will be in powered-off state.
Also note that on the restored vApp, DPS will be disabled because DPS do not know this is the same vApp which was getting backed up before and was deleted.
You can power-on the VM from here and verify things.
I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing. Be sociable