multi_disk.cfg 3.8 KB
Newer Older
1 2 3 4 5 6 7
- multi_disk: install setup image_copy unattended_install.cdrom
    type = multi_disk
    force_create_image = yes
    force_create_image_image1 = no
    remove_image = yes
    remove_image_image1 = no
    cmd_timeout = 1000
8
    black_list = C:
9
    start_vm = no
10
    stg_image_name = "images/%s"
11
    variants:
12
        - one_disk_repeat:
13 14
            images += " stg"
            image_format_stg = qcow2
15
            image_name_stg = images/storage
16
            image_size_stg = 1G
17
            image_boot_stg = no
18 19 20
            drive_index_stg = 1
            force_create_image_stg = yes
            remove_image_stg = yes
21 22
            n_repeat = 10
        - max_disk:
23
            cdroms = ""
24
            ide:
25
                # 3 + boot disk = 4 disks
26
                image_extra_params = ""
27 28 29
                stg_image_num = 3
                stg_params  = "image_size:1G,10G,5G "
                stg_params += "image_format:qcow2,qcow2,raw "
30 31 32
            virtio_blk:
                usbs = ""
                usb_devices = ""
33
                soundcards = ""
34 35 36 37 38 39 40 41 42 43 44 45
                drive_format = virtio
                stg_image_num = 24
                stg_image_size = 5G
                stg_image_boot = no
                # other variants.
                # stg_image_format = qcow2
                # stg_drive_format = virtio
                # stg_assign_index = yes
                Linux:
                    image_size_image1 = 20G
                Windows:
                    image_size_image1 = 30G
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
        - all_drive_format_types:
            stg_image_size = 1M
            stg_params = "drive_format:ide,scsi,virtio,scsi-hd,usb2"
            usbs += " default-ehci"
            usb_type_default-ehci = usb-ehci
        - virtio_scsi_variants:
            # Decrease length of the command
            stg_image_name = '/tmp/%s'
            stg_image_size = 1M
            stg_params = "drive_format:scsi-disk "
            variants:
                - @passthrough:
                    # We need to unload scsi_debug modules used by VM
                    kill_vm = yes
                    force_create_image = no
X
Xu Tian 已提交
61
                    pre_command = "modprobe -r scsi_debug; modprobe scsi_debug add_host=9"
62 63 64 65 66 67 68 69
                    post_command = "rmmod scsi_debug"
                    stg_params += "image_raw_device:yes "
                    stg_params += "image_format:raw "
                    stg_params += "indirect_image_select:range(-9,0) "
                    variants:
                        - block:
                            stg_params += "image_name:/dev/sd* "
                        - generic:
X
Xu Tian 已提交
70
                            stg_params += "drive_cache:writethrough "
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
                            stg_params += "drive_format:scsi-generic "
                            stg_params += "image_name:/dev/sg* "
                - multi_lun:
                    stg_params += "drive_lun:range(0,16383,63) "
                - multi_scsiid_lun:
                    stg_params += "drive_scsiid:range(0,255,1,3) "
                    stg_params += "drive_lun:range(0,16383,8191) "
                - multi_bus_scsiid_lun:
                    stg_params += "drive_bus:range(0,15,1,9) "
                    stg_params += "drive_scsiid:range(0,255,127,3) "
                    stg_params += "drive_lun:range(0,16383,8191) "
        - debug_params:
            # Remove this to execute this test-params-devel test
            no multi_disk
            # Dont run the actual test, only show the disk setup
            multi_disk_params_only = yes
            stg_image_name = '/tmp/%s'
            stg_image_size = 1M
            stg_params += "list_params:item1,item2,item3 "
            stg_params += "simplerange:range(55) "
            stg_params += "fullrange:range(first,last,step,multiple_items) "
            stg_params += "range_0-all_disk:range(n) "