| Previous | Next |
| STATUS_VHD_METADATA_WRITE_FAILURE | STATUS_VHD_INVALID_FILE_SIZE |
STATUS_VHD_INVALID_SIZE
STATUS_VHD_INVALID_SIZE concerns the logical capacity declared by the virtual disk. The value is used to define the virtual addressable range, so the provider will reject an image whose stated size is inconsistent with the format or associated layout data.
This is not the same as STATUS_VHD_INVALID_FILE_SIZE. Logical capacity describes the virtual disk presented to a guest, whereas file size is the host-side byte length of the VHD or VHDX container. Dynamic disks intentionally make those two quantities different.
Compare virtual and physical dimensions
- Record the declared virtual size and actual file length separately; do not infer one from the other for dynamic disks.
- Check related geometry such as block size, BAT entry count or VHDX file parameters before changing size values.
- When a resize was interrupted, prefer a known-good backup or supported recovery path to manually editing capacity fields.
References
Looking for a different code? Search another status or error code.
