Pcornel
Virtualization · Virtual Storage

File Storage

Cheat sheet · https://pcornel.dk/topic.php?topic=3505

Back to the Topic

Answer

File Storage backs virtual disks with files stored in a host-mounted or hypervisor-accessed filesystem or network file share, with the file layer mediating allocation, locking and metadata.

Remember

  • A mounted filesystem/share does not prove the virtual disk file is writable or lockable by the hypervisor.
  • File free space and guest free space are separate capacity boundaries.
  • File-backed storage adds filesystem/file-server metadata and locking semantics to the I/O path.
  • A file format such as QCOW2/VHDX/VMDK is separate from the filesystem that stores the file.

First checks

  • findmnt -t nfs,nfs4,cifs — file storage mounts
  • nfsstat -m — NFS mount options
  • Get-SmbConnection — SMB3 connections (Hyper-V)

Verify in this order

VM disk file → NFS/SMB → NAS

Where it usually breaks

First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.

Virtual Storage → File Storage reference map

BoundaryMeaningEvidence limit
Image fileVM backing objectFormat-specific
Filesystemallocation/metadataHost layer
Share/clientnetwork file accessOptional network layer
Backendstorage service/mediaPersistence layer

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3505

Confirmation

Confirm action

Continue?