|
4 | 4 |
|
5 | 5 | :_content-type: PROCEDURE
|
6 | 6 | [id="virt-creating-vm-snapshot-cli_{context}"]
|
7 |
| -= Creating an virtual machine snapshot in the CLI |
| 7 | += Creating a virtual machine snapshot in the CLI |
8 | 8 |
|
9 | 9 | You can create a virtual machine (VM) snapshot for an offline or online VM by creating a `VirtualMachineSnapshot` object. Kubevirt will coordinate with the QEMU guest agent to create a snapshot of the online VM.
|
10 | 10 |
|
@@ -89,40 +89,40 @@ $ oc describe vmsnapshot <my-vmsnapshot>
|
89 | 89 | apiVersion: snapshot.kubevirt.io/v1alpha1
|
90 | 90 | kind: VirtualMachineSnapshot
|
91 | 91 | metadata:
|
92 |
| -creationTimestamp: "2020-09-30T14:41:51Z" |
93 |
| -finalizers: |
94 |
| -- snapshot.kubevirt.io/vmsnapshot-protection |
95 |
| -generation: 5 |
96 |
| -name: mysnap |
97 |
| -namespace: default |
98 |
| -resourceVersion: "3897" |
99 |
| -selfLink: /apis/snapshot.kubevirt.io/v1alpha1/namespaces/default/virtualmachinesnapshots/my-vmsnapshot |
100 |
| -uid: 28eedf08-5d6a-42c1-969c-2eda58e2a78d |
| 92 | + creationTimestamp: "2020-09-30T14:41:51Z" |
| 93 | + finalizers: |
| 94 | + - snapshot.kubevirt.io/vmsnapshot-protection |
| 95 | + generation: 5 |
| 96 | + name: mysnap |
| 97 | + namespace: default |
| 98 | + resourceVersion: "3897" |
| 99 | + selfLink: /apis/snapshot.kubevirt.io/v1alpha1/namespaces/default/virtualmachinesnapshots/my-vmsnapshot |
| 100 | + uid: 28eedf08-5d6a-42c1-969c-2eda58e2a78d |
101 | 101 | spec:
|
102 |
| -source: |
103 |
| -apiGroup: kubevirt.io |
104 |
| -kind: VirtualMachine |
105 |
| -name: my-vm |
| 102 | + source: |
| 103 | + apiGroup: kubevirt.io |
| 104 | + kind: VirtualMachine |
| 105 | + name: my-vm |
106 | 106 | status:
|
107 |
| -conditions: |
| 107 | + conditions: |
108 | 108 | - lastProbeTime: null
|
109 |
| - lastTransitionTime: "2020-09-30T14:42:03Z" |
110 |
| - reason: Operation complete |
111 |
| - status: "False" <1> |
112 |
| - type: Progressing |
| 109 | + lastTransitionTime: "2020-09-30T14:42:03Z" |
| 110 | + reason: Operation complete |
| 111 | + status: "False" <1> |
| 112 | + type: Progressing |
113 | 113 | - lastProbeTime: null
|
114 |
| - lastTransitionTime: "2020-09-30T14:42:03Z" |
115 |
| - reason: Operation complete |
116 |
| - status: "True" <2> |
117 |
| - type: Ready |
118 |
| -creationTime: "2020-09-30T14:42:03Z" |
119 |
| -readyToUse: true <3> |
120 |
| -sourceUID: 355897f3-73a0-4ec4-83d3-3c2df9486f4f |
121 |
| -virtualMachineSnapshotContentName: vmsnapshot-content-28eedf08-5d6a-42c1-969c-2eda58e2a78d <4> |
| 114 | + lastTransitionTime: "2020-09-30T14:42:03Z" |
| 115 | + reason: Operation complete |
| 116 | + status: "True" <2> |
| 117 | + type: Ready |
| 118 | + creationTime: "2020-09-30T14:42:03Z" |
| 119 | + readyToUse: true <3> |
| 120 | + sourceUID: 355897f3-73a0-4ec4-83d3-3c2df9486f4f |
| 121 | + virtualMachineSnapshotContentName: vmsnapshot-content-28eedf08-5d6a-42c1-969c-2eda58e2a78d <4> |
122 | 122 | ----
|
123 | 123 | <1> The `status` field of the `Progressing` condition specifies if the snapshot is still being created.
|
124 | 124 | <2> The `status` field of the `Ready` condition specifies if the snapshot creation process is complete.
|
125 | 125 | <3> Specifies if the snapshot is ready to be used.
|
126 | 126 | <4> Specifies that the snapshot is bound to a `VirtualMachineSnapshotContent` object created by the snapshot controller.
|
127 | 127 |
|
128 |
| -. Check the `spec:volumeBackups` property of the `VirtualMachineSnapshotContent` resource to verify that the expected PVCs are included in the snapshot. |
| 128 | +. Check the `spec:volumeBackups` property of the `VirtualMachineSnapshotContent` resource to verify that the expected PVCs are included in the snapshot. |
0 commit comments