GNU/Linux ◆ xterm-256color ◆ bash 90 views

Example of backend storage using the default storage class that doesn’t support RWX filesystem mode.

List of commands:

kubectl get storageclasses

kubectl get storageprofile rook-ceph-block -ojsonpath={.status.claimPropertySets} | jq

kubectl get storageprofile nfs-csi -ojsonpath={.status.claimPropertySets} | jq

kubectl edit kubevirt kubevirt -n kubevirt # Add “vmStateStorageClass: nfs-csi” to configuration

cat vm1.yaml

kubectl create -f vm1.yaml

kubectl get pvc –no-headers

kubectl get vmi vm1 -ojsonpath={.status.conditions} | jq

kubectl edit kubevirt kubevirt -n kubevirt # Delete “vmStateStorageClass: nfs-csi”

kubectl create -f vm2.yaml

kubectl get pvc –no-headers

kubectl get vmi vm2 -ojsonpath={.status.conditions} | jq