xref: /openbmc/qemu/tests/qemu-iotests/051.out (revision 314b5d4bb6664e236aa90a478dd1e7833a918513)
1QA output created by 051
2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3
4=== Unknown option ===
5
6Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
7QEMU_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'
8
9Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
10QEMU_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'
11
12Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
13QEMU_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'
14
15Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
16QEMU_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'
17
18
19=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
20
21Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
22QEMU X.Y.Z monitor - type 'help' for more information
23(qemu) qququiquit
24
25Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
26QEMU X.Y.Z monitor - type 'help' for more information
27(qemu) qququiquit
28
29Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
30QEMU_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'
31
32Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
33QEMU_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'
34
35Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
36QEMU_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'
37
38
39=== With version 2 images enabling lazy refcounts must fail ===
40
41Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
42Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
43QEMU_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
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
49
50=== No medium ===
51
52Testing: -drive if=floppy
53QEMU X.Y.Z monitor - type 'help' for more information
54(qemu) qququiquit
55
56Testing: -drive if=ide,media=cdrom
57QEMU X.Y.Z monitor - type 'help' for more information
58(qemu) qququiquit
59
60Testing: -drive if=scsi,media=cdrom
61QEMU X.Y.Z monitor - type 'help' for more information
62(qemu) qququiquit
63
64Testing: -drive if=ide
65QEMU X.Y.Z monitor - type 'help' for more information
66(qemu) QEMU_PROG: Device needs media, but drive is empty
67QEMU_PROG: Device initialization failed.
68QEMU_PROG: Initialization of device ide-hd failed
69
70Testing: -drive if=virtio
71QEMU X.Y.Z monitor - type 'help' for more information
72(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
73QEMU_PROG: -drive if=virtio: Device initialization failed.
74QEMU_PROG: -drive if=virtio: Device initialization failed.
75QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
76
77Testing: -drive if=scsi
78QEMU X.Y.Z monitor - type 'help' for more information
79(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
80QEMU_PROG: Device initialization failed.
81QEMU_PROG: Initialization of device lsi53c895a failed
82
83Testing: -drive if=none,id=disk -device ide-cd,drive=disk
84QEMU X.Y.Z monitor - type 'help' for more information
85(qemu) qququiquit
86
87Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
88QEMU X.Y.Z monitor - type 'help' for more information
89(qemu) qququiquit
90
91Testing: -drive if=none,id=disk -device ide-drive,drive=disk
92QEMU X.Y.Z monitor - type 'help' for more information
93(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
94QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
95QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
96
97Testing: -drive if=none,id=disk -device ide-hd,drive=disk
98QEMU X.Y.Z monitor - type 'help' for more information
99(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
100QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
101QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
102
103Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
104QEMU X.Y.Z monitor - type 'help' for more information
105(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
106QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
107QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
108
109Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
110QEMU X.Y.Z monitor - type 'help' for more information
111(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
112QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
113QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
114
115
116=== Read-only ===
117
118Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
119QEMU X.Y.Z monitor - type 'help' for more information
120(qemu) qququiquit
121
122Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
123QEMU X.Y.Z monitor - type 'help' for more information
124(qemu) qququiquit
125
126Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
127QEMU X.Y.Z monitor - type 'help' for more information
128(qemu) qququiquit
129
130Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
131QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: read-only not supported by this bus type
132
133Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
134QEMU X.Y.Z monitor - type 'help' for more information
135(qemu) qququiquit
136
137Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
138QEMU X.Y.Z monitor - type 'help' for more information
139(qemu) qququiquit
140
141Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
142QEMU X.Y.Z monitor - type 'help' for more information
143(qemu) qququiquit
144
145Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
146QEMU X.Y.Z monitor - type 'help' for more information
147(qemu) qququiquit
148
149Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
150QEMU X.Y.Z monitor - type 'help' for more information
151(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
152QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
153QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
154
155Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
156QEMU X.Y.Z monitor - type 'help' for more information
157(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
158QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
159QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
160
161Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
162QEMU X.Y.Z monitor - type 'help' for more information
163(qemu) qququiquit
164
165Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
166QEMU X.Y.Z monitor - type 'help' for more information
167(qemu) qququiquit
168
169
170=== Cache modes ===
171
172Testing: -drive media=cdrom,cache=none
173QEMU X.Y.Z monitor - type 'help' for more information
174(qemu) qququiquit
175
176Testing: -drive media=cdrom,cache=directsync
177QEMU X.Y.Z monitor - type 'help' for more information
178(qemu) qququiquit
179
180Testing: -drive media=cdrom,cache=writeback
181QEMU X.Y.Z monitor - type 'help' for more information
182(qemu) qququiquit
183
184Testing: -drive media=cdrom,cache=writethrough
185QEMU X.Y.Z monitor - type 'help' for more information
186(qemu) qququiquit
187
188Testing: -drive media=cdrom,cache=unsafe
189QEMU X.Y.Z monitor - type 'help' for more information
190(qemu) qququiquit
191
192Testing: -drive media=cdrom,cache=invalid_value
193QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
194
195
196=== Specifying the protocol layer ===
197
198Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
199QEMU X.Y.Z monitor - type 'help' for more information
200(qemu) qququiquit
201
202Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
203QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Can't use 'qcow2' as a block driver for the protocol level
204
205
206=== Parsing protocol from file name ===
207
208Testing: -hda foo:bar
209QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol
210
211Testing: -drive file=foo:bar
212QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol
213
214Testing: -drive file.filename=foo:bar
215QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open 'foo:bar': No such file or directory
216
217*** done
218