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