What does HRESULT 0xC03A0012 (ERROR_VHD_INVALID_SIZE) mean?

 
Could be also:
ConstantTypeOS
STATUS_VHD_INVALID_SIZENTSTATUSWindows
Previous Next
ERROR_VHD_METADATA_WRITE_FAILURE ERROR_VHD_INVALID_FILE_SIZE

ERROR_VHD_INVALID_SIZE

ERROR_VHD_INVALID_SIZE means the virtual size recorded by the VHD/VHDX is invalid. This can result from a malformed header, an interrupted conversion, or damaged metadata.

What to do

  • Validate the file on a copy and compare its reported virtual size with the expected VM disk configuration.
  • Check whether a conversion, resize, or restore was interrupted before the error appeared.
  • Restore the image from a known-good backup if the format metadata cannot be read consistently.
Get-VHD -Path "D:\VMs\disk.vhdx" | Format-List Path,Size,FileSize,VhdType

Microsoft: Get-VHD

Microsoft: Test-VHD

Microsoft: Resize-VHD


Looking for a different code? Search another status or error code.