5.9. Full Virtual Machine Restore

Summary
This procedure explains how to restore a full virtual machine backup.
  1. Create disks for restore
  2. Attach the disks for restore to the virtual appliance (Restore the data to it)
  3. Detach the disks from the virtual appliance.
  4. 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)
  5. 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:
  1. Create a disk to restore: POST the new disk : (Example)
     http://SERVER:PORT/api/disks/
    
  2. 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>
    
  3. 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>