block_hotplug.cfg 1.5 KB
Newer Older
1
- block_hotplug: install setup image_copy unattended_install.cdrom
2
    no RHEL.3.9
3
    virt_test_type = qemu libvirt
4 5 6 7
    type = pci_hotplug
    pci_type = block
    reference_cmd = lspci
    find_pci_cmd = 'lspci | tail -n1'
8 9 10 11 12 13 14
    images += " stg0"
    boot_drive_stg0 = no
    image_name_stg0 = storage0
    image_size_stg0 = 1G
    remove_image_stg0 = yes
    force_create_image_stg0 = yes
    pci_test_cmd = "echo %s; yes | mke2fs `fdisk -l 2>&1 | awk '/\/dev\/[sv]d[a-z]* doesn/ {print $2}'` | sort | tail -1"
15 16
    wait_secs_for_hook_up = 3
    kill_vm_on_error = yes
17 18
    variants:
        - fmt_qcow2:
19
            image_extra_params = ""
20 21 22 23
            image_format_stg = qcow2
            image_format_stg0 = qcow2
            image_format_stg1 = qcow2
        - fmt_raw:
24
            image_extra_params = ""
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
            image_format_stg = raw
            image_format_stg0 = raw
            image_format_stg1 = raw
    variants:
        - one_pci:
            pci_num = 1
            repeat_times = 300
        - multi_pci:
            pci_num = 2
            repeat_times = 2
            images += " stg1"
            boot_drive_stg1 = no
            image_name_stg1 = storage1
            image_size_stg1 = 1G
            remove_image_stg1 = yes
            force_create_image_stg1 = yes
41 42 43 44 45 46 47
    variants:
        - block_virtio:
            pci_model = virtio
            match_string = "Virtio block device"
        - block_scsi:
            pci_model = scsi
            match_string = "LSI Logic"