Why creating VM is failing with error "admission webhook "datavolume-validate.cdi.kubevirt.io" denied the request: Data volume should have either Source or SourceRef"
Issue
- The VM startup is failing with the error below if
Sysprep
data is added while creating the Windows virtual machine:
Error encountered while creating DataVolumes: Failed to create
DataVolume: admission webhook "datavolume-validate.cdi.kubevirt.io"
denied the request: Data volume should have either Source or SourceRef
Environment
- OpenShift Virtualization 4.10.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.