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