apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
creationTimestamp: null
name: vm-rhel-datavolume (1)
labels:
kubevirt.io/vm: vm-rhel-datavolume
spec:
dataVolumeTemplates:
- metadata:
creationTimestamp: null
name: rhel-dv (2)
spec:
sourceRef:
kind: DataSource
name: rhel9
namespace: openshift-virtualization-os-images
storage:
resources:
requests:
storage: 10Gi (3)
instancetype:
name: u1.small (4)
preference:
inferFromVolume: datavolumedisk1
runStrategy: Always
template:
metadata:
creationTimestamp: null
labels:
kubevirt.io/vm: vm-rhel-datavolume
spec:
domain:
devices: {}
resources: {}
terminationGracePeriodSeconds: 180
volumes:
- dataVolume:
name: rhel-dv
name: datavolumedisk1
status: {}