Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit b35e9f6

Browse files
committed
fix: import containerdisk in example-vm
An example VM will import the ContainerDisk if the VM is not running when deployed. Signed-off-by: Ben Oukhanov <[email protected]>
1 parent 8be0749 commit b35e9f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/example-vm.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ spec:
99
- metadata:
1010
creationTimestamp: null
1111
name: example-dv
12+
annotations:
13+
# ContainerDisk will be imported without starting the
14+
# Virtual Machine (VM). Otherwise, VM should be started
15+
# to import the ContainerDisk.
16+
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
17+
cdi.kubevirt.io/storage.deleteAfterCompletion: "false"
1218
spec:
1319
storage:
1420
accessModes:
@@ -19,7 +25,7 @@ spec:
1925
source:
2026
registry:
2127
url: docker://quay.io/containerdisks/fedora:38
22-
running: true
28+
running: false
2329
template:
2430
metadata:
2531
labels:

0 commit comments

Comments
 (0)