You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/USER_GUIDE.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2312,17 +2312,31 @@ The `VirtualMachineRestore` resource is used to restore a virtual machine from a
2312
2312
- VirtualMachine - the main VM resource with the configuration from the snapshot.
2313
2313
- VirtualDisk - disks connected to the VM at the moment of snapshot creation.
2314
2314
- VirtualBlockDeviceAttachment - disk connections to the VM (if they existed in the original configuration).
2315
+
- VirtualMachineIPAddress — the IP address of the virtual machine (if the `keepIPAddress: Always` parameter was specified at the time of snapshot creation).
2315
2316
- Secret - secrets with cloud-init or sysprep settings (if they were involved in the original VM).
2316
2317
2317
2318
Important: resources are created only if they were present in the VM configuration at the time the snapshot was created. This ensures that an exact copy of the environment is restored, including all dependencies and settings.
2318
2319
2319
2320
#### Restore a virtual machine
2320
2321
2322
+
There are two modes used for restoring a virtual machine. They are defined by the restoreMode parameter of the VirtualMachineRestore resource:
2323
+
```yaml
2324
+
spec:
2325
+
restoreMode: Safe | Forced
2326
+
```
2327
+
`Safe` is used by default.
2328
+
2321
2329
{{< alert level="warning">}}
2322
-
To restore a virtual machine, you must delete its current configuration and all associated disks. This is because the restore process returns the virtual machine and its disks to the state that was fixed at the time the backup snapshot was created.
2330
+
To restore a virtual machinein`Safe` mode, you must delete its current configuration and all associated disks. This is because the restoration process returns the virtual machine and its disks to the state recorded at the snapshot's creation time.
2323
2331
{{< /alert >}}
2324
2332
2325
-
Example manifest for restoring a virtual machine from a snapshot:
2333
+
The `Forced` mode is used to bring an already existing virtual machine to the state at the time of the snapshot.
2334
+
2335
+
{{< alert level="warning" >}}
2336
+
`Forced` may disrupt the operation of the existing virtual machine because it will be stopped during restoration, and `VirtualDisks` and `VirtualMachineBlockDeviceAttachments` resources will be deleted for subsequent restoration.
2337
+
{{< /alert >}}
2338
+
2339
+
Example manifest for restoring a virtual machine from a snapshot in `Safe` mode:
0 commit comments