Bug is reproducible with setting VHDX Fixed Logicalsectorsize to 4096bytes
>10G image created reflects as 1.2G virtual size in Qemu-img
PS F:\> new-vhd -path test.vhdx -BlockSizeBytes 134217728 -SizeBytes
10737418240 -Fixed -LogicalSectorSizeBytes 4096
ComputerName:
Path
PS > Get-VHD .\VM.vhdx
ComputerName: Server1
Path: \VM.vhdx
VhdFormat : VHDX
VhdType : Fixed
FileSize: 107378376704
Size: 107374182400
MinimumSize : 107374182400
LogicalSectorSize : 4
Command capture,
PS > & 'C:\Program Files\qemu\qemu-img.exe' --version
qemu-img version 2.10.0 (v2.10.0-11669-g579e69bd5b-dirty)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subs
Public bug reported:
Virtual Size recognized incorrectly for VHDX fixed disk and conversion
fails with error Expression: !qiov || bytes == qiov->size
PS > & 'C:\Program Files\qemu\qemu-img.exe' --version
qemu-img version 2.10.0 (v2.10.0-11669-g579e69bd5b-dirty)
Copyright (c) 2003-2017 Fabrice Be