xref: /qemu/tests/qemu-iotests/051.out (revision a7cf03d4e150abec88f5837461242dc8a0eee189)
147e5df21SKevin WolfQA output created by 051
247e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
34db9c980SFam ZhengFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file='TEST_DIR/t.IMGFMT.base'
447e5df21SKevin Wolf
547e5df21SKevin Wolf=== Unknown option ===
647e5df21SKevin Wolf
747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
82c78857bSMax ReitzQEMU_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'
947e5df21SKevin Wolf
1047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
112c78857bSMax ReitzQEMU_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'
1247e5df21SKevin Wolf
1347e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
142c78857bSMax ReitzQEMU_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'
1547e5df21SKevin Wolf
1647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
172c78857bSMax ReitzQEMU_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'
1847e5df21SKevin Wolf
1947e5df21SKevin Wolf
204db9c980SFam Zheng=== Overriding backing file ===
214db9c980SFam Zheng
224db9c980SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
234db9c980SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
244db9c980SFam Zheng(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
254db9c980SFam Zhengide0-hd0: TEST_DIR/t.qcow2 (qcow2)
264db9c980SFam Zheng    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
27*a7cf03d4SKevin Wolf(qemu) qququiquit
284db9c980SFam Zheng
294db9c980SFam Zheng
3047e5df21SKevin Wolf=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
3147e5df21SKevin Wolf
3264aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
339580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
347a370406SKevin Wolf(qemu) qququiquit
3547e5df21SKevin Wolf
3664aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
379580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
387a370406SKevin Wolf(qemu) qququiquit
3947e5df21SKevin Wolf
4064aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
412c78857bSMax ReitzQEMU_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'
4247e5df21SKevin Wolf
4364aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
442c78857bSMax ReitzQEMU_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'
4547e5df21SKevin Wolf
4664aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
472c78857bSMax ReitzQEMU_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'
4847e5df21SKevin Wolf
4947e5df21SKevin Wolf
5047e5df21SKevin Wolf=== With version 2 images enabling lazy refcounts must fail ===
5147e5df21SKevin Wolf
5247e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
5364aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
542c78857bSMax ReitzQEMU_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
5547e5df21SKevin Wolf
5664aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
579580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
587a370406SKevin Wolf(qemu) qququiquit
5947e5df21SKevin Wolf
6047e5df21SKevin Wolf
6147e5df21SKevin Wolf=== No medium ===
6247e5df21SKevin Wolf
6347e5df21SKevin WolfTesting: -drive if=floppy
649580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
657a370406SKevin Wolf(qemu) qququiquit
6647e5df21SKevin Wolf
6747e5df21SKevin WolfTesting: -drive if=ide,media=cdrom
689580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
697a370406SKevin Wolf(qemu) qququiquit
7047e5df21SKevin Wolf
7147e5df21SKevin WolfTesting: -drive if=scsi,media=cdrom
729580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
737a370406SKevin Wolf(qemu) qququiquit
7447e5df21SKevin Wolf
7547e5df21SKevin WolfTesting: -drive if=ide
769580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
777a370406SKevin Wolf(qemu) QEMU_PROG: Device needs media, but drive is empty
787a370406SKevin WolfQEMU_PROG: Device initialization failed.
79c09b437bSStefan HajnocziQEMU_PROG: Initialization of device ide-hd failed
8047e5df21SKevin Wolf
8147e5df21SKevin WolfTesting: -drive if=virtio
829580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
837a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
847a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed.
857a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed.
86c09b437bSStefan HajnocziQEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
8747e5df21SKevin Wolf
8847e5df21SKevin WolfTesting: -drive if=scsi
899580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
907a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
917a370406SKevin WolfQEMU_PROG: Device initialization failed.
92c09b437bSStefan HajnocziQEMU_PROG: Initialization of device lsi53c895a failed
9347e5df21SKevin Wolf
9447e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-cd,drive=disk
959580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
967a370406SKevin Wolf(qemu) qququiquit
9747e5df21SKevin Wolf
9847e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
999580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1007a370406SKevin Wolf(qemu) qququiquit
10147e5df21SKevin Wolf
10247e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-drive,drive=disk
1039580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1047a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
1057a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
106c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
10747e5df21SKevin Wolf
10847e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-hd,drive=disk
1099580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1107a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
1117a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
112c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
11347e5df21SKevin Wolf
11447e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
1159580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1167a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
1177a370406SKevin WolfQEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
118c09b437bSStefan HajnocziQEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
11947e5df21SKevin Wolf
12047e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
1219580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1227a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
1237a370406SKevin WolfQEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
124c09b437bSStefan HajnocziQEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
12547e5df21SKevin Wolf
12647e5df21SKevin Wolf
12747e5df21SKevin Wolf=== Read-only ===
12847e5df21SKevin Wolf
12947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
1309580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1317a370406SKevin Wolf(qemu) qququiquit
13247e5df21SKevin Wolf
13347e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
1349580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1357a370406SKevin Wolf(qemu) qququiquit
13647e5df21SKevin Wolf
13747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
1389580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1397a370406SKevin Wolf(qemu) qququiquit
14047e5df21SKevin Wolf
14147e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
1424f8a066bSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
1434f8a066bSKevin Wolf(qemu) QEMU_PROG: Can't use a read-only drive
1444f8a066bSKevin WolfQEMU_PROG: Device initialization failed.
1454f8a066bSKevin WolfQEMU_PROG: Initialization of device ide-hd failed
14647e5df21SKevin Wolf
14747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
1489580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1497a370406SKevin Wolf(qemu) qququiquit
15047e5df21SKevin Wolf
15147e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
1529580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1537a370406SKevin Wolf(qemu) qququiquit
15447e5df21SKevin Wolf
15547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
1569580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1577a370406SKevin Wolf(qemu) qququiquit
15847e5df21SKevin Wolf
15947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
1609580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1617a370406SKevin Wolf(qemu) qququiquit
16247e5df21SKevin Wolf
16347e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
1649580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1657a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
1667a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
167c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
16847e5df21SKevin Wolf
16947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
1709580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1717a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
1727a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
173c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
17447e5df21SKevin Wolf
17547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
1769580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1777a370406SKevin Wolf(qemu) qququiquit
17847e5df21SKevin Wolf
17947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
1809580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1817a370406SKevin Wolf(qemu) qququiquit
18247e5df21SKevin Wolf
18347e5df21SKevin Wolf
18447e5df21SKevin Wolf=== Cache modes ===
18547e5df21SKevin Wolf
18647e5df21SKevin WolfTesting: -drive media=cdrom,cache=none
1879580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1887a370406SKevin Wolf(qemu) qququiquit
18947e5df21SKevin Wolf
19047e5df21SKevin WolfTesting: -drive media=cdrom,cache=directsync
1919580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1927a370406SKevin Wolf(qemu) qququiquit
19347e5df21SKevin Wolf
19447e5df21SKevin WolfTesting: -drive media=cdrom,cache=writeback
1959580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1967a370406SKevin Wolf(qemu) qququiquit
19747e5df21SKevin Wolf
19847e5df21SKevin WolfTesting: -drive media=cdrom,cache=writethrough
1999580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
2007a370406SKevin Wolf(qemu) qququiquit
20147e5df21SKevin Wolf
20247e5df21SKevin WolfTesting: -drive media=cdrom,cache=unsafe
2039580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
2047a370406SKevin Wolf(qemu) qququiquit
20547e5df21SKevin Wolf
20647e5df21SKevin WolfTesting: -drive media=cdrom,cache=invalid_value
207c09b437bSStefan HajnocziQEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
20847e5df21SKevin Wolf
2092af5ef70SKevin Wolf
2102af5ef70SKevin Wolf=== Specifying the protocol layer ===
2112af5ef70SKevin Wolf
2122af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=file
2139580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
2147a370406SKevin Wolf(qemu) qququiquit
2152af5ef70SKevin Wolf
2162af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
2172c78857bSMax ReitzQEMU_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
2182af5ef70SKevin Wolf
21998289620SKevin Wolf
22098289620SKevin Wolf=== Parsing protocol from file name ===
22198289620SKevin Wolf
22298289620SKevin WolfTesting: -hda foo:bar
2232c78857bSMax ReitzQEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol
22498289620SKevin Wolf
22598289620SKevin WolfTesting: -drive file=foo:bar
2262c78857bSMax ReitzQEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol
22798289620SKevin Wolf
22898289620SKevin WolfTesting: -drive file.filename=foo:bar
229e428e439SMax ReitzQEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open file: No such file or directory
23098289620SKevin Wolf
23147e5df21SKevin Wolf*** done
232