OpenShift Virtualization: Failed to create VM on OpenShift Virtualization UI if no default StorageClass exists in OCP cluster
Resumen: The VM cannot be created via OpenShift Virtualization if no default StorageClass exists in OCP cluster. Because non-default StorageClass cannot be selected for rootdisk or for the user added disks. ...
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Síntomas
Failed to create new VM via OpenShift Virtualization UI if no default StorageClass exists in OCP cluster.
Causa
It is an issue of OpenShift Virtualization feature.
For the VM rootdisk and user added disks, they can only select the default StorageClass in the OCP cluster.
Non-default StorageClass cannot be selected.
For the VM rootdisk and user added disks, they can only select the default StorageClass in the OCP cluster.
Non-default StorageClass cannot be selected.
Resolución
There are two options to workaround this issue:
Example of a default StorageClass:
- Create a default StorageClass with the annotation "storageclass.kubernetes.io/is-default-class: 'true'".
- Modify the existing StorageClass mcp-pf-fs-storageclass, set it to default StorageClass
Example of a default StorageClass:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: my-sc-1
annotations:
storageclass.kubernetes.io/is-default-class: 'true'
provisioner: csi-vxflexos.dellemc.com
parameters:
csi.storage.k8s.io/fstype: ext4
storagepool: SP-SW_NVME-1
systemID: efc2f2902330a60f
reclaimPolicy: Delete
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumerProductos afectados
APEX Cloud Platform for Red Hat OpenShiftPropiedades del artículo
Número del artículo: 000217665
Tipo de artículo: Solution
Última modificación: 20 feb. 2026
Versión: 3
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.