5.9. Full Virtual Machine Restore
Summary
This procedure explains how to restore a full virtual machine backup.
- Create disks for restore
- Attach the disks for restore to the virtual appliance (Restore the data to it)
- Detach the disks from the virtual appliance.
- Create a vm using the configuration that was saved as part of the backup flow - (added capability to Red Hat Enterprise Virtualization Manager as part of the Backup API)
- Attach the restored disks to the created vm.
Result
You have restored a full virtual machine backup.
Here is an example of the act of restoring a virtual machine from a backup:
- Create a disk to restore: POST the new disk : (Example)
http://SERVER:PORT/api/disks/
- Attach the disk to the virtual appliance: POST the copied disk with the disk id :
http://SERVER:PORT/api/vms/GUID/disks/ <disk id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"> </disk>
- After copying the data from the disk detach the disk snapshot from the VM using the REST with the following parameters (Example):
Method = DELETE URL indicates to the specific disk in the VM: http://SERVER:PORT/api/vms/GUID/disks/GUID Body=<action><detach>true</detach></action>