bootdevice: check boot order argument validation before vm running
[qemu/ar7.git] / tests / qemu-iotests / 049.out
blobb6311b01b9e7ec52b2dd5ffafe74e57bac77152b
1 QA output created by 049
2 === Check correct interpretation of suffixes for image size ===
4 == 1. Traditional size parameter ==
6 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024
7 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
9 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024b
10 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
12 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1k
13 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
15 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1K
16 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
18 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1M
19 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 encryption=off cluster_size=65536 lazy_refcounts=off
21 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1G
22 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off
24 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1T
25 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 encryption=off cluster_size=65536 lazy_refcounts=off
27 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0
28 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
30 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0b
31 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
33 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5k
34 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
36 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5K
37 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
39 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5M
40 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 encryption=off cluster_size=65536 lazy_refcounts=off
42 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5G
43 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 encryption=off cluster_size=65536 lazy_refcounts=off
45 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5T
46 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 encryption=off cluster_size=65536 lazy_refcounts=off
48 == 2. Specifying size via -o ==
50 qemu-img create -f qcow2 -o size=1024 TEST_DIR/t.qcow2
51 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
53 qemu-img create -f qcow2 -o size=1024b TEST_DIR/t.qcow2
54 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
56 qemu-img create -f qcow2 -o size=1k TEST_DIR/t.qcow2
57 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
59 qemu-img create -f qcow2 -o size=1K TEST_DIR/t.qcow2
60 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
62 qemu-img create -f qcow2 -o size=1M TEST_DIR/t.qcow2
63 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 encryption=off cluster_size=65536 lazy_refcounts=off
65 qemu-img create -f qcow2 -o size=1G TEST_DIR/t.qcow2
66 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off
68 qemu-img create -f qcow2 -o size=1T TEST_DIR/t.qcow2
69 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 encryption=off cluster_size=65536 lazy_refcounts=off
71 qemu-img create -f qcow2 -o size=1024.0 TEST_DIR/t.qcow2
72 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
74 qemu-img create -f qcow2 -o size=1024.0b TEST_DIR/t.qcow2
75 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
77 qemu-img create -f qcow2 -o size=1.5k TEST_DIR/t.qcow2
78 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
80 qemu-img create -f qcow2 -o size=1.5K TEST_DIR/t.qcow2
81 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
83 qemu-img create -f qcow2 -o size=1.5M TEST_DIR/t.qcow2
84 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 encryption=off cluster_size=65536 lazy_refcounts=off
86 qemu-img create -f qcow2 -o size=1.5G TEST_DIR/t.qcow2
87 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 encryption=off cluster_size=65536 lazy_refcounts=off
89 qemu-img create -f qcow2 -o size=1.5T TEST_DIR/t.qcow2
90 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 encryption=off cluster_size=65536 lazy_refcounts=off
92 == 3. Invalid sizes ==
94 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1024
95 qemu-img: Image size must be less than 8 EiB!
97 qemu-img create -f qcow2 -o size=-1024 TEST_DIR/t.qcow2
98 qemu-img: qcow2 doesn't support shrinking images yet
99 qemu-img: TEST_DIR/t.qcow2: Could not resize image: Operation not supported
100 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=-1024 encryption=off cluster_size=65536 lazy_refcounts=off
102 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1k
103 qemu-img: Image size must be less than 8 EiB!
105 qemu-img create -f qcow2 -o size=-1k TEST_DIR/t.qcow2
106 qemu-img: qcow2 doesn't support shrinking images yet
107 qemu-img: TEST_DIR/t.qcow2: Could not resize image: Operation not supported
108 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=-1024 encryption=off cluster_size=65536 lazy_refcounts=off
110 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1kilobyte
111 qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
112 qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
114 qemu-img create -f qcow2 -o size=1kilobyte TEST_DIR/t.qcow2
115 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
117 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar
118 qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
119 qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
121 qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
122 qemu-img: Parameter 'size' expects a size
123 qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
125 == Check correct interpretation of suffixes for cluster size ==
127 qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
128 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
130 qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
131 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
133 qemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M
134 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
136 qemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M
137 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
139 qemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M
140 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1048576 lazy_refcounts=off
142 qemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M
143 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
145 qemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M
146 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
148 qemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M
149 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=512 lazy_refcounts=off
151 qemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M
152 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=512 lazy_refcounts=off
154 qemu-img create -f qcow2 -o cluster_size=0.5M TEST_DIR/t.qcow2 64M
155 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=524288 lazy_refcounts=off
157 == Check compat level option ==
159 qemu-img create -f qcow2 -o compat=0.10 TEST_DIR/t.qcow2 64M
160 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off
162 qemu-img create -f qcow2 -o compat=1.1 TEST_DIR/t.qcow2 64M
163 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=off
165 qemu-img create -f qcow2 -o compat=0.42 TEST_DIR/t.qcow2 64M
166 qemu-img: TEST_DIR/t.qcow2: Invalid compatibility level: '0.42'
167 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.42' encryption=off cluster_size=65536 lazy_refcounts=off
169 qemu-img create -f qcow2 -o compat=foobar TEST_DIR/t.qcow2 64M
170 qemu-img: TEST_DIR/t.qcow2: Invalid compatibility level: 'foobar'
171 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='foobar' encryption=off cluster_size=65536 lazy_refcounts=off
173 == Check preallocation option ==
175 qemu-img create -f qcow2 -o preallocation=off TEST_DIR/t.qcow2 64M
176 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation='off' lazy_refcounts=off
178 qemu-img create -f qcow2 -o preallocation=metadata TEST_DIR/t.qcow2 64M
179 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off
181 qemu-img create -f qcow2 -o preallocation=1234 TEST_DIR/t.qcow2 64M
182 qemu-img: TEST_DIR/t.qcow2: invalid parameter value: 1234
183 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation='1234' lazy_refcounts=off
185 == Check encryption option ==
187 qemu-img create -f qcow2 -o encryption=off TEST_DIR/t.qcow2 64M
188 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 lazy_refcounts=off
190 qemu-img create -f qcow2 -o encryption=on TEST_DIR/t.qcow2 64M
191 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=on cluster_size=65536 lazy_refcounts=off
193 == Check lazy_refcounts option (only with v3) ==
195 qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=off TEST_DIR/t.qcow2 64M
196 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=off
198 qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on TEST_DIR/t.qcow2 64M
199 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=on
201 qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=off TEST_DIR/t.qcow2 64M
202 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off
204 qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=on TEST_DIR/t.qcow2 64M
205 qemu-img: TEST_DIR/t.qcow2: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
206 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=on
208 *** done