Skip to main content

Michael Schmidt Michael Schmidt

VMFS vs NFS After vSphere: What Decides Block or File for VMs on OpenShift

Oct 29, 2026  |  7 min read

Last edited: Oct 30, 2026

VMFS vs NFS After vSphere: What Decides Block or File for VMs on OpenShift

After you leave VMware® vSphere, the VMFS-or-NFS choice becomes a choice per VM disk on Red Hat® OpenShift® Virtualization 4.22 and upstream KubeVirt. The volume mode of the PersistentVolumeClaim (PVC) and the protocol of the CSI driver behind its StorageClass decide block or file, and its access mode decides how many nodes can mount the disk read-write.

What replaces the datastore object itself is covered in what replaces the VMware datastore, and what thin and thick disks become in thin vs thick provisioning on Kubernetes.

What VMFS vs NFS decided on vSphere

On vSphere, the choice between VMFS and NFS decided who owned the filesystem under your VMs and which vSphere features a VM could use. Broadcom’s vSphere 8.0 documentation describes VMFS as the format used for datastores on block storage devices. As a cluster filesystem, it lets multiple ESXi hosts access the same datastore concurrently, and on-disk locking stops two hosts from accessing the same VM at the same time. An NFS datastore is a volume that a NAS server exports and the NFS client built into ESXi mounts, and you do not format it with VMFS.

Both types supported vMotion, vSphere HA and DRS. They differed on two features: Broadcom’s feature table lists raw device mapping (RDM) and VM clusters as supported on Fibre Channel and iSCSI with VMFS, and not supported on NAS over NFS. In that table, a VM that needed an RDM or a VM cluster could not use an NFS datastore.

The criteria that replace the datastore choice

On the destination, you decide four things for each VM disk instead of a datastore type.

  1. How the guest disk is presented. With volumeMode: Block, a block CSI driver presents a raw block device on the node, the VM gets that device, and the guest puts its own file system on it. With volumeMode: Filesystem, KubeVirt expects the disk as a raw-format file named disk.img at the root of the volume’s filesystem. Red Hat’s OpenShift Virtualization 4.22 documentation says Block performs significantly better, because Filesystem mode adds storage layers that VM disk storage does not need.
  2. Access mode. ReadWriteOnce (RWO) means one node can mount the volume read-write. ReadWriteMany (RWX) means many nodes can.
  3. Who coordinates writers. No VMFS-style on-disk lock sits under a PVC, and Kubernetes states that access modes do not enforce write protection once a volume is mounted. For a disk shared by several VMs, KubeVirt’s shareable option tells libvirt and QEMU not to create a lock for the writes. The guests then need a clustered filesystem or application-level synchronization.
  4. Protocol and data path. A block CSI driver talks a block protocol from each node, for example NVMe/TCP or iSCSI. An NFS CSI driver mounts a share from an NFS server instead, so reads and writes go through the NFS server and the file system of its export.
Block mode
Guest file system
Guest
Raw block device
Block CSI driver
Filesystem mode on NFS
Guest file system
Guest
disk.img file
KubeVirt
Subdirectory of the share
NFS CSI driver
File system of the export
NFS server
Inside the VMPlatform and storage
Figure 1: layers under the guest disk in each volume mode

How simplyblock serves a Block-mode volume

Simplyblock gives a Block-mode VM disk a raw block device, with no host filesystem between the guest and the volume. Set volumeMode: Block on the claim, the DataVolume or the storage map entry to get that raw device.

Each volume is a namespace in an NVMe-oF subsystem, served over NVMe/TCP or RoCEv2. The node running the VM reaches it through NVMe multipathing: several paths from that node to several storage nodes, with a local loopback as the primary path where possible. The OpenShift storage page covers simplyblock on the platform.

Three destination shapes compared

A migrated VM disk ends up in one of three shapes. Which ones you can use depends on the CSI driver. The upstream community Kubernetes NFS CSI driver (v4.13.6) needs an existing NFSv3 or NFSv4 server, provisions each volume as a subdirectory of the share, and rejects requests for block volumes. An NFS share therefore gives you Filesystem mode only, and a claim that asks for Block mode is refused. On OpenShift, check which CSI driver your NAS vendor supports.

Table 1: the three shapes a migrated VM disk can take, against the four criteria.

CriterionRWX Block on a block driverRWX Filesystem on an NFS driverRWO, either mode
Closest vSphere habitVMFS on a shared LUNNFS datastoreVMFS on host-local storage (no shared datastore)
Guest disk pathRaw block devicedisk.img on the shareRaw device or disk.img
Live migrationYesYesNo
Who coordinates writersThe guests, for a shareable diskThe guests, for a shareable diskNot shared across nodes
Data pathBlock protocol from each nodeThrough the NFS serverBlock protocol or local disk
What to confirmThe driver supports RWX with volumeMode: BlockServer capacity and throughput for every VM on itThat restart instead of migration is acceptable

Choose RWX Block when the VM must live migrate and its disk performance matters. Choose RWX Filesystem on NFS when the VMs tolerate Filesystem mode and a single NFS server in the data path. If that single server is your concern, ask your NAS vendor whether its CSI driver uses parallel NFS (pNFS, an optional part of NFSv4.1), which lets clients reach the storage devices directly instead of going through the server. Choose RWO when a VM can stop and start on another node during maintenance.

What live migration needs from the volume

A KubeVirt VM can live migrate only if every PVC it uses has the ReadWriteMany access mode, as the KubeVirt user guide states. KubeVirt computes this when the VM instance starts, records it as the LiveMigratable condition, and rejects a migration request for an instance that is not live-migratable.

Check it per VM group, in this order:

  1. Before the migration plan runs, set each group’s shape in the storage map of the Migration Toolkit for Virtualization (MTV). Each destination entry in the Forklift StorageMap API names a StorageClass and can also set volumeMode and accessMode. A DataVolume that leaves those fields out takes them from the StorageProfile that the Containerized Data Importer (CDI) creates for each StorageClass. CDI fills that profile only for provisioners it knows. For any other driver the profile is empty until an administrator adds claimPropertySets, and CDI cannot create the PVC for a DataVolume that sets no access mode.

  2. After import, read the condition on the running instance. Example command, with your own VM name:

    Terminal window
    kubectl get vmi my-vm -o jsonpath='{.status.conditions[?(@.type=="LiveMigratable")].status}'

    True means the instance can live migrate. If it reads False, check the access mode of each disk first, since KubeVirt bases the condition largely on it.

  3. Test one migration with virtctl migrate my-vm before you depend on node drains for maintenance.

Moving a VM’s data between storage classes is a different operation, covered in what replaces vMotion and Storage vMotion.

You may also like:

Ephemeral Storage in Kubernetes: Why It Silently Breaks Stateful Workloads
Ephemeral Storage in Kubernetes: Why It Silently Breaks Stateful Workloads

emptyDir and other ephemeral storage look fast and simple, until a pod eviction or node failure erases the data. Here is what actually happens, and how NVMe/TCP persistent volumes give you the same latency without the risk.

NVMe/TCP vs NVMe/RoCE for Kubernetes Storage: Choosing the Right Fabric
NVMe/TCP vs NVMe/RoCE for Kubernetes Storage: Choosing the Right Fabric

NVMe over Fabrics gives Kubernetes clusters low-latency block storage over the network. The transport you pick, TCP or RoCE, determines your latency floor, infrastructure cost, and operational complexity. Here is how to choose.

Kubernetes Storage 201: Concepts and Practical Examples
Kubernetes Storage 201: Concepts and Practical Examples

Kubernetes storage is a sophisticated ecosystem designed to address the complex data management needs of containerized applications. At its core, Kubernetes storage provides a flexible mechanism to…