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
The snapshot controller creates a `VirtualMachineSnapshotContent` object, binds it to the `VirtualMachineSnapshot`, and updates the `status` and `readyToUse` fields of the `VirtualMachineSnapshot` object.
42
62
43
-
. Optional: If you are taking an online snapshot, you can use the `wait` command and monitor the status of the snapshot:
63
+
.Verification
64
+
65
+
. Optional: During the snapshot creation process, you can use the `wait` command to monitor the status of the snapshot and wait until it is ready for use:
* `InProgress` - The online snapshot operation is still in progress.
53
-
* `Succeeded` - The online snapshot operation completed successfully.
54
-
* `Failed` - The online snapshot operaton failed.
74
+
* `InProgress` - The snapshot operation is still in progress.
75
+
* `Succeeded` - The snapshot operation completed successfully.
76
+
* `Failed` - The snapshot operaton failed.
55
77
+
56
78
[NOTE]
57
79
====
@@ -64,8 +86,6 @@ To set no deadline, you can specify `0`, though this is generally not recommende
64
86
If you do not specify a unit of time such as `m` or `s`, the default is seconds (`s`).
65
87
====
66
88
67
-
.Verification
68
-
69
89
. Verify that the `VirtualMachineSnapshot` object is created and bound with `VirtualMachineSnapshotContent` and that the `readyToUse` flag is set to `true`:
<1> The `status` field of the `Progressing` condition specifies if the snapshot is still being created.
114
143
<2> The `status` field of the `Ready` condition specifies if the snapshot creation process is complete.
115
144
<3> Specifies if the snapshot is ready to be used.
116
145
<4> Specifies that the snapshot is bound to a `VirtualMachineSnapshotContent` object created by the snapshot controller.
146
+
<5> Specifies additional information about the snapshot, such as whether it is an online snapshot, or whether it was created with QEMU guest agent running.
147
+
<6> Lists the storage volumes that are part of the snapshot, as well as their parameters.
117
148
118
-
. Check the `spec:volumeBackups` property of the `VirtualMachineSnapshotContent` resource to verify that the expected PVCs are included in the snapshot.
149
+
. Check the `includedVolumes` section in the snapshot description to verify that the expected PVCs are included in the snapshot.
The `qemu-guest-agent` is widely available and available by default in {op-system-base-full} virtual machines (VMs). Install the agent and start the service.
10
+
The `qemu-guest-agent` is available by default in {op-system-base-full} virtual machines (VMs)
11
11
12
-
[NOTE]
13
-
====
14
-
To create snapshots of an online (Running state) VM with the highest integrity, install the QEMU guest agent.
12
+
To create snapshots of a VM in the `Running` state with the highest integrity, install the QEMU guest agent.
15
13
16
-
The QEMU guest agent takes a consistent snapshot by attempting to quiesce the VM file system as much as possible, depending on the system workload. This ensures that in-flight I/O is written to the disk before the snapshot is taken. If the guest agent is not present, quiescing is not possible and a best-effort snapshot is taken. The conditions under which the snapshot was taken are reflected in the snapshot indications that are displayed in the web console or CLI.
17
-
====
14
+
The QEMU guest agent takes a consistent snapshot by attempting to quiesce the VM file system. This ensures that in-flight I/O is written to the disk before the snapshot is taken. If the guest agent is not present, quiescing is not possible and a best-effort snapshot is taken.
15
+
16
+
The conditions under which a snapshot is taken are reflected in the snapshot indications that are displayed in the web console or CLI. If these conditions do not meet your requirements, try creating the snapshot again, or use an offline snapshot
Copy file name to clipboardExpand all lines: modules/virt-installing-qemu-guest-agent-on-windows-vm.adoc
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,13 @@
9
9
10
10
For Windows virtual machines (VMs), the QEMU guest agent is included in the VirtIO drivers. You can install the drivers during a Windows installation or on an existing Windows VM.
11
11
12
-
[NOTE]
13
-
====
14
-
To create snapshots of an online (Running state) VM with the highest integrity, install the QEMU guest agent.
12
+
To create snapshots of a VM in the `Running` state with the highest integrity, install the QEMU guest agent.
15
13
16
-
The QEMU guest agent takes a consistent snapshot by attempting to quiesce the VM file system as much as possible, depending on the system workload. This ensures that in-flight I/O is written to the disk before the snapshot is taken. If the guest agent is not present, quiescing is not possible and a best-effort snapshot is taken. The conditions under which the snapshot was taken are reflected in the snapshot indications that are displayed in the web console or CLI.
17
-
====
14
+
The QEMU guest agent takes a consistent snapshot by attempting to quiesce the VM file system. This ensures that in-flight I/O is written to the disk before the snapshot is taken. If the guest agent is not present, quiescing is not possible and a best-effort snapshot is taken.
15
+
16
+
Note that in a Windows guest operating system, quiescing also requires the Volume Shadow Copy Service (VSS). Therefore, before you create a snapshot, ensure that VSS is enabled on the VM as well.
17
+
18
+
The conditions under which a snapshot is taken are reflected in the snapshot indications that are displayed in the web console or CLI. If these conditions do not meet your requirements, try creating the snapshot again or use an offline snapshot.
Copy file name to clipboardExpand all lines: modules/virt-restoring-vm-from-snapshot-cli.adoc
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,12 @@ You can restore an existing virtual machine (VM) to a previous configuration by
12
12
13
13
* Power down the VM you want to restore.
14
14
15
+
* Optional: Adjust what happens if the target VM is not fully stopped (_ready_). To do so, set the `targetReadinessPolicy` parameter in the `vmrestore` YAML configuration to one of the following values:
16
+
**`FailImmediate` - The restore process fails immediately if the VM is not ready.
17
+
**`StopTarget` - If the VM is not ready, it gets stopped, and the restore process starts.
18
+
**`WaitGracePeriod 5` - The restore process waits for a set amount of time, in minutes, for the VM to be ready. This is the default setting, with the default value set to 5 minutes.
19
+
**`WaitEventually` - The restore process waits indefinitely for the VM to be ready.
20
+
15
21
.Procedure
16
22
17
23
. Create a YAML file to define a `VirtualMachineRestore` object that specifies the name of the VM you want to restore and the name of the snapshot to be used as the source as in the following example:
* Any cloud storage provider with the Container Storage Interface (CSI) driver that supports the Kubernetes Volume Snapshot API
18
18
endif::openshift-rosa,openshift-dedicated[]
19
19
20
-
Online snapshots have a default time deadline of five minutes (`5m`) that can be changed, if needed.
20
+
To create snapshots of a VM in the `Running` state with the highest integrity, install the QEMU guest agent if it is not included with your operating system. The QEMU guest agent is included with the default Red{nbsp}Hat templates.
21
21
22
22
[IMPORTANT]
23
23
====
24
24
Online snapshots are supported for virtual machines that have hot plugged virtual disks. However, hot plugged disks that are not in the virtual machine specification are not included in the snapshot.
25
25
====
26
26
27
-
To create snapshots of an online (Running state) VM with the highest integrity, install the QEMU guest agent if it is not included with your operating system. The QEMU guest agent is included with the default Red Hat templates.
27
+
The QEMU guest agent takes a consistent snapshot by attempting to quiesce the VM file system. This ensures that in-flight I/O is written to the disk before the snapshot is taken. If the guest agent is not present, quiescing is not possible and a best-effort snapshot is taken.
28
28
29
-
The QEMU guest agent takes a consistent snapshot by attempting to quiesce the VM file system as much as possible, depending on the system workload. This ensures that in-flight I/O is written to the disk before the snapshot is taken. If the guest agent is not present, quiescing is not possible and a best-effort snapshot is taken. The conditions under which the snapshot was taken are reflected in the snapshot indications that are displayed in the web console or CLI.
29
+
The conditions under which a snapshot is taken are reflected in the snapshot indications that are displayed inthe web console or CLI. If these conditions do not meet your requirements, try creating the snapshot again or use an offline snapshot
0 commit comments