xref: /openbmc/qemu/tests/qemu-iotests/051.out (revision 56c4bfb3)
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: -drive if=scsi: Device initialization failed.
89QEMU_PROG: Device initialization failed.
90QEMU_PROG: Initialization of device lsi53c895a failed
91
92Testing: -drive if=none,id=disk -device ide-cd,drive=disk
93QEMU X.Y.Z monitor - type 'help' for more information
94(qemu) qququiquit
95
96Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
97QEMU X.Y.Z monitor - type 'help' for more information
98(qemu) qququiquit
99
100Testing: -drive if=none,id=disk -device ide-drive,drive=disk
101QEMU X.Y.Z monitor - type 'help' for more information
102(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
103QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
104QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
105
106Testing: -drive if=none,id=disk -device ide-hd,drive=disk
107QEMU X.Y.Z monitor - type 'help' for more information
108(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
109QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
110QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
111
112Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
113QEMU X.Y.Z monitor - type 'help' for more information
114(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
115QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
116QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
117
118Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
119QEMU X.Y.Z monitor - type 'help' for more information
120(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
121QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
122QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
123
124
125=== Read-only ===
126
127Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
128QEMU X.Y.Z monitor - type 'help' for more information
129(qemu) qququiquit
130
131Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
132QEMU X.Y.Z monitor - type 'help' for more information
133(qemu) qququiquit
134
135Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
136QEMU X.Y.Z monitor - type 'help' for more information
137(qemu) qququiquit
138
139Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
140QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: read-only not supported by this bus type
141
142Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
143QEMU X.Y.Z monitor - type 'help' for more information
144(qemu) qququiquit
145
146Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
147QEMU X.Y.Z monitor - type 'help' for more information
148(qemu) qququiquit
149
150Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
151QEMU X.Y.Z monitor - type 'help' for more information
152(qemu) qququiquit
153
154Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
155QEMU X.Y.Z monitor - type 'help' for more information
156(qemu) qququiquit
157
158Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
159QEMU X.Y.Z monitor - type 'help' for more information
160(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
161QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
162QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
163
164Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
165QEMU X.Y.Z monitor - type 'help' for more information
166(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
167QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
168QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
169
170Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
171QEMU X.Y.Z monitor - type 'help' for more information
172(qemu) qququiquit
173
174Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
175QEMU X.Y.Z monitor - type 'help' for more information
176(qemu) qququiquit
177
178
179=== Cache modes ===
180
181Testing: -drive media=cdrom,cache=none
182QEMU X.Y.Z monitor - type 'help' for more information
183(qemu) qququiquit
184
185Testing: -drive media=cdrom,cache=directsync
186QEMU X.Y.Z monitor - type 'help' for more information
187(qemu) qququiquit
188
189Testing: -drive media=cdrom,cache=writeback
190QEMU X.Y.Z monitor - type 'help' for more information
191(qemu) qququiquit
192
193Testing: -drive media=cdrom,cache=writethrough
194QEMU X.Y.Z monitor - type 'help' for more information
195(qemu) qququiquit
196
197Testing: -drive media=cdrom,cache=unsafe
198QEMU X.Y.Z monitor - type 'help' for more information
199(qemu) qququiquit
200
201Testing: -drive media=cdrom,cache=invalid_value
202QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
203
204
205=== Specifying the protocol layer ===
206
207Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
208QEMU X.Y.Z monitor - type 'help' for more information
209(qemu) qququiquit
210
211Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
212QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: Can't use 'qcow2' as a block driver for the protocol level
213QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Invalid argument
214
215
216=== Parsing protocol from file name ===
217
218Testing: -hda foo:bar
219QEMU_PROG: -hda foo:bar: Unknown protocol
220QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: No such file or directory
221
222Testing: -drive file=foo:bar
223QEMU_PROG: -drive file=foo:bar: Unknown protocol
224QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: No such file or directory
225
226Testing: -drive file.filename=foo:bar
227QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: No such file or directory
228
229*** done
230