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"

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content