Standard recovery refers to a recovery method where the VM disk data must be recovered before the VM can be powered on and become usable. It is a time-consuming process.
The general workflow for standard recovery of a VM is as follows:
Prerequisites
The VM must be powered off.
Execution
(1)Restore the VM configuration. Use the VM creation OpenAPI to recover the VM configuration to a newly created VM, or use the VM editing OpenAPI to recover the VM configuration to another existing VM.
(2)Create VM backup resources with the resource_type parameter set to restore, and update the resources periodically.
(3)Write backup data to the virtual disk. The general processing workflow for each transport mode is as follows:
(A) NBDSSL (including NBD) transport mode: The third-party backup app calls SFVDDK to write backup data to the target VM disk.
(B) HotAdd transport mode (similar to the backup workflow):
a. Select a backup proxy VM that can access the target VM disk.
b. Start the backup proxy VM.
c. Hot-add the disk: Call the CreateVM disks API to hot-add the target VM disk to the backup proxy VM.
d. Write data: In the Guest OS of the backup proxy VM, the third-party backup app directly writes backup data to the hot-added disk (i.e., the target VM disk).
e. Delete the hot-added disk: Call the VM disks action API to remove the hot-added disk from the backup proxy VM.