blob: 003607f5c4ab49d2076718dc17a38b41ccd5bd10 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
assembly: 0.956
permissions: 0.948
architecture: 0.946
performance: 0.943
register: 0.934
device: 0.934
virtual: 0.933
semantic: 0.931
graphic: 0.917
socket: 0.911
peripherals: 0.911
debug: 0.900
boot: 0.898
arm: 0.898
hypervisor: 0.896
risc-v: 0.888
files: 0.884
PID: 0.878
user-level: 0.873
mistranslation: 0.868
ppc: 0.868
network: 0.859
kernel: 0.834
TCG: 0.828
vnc: 0.721
VMM: 0.687
KVM: 0.687
x86: 0.474
i386: 0.248
Converting 100G VHDX fixed image to QCOW2 fails
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 Bellard and the QEMU Project developers
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
PS > Get-VHD .\VM.vhdx
ComputerName : Server1
Path : \VM.vhdx
VhdFormat : VHDX
VhdType : Fixed
FileSize : 107378376704
Size : 107374182400
MinimumSize : 107374182400
LogicalSectorSize : 4096
PhysicalSectorSize : 4096
BlockSize : 0
ParentPath :
DiskIdentifier : 53fd4aa7-562e-4bed-bc1c-2db71222e07e
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Key :
IsDeleted : False
Number :
PS > & 'C:\Program Files\qemu\qemu-img.exe' convert -O qcow2 .\VM.vhdx .\VM.qcow2
Assertion failed!
Program: C:\Program Files\qemu\qemu-img.exe
File: /home/stefan/src/qemu/repo.or.cz/qemu/ar7/block/io.c, Line 1034
Expression: !qiov || bytes == qiov->size
PS > & 'C:\Program Files\qemu\qemu-img.exe' info .\VM.qcow2
image: .\VM.qcow2
file format: qcow2
virtual size: 13G (13421772800 bytes)
disk size: 1.4G
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
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 : XXXX
Path : F:\test.vhdx
VhdFormat : VHDX
VhdType : Fixed
FileSize : 10741612544
Size : 10737418240
MinimumSize :
LogicalSectorSize : 4096
PhysicalSectorSize : 4096
BlockSize : 0
ParentPath :
DiskIdentifier : dfa84293-86f2-4ddf-aaff-14c04dae5df9
FragmentationPercentage : 0
Alignment : 1
Attached : False
DiskNumber :
Key :
IsDeleted : False
Number :
PS F:\> C:\temp\qemu-img\qemu-img.exe info .\test.vhdx
image: .\test.vhdx
file format: vhdx
virtual size: 1.2G (1342177280 bytes)
disk size: 10G
cluster_size: 134217728
Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?
[Expired for QEMU because there has been no activity for 60 days.]
|