xref: /openbmc/qemu/tests/qemu-iotests/051.out (revision 88c1ee73)
1QA output created by 051
2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file='TEST_DIR/t.IMGFMT.base'
4
5=== Unknown option ===
6
7Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
8QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
9
10Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
11QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
12
13Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
14QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
15
16Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
17QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
18
19
20=== Invalid format ===
21
22Testing: -drive file=TEST_DIR/t.qcow2,format=foo
23QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: 'foo' invalid format
24
25Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
26QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: could not open disk image TEST_DIR/t.qcow2: Invalid driver: 'foo'
27
28
29=== Overriding backing file ===
30
31Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
32QEMU X.Y.Z monitor - type 'help' for more information
33(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
34ide0-hd0: TEST_DIR/t.qcow2 (qcow2)
35    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
36(qemu) qququiquit
37
38
39=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
40
41Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
42QEMU X.Y.Z monitor - type 'help' for more information
43(qemu) qququiquit
44
45Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
46QEMU X.Y.Z monitor - type 'help' for more information
47(qemu) qququiquit
48
49Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
50QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
51
52Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
53QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
54
55Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
56QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
57
58
59=== With version 2 images enabling lazy refcounts must fail ===
60
61Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
62Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
63QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: could not open disk image TEST_DIR/t.qcow2: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
64
65Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
66QEMU X.Y.Z monitor - type 'help' for more information
67(qemu) qququiquit
68
69
70=== No medium ===
71
72Testing: -drive if=floppy
73QEMU X.Y.Z monitor - type 'help' for more information
74(qemu) qququiquit
75
76Testing: -drive if=ide,media=cdrom
77QEMU X.Y.Z monitor - type 'help' for more information
78(qemu) qququiquit
79
80Testing: -drive if=scsi,media=cdrom
81QEMU X.Y.Z monitor - type 'help' for more information
82(qemu) qququiquit
83
84Testing: -drive if=ide
85QEMU X.Y.Z monitor - type 'help' for more information
86(qemu) QEMU_PROG: Device needs media, but drive is empty
87QEMU_PROG: Device initialization failed.
88QEMU_PROG: Initialization of device ide-hd failed
89
90Testing: -drive if=virtio
91QEMU X.Y.Z monitor - type 'help' for more information
92(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
93QEMU_PROG: -drive if=virtio: Device initialization failed.
94QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
95
96Testing: -drive if=scsi
97QEMU X.Y.Z monitor - type 'help' for more information
98(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
99QEMU_PROG: Device initialization failed.
100QEMU_PROG: Initialization of device lsi53c895a failed
101
102Testing: -drive if=none,id=disk -device ide-cd,drive=disk
103QEMU X.Y.Z monitor - type 'help' for more information
104(qemu) qququiquit
105
106Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
107QEMU X.Y.Z monitor - type 'help' for more information
108(qemu) qququiquit
109
110Testing: -drive if=none,id=disk -device ide-drive,drive=disk
111QEMU X.Y.Z monitor - type 'help' for more information
112(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
113QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
114QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
115
116Testing: -drive if=none,id=disk -device ide-hd,drive=disk
117QEMU X.Y.Z monitor - type 'help' for more information
118(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
119QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
120QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
121
122Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
123QEMU X.Y.Z monitor - type 'help' for more information
124(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
125QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
126QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
127
128Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
129QEMU X.Y.Z monitor - type 'help' for more information
130(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
131QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
132QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
133
134
135=== Read-only ===
136
137Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
138QEMU X.Y.Z monitor - type 'help' for more information
139(qemu) qququiquit
140
141Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
142QEMU X.Y.Z monitor - type 'help' for more information
143(qemu) qququiquit
144
145Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
146QEMU X.Y.Z monitor - type 'help' for more information
147(qemu) qququiquit
148
149Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
150QEMU X.Y.Z monitor - type 'help' for more information
151(qemu) QEMU_PROG: Can't use a read-only drive
152QEMU_PROG: Device initialization failed.
153QEMU_PROG: Initialization of device ide-hd failed
154
155Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
156QEMU X.Y.Z monitor - type 'help' for more information
157(qemu) qququiquit
158
159Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
160QEMU X.Y.Z monitor - type 'help' for more information
161(qemu) qququiquit
162
163Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
164QEMU X.Y.Z monitor - type 'help' for more information
165(qemu) qququiquit
166
167Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
168QEMU X.Y.Z monitor - type 'help' for more information
169(qemu) qququiquit
170
171Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
172QEMU X.Y.Z monitor - type 'help' for more information
173(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
174QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
175QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
176
177Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
178QEMU X.Y.Z monitor - type 'help' for more information
179(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
180QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
181QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
182
183Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
184QEMU X.Y.Z monitor - type 'help' for more information
185(qemu) qququiquit
186
187Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
188QEMU X.Y.Z monitor - type 'help' for more information
189(qemu) qququiquit
190
191
192=== Cache modes ===
193
194Testing: -drive media=cdrom,cache=none
195QEMU X.Y.Z monitor - type 'help' for more information
196(qemu) qququiquit
197
198Testing: -drive media=cdrom,cache=directsync
199QEMU X.Y.Z monitor - type 'help' for more information
200(qemu) qququiquit
201
202Testing: -drive media=cdrom,cache=writeback
203QEMU X.Y.Z monitor - type 'help' for more information
204(qemu) qququiquit
205
206Testing: -drive media=cdrom,cache=writethrough
207QEMU X.Y.Z monitor - type 'help' for more information
208(qemu) qququiquit
209
210Testing: -drive media=cdrom,cache=unsafe
211QEMU X.Y.Z monitor - type 'help' for more information
212(qemu) qququiquit
213
214Testing: -drive media=cdrom,cache=invalid_value
215QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
216
217
218=== Specifying the protocol layer ===
219
220Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
221QEMU X.Y.Z monitor - type 'help' for more information
222(qemu) qququiquit
223
224Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
225QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device '' doesn't support the option 'filename'
226
227
228=== Leaving out required options ===
229
230Testing: -drive driver=file
231QEMU_PROG: -drive driver=file: could not open disk image ide0-hd0: The 'file' block driver requires a file name
232
233Testing: -drive driver=nbd
234QEMU_PROG: -drive driver=nbd: could not open disk image ide0-hd0: Could not open image: Invalid argument
235
236Testing: -drive driver=raw
237QEMU_PROG: -drive driver=raw: could not open disk image ide0-hd0: Can't use 'raw' as a block driver for the protocol level
238
239Testing: -drive file.driver=file
240QEMU_PROG: -drive file.driver=file: could not open disk image ide0-hd0: The 'file' block driver requires a file name
241
242Testing: -drive file.driver=nbd
243QEMU_PROG: -drive file.driver=nbd: could not open disk image ide0-hd0: Could not open image: Invalid argument
244
245Testing: -drive file.driver=raw
246QEMU_PROG: -drive file.driver=raw: could not open disk image ide0-hd0: Can't use 'raw' as a block driver for the protocol level
247
248Testing: -drive foo=bar
249QEMU_PROG: -drive foo=bar: could not open disk image ide0-hd0: Must specify either driver or file
250
251
252=== Parsing protocol from file name ===
253
254Testing: -hda foo:bar
255QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol
256
257Testing: -drive file=foo:bar
258QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol
259
260Testing: -drive file.filename=foo:bar
261QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open 'foo:bar': No such file or directory
262
263
264=== Snapshot mode ===
265
266wrote 4096/4096 bytes at offset 0
2674 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
268Testing: -drive file=TEST_DIR/t.qcow2 -snapshot
269QEMU X.Y.Z monitor - type 'help' for more information
270(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
271wrote 4096/4096 bytes at offset 0
2724 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
273(qemu) qququiquit
274
275Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
276QEMU X.Y.Z monitor - type 'help' for more information
277(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
278wrote 4096/4096 bytes at offset 0
2794 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
280(qemu) qququiquit
281
282Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on
283QEMU X.Y.Z monitor - type 'help' for more information
284(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
285wrote 4096/4096 bytes at offset 0
2864 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
287(qemu) qququiquit
288
289Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2 -snapshot
290QEMU X.Y.Z monitor - type 'help' for more information
291(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
292wrote 4096/4096 bytes at offset 0
2934 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
294(qemu) qququiquit
295
296read 4096/4096 bytes at offset 0
2974 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
298Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off
299QEMU X.Y.Z monitor - type 'help' for more information
300(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wriqemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "write -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
301wrote 4096/4096 bytes at offset 0
3024 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
303(qemu) qququiquit
304
305read 4096/4096 bytes at offset 0
3064 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
307*** done
308