OpenShift Virtualization: Failed to create VM on OpenShift Virtualization UI if no default StorageClass exists in OCP cluster

Podsumowanie: 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. ...

Ten artykuł dotyczy Ten artykuł nie dotyczy Ten artykuł nie jest powiązany z żadnym konkretnym produktem. Nie wszystkie wersje produktu zostały zidentyfikowane w tym artykule.

Objawy

Failed to create new VM via OpenShift Virtualization UI if no default StorageClass exists in OCP cluster.

Przyczyna

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.

Rozwiązanie

There are two options to workaround this issue:
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: WaitForFirstConsumer

Produkty, których dotyczy problem

APEX Cloud Platform for Red Hat OpenShift
Właściwości artykułu
Numer artykułu: 000217665
Typ artykułu: Solution
Ostatnia modyfikacja: 20 lut 2026
Wersja:  3
Znajdź odpowiedzi na swoje pytania u innych użytkowników produktów Dell
Usługi pomocy technicznej
Sprawdź, czy Twoje urządzenie jest objęte usługą pomocy technicznej.