Home | History | Annotate | Download | only in kvm
      1 # Copy this file to base.cfg and edit it.
      2 #
      3 # Define the objects we'll be using
      4 vms = vm1
      5 vm_type = kvm
      6 images = image1
      7 cdroms = cd1
      8 nics = nic1
      9 monitors = humanmonitor1
     10 main_monitor = humanmonitor1
     11 monitor_type_humanmonitor1 = human
     12 monitor_type = human
     13 main_vm = vm1
     14 
     15 # Location of the qemu programs. You can refer to absolute paths here.
     16 qemu_binary = qemu
     17 qemu_img_binary = qemu-img
     18 
     19 # Default VM params
     20 # Number of processors
     21 smp = 1
     22 
     23 # Memory
     24 mem = 1024
     25 
     26 # Hard disk
     27 image_size = 10G
     28 image_raw_device = no
     29 drive_index_image1 = 0
     30 drive_cache = none
     31 
     32 # Cdrom drive index
     33 drive_index_cd1 = 1
     34 
     35 # Display
     36 display = vnc
     37 
     38 # If display = spice, you can set specific spice stuff here
     39 qxl = on
     40 qxl_dev_nr = 1
     41 spice = disable-ticketing
     42 
     43 # NIC parameters
     44 nic_mode = tap
     45 # By default we use libvirt's bridge
     46 bridge = virbr0
     47 run_tcpdump = yes
     48 
     49 # Some preprocessor/postprocessor params
     50 start_vm = yes
     51 kill_vm = no
     52 kill_vm_gracefully = yes
     53 kill_unresponsive_vms = yes
     54 
     55 # Screendump thread params
     56 convert_ppm_files_to_png_on_error = yes
     57 keep_ppm_files = no
     58 keep_ppm_files_on_error = no
     59 take_regular_screendumps = yes
     60 keep_screendumps_on_error = yes
     61 screendump_delay = 5
     62 screendump_quality = 30
     63 screendump_temp_dir = /dev/shm
     64 screendump_verbose = no
     65 
     66 # Default remote shell port (SSH under linux)
     67 shell_port = 22
     68 
     69 # Default scheduler params
     70 used_cpus = 1
     71 used_mem = 512
     72 
     73 # Port redirections
     74 redirs = remote_shell
     75 guest_port_remote_shell = 22
     76 
     77 # Profilers
     78 profilers = kvm_stat
     79 
     80 # Timeouts
     81 login_timeout = 360
     82 
     83 # NFS directory of guest images
     84 images_good = fileserver.foo.com:/autotest/images_good
     85 
     86 # NICs
     87 variants:
     88     - @rtl8139:
     89         nic_model = rtl8139
     90         no ethtool
     91         jumbo:
     92             mtu = 1500
     93     - e1000:
     94         nic_model = e1000
     95         jumbo:
     96             mtu = 16110
     97         ethtool:
     98             # gso gro lro is only supported by latest kernel
     99             supported_features = "tx rx sg tso gso gro lro"
    100     - virtio_net:
    101         nic_model = virtio
    102         # You can add advanced attributes on nic_extra_params such as mrg_rxbuf
    103         #nic_extra_params =
    104         # You can add advanced attributes through netdev_extra_params
    105         # such as sndbuf, as an example, you can uncomment the
    106         # following lines to enable the vhost support ( only available
    107         # for tap )
    108         #netdev_extra_params = "vhost=on"
    109         jumbo:
    110             mtu = 65520
    111         ethtool:
    112             supported_features = "tx sg tso gso"
    113         whql.submission.device.net:
    114             test_device = VirtIO Ethernet Adapter$
    115             # Device selection for the NDISTest client machine
    116             dp_regex_testdev = VirtIO Ethernet Adapter$
    117             dp_regex_clientmsgdev = VirtIO Ethernet Adapter #2$
    118             dp_regex_clientsupportdev = VirtIO Ethernet Adapter #3$
    119             # Device selection for the NDISTest server machine
    120             dp_regex_servermsgdev = VirtIO Ethernet Adapter$
    121             dp_regex_serversupportdev = VirtIO Ethernet Adapter #2$
    122 
    123 variants:
    124     - @up:
    125         no autotest.npb autotest.tsc
    126     - smp2:
    127         smp = 2
    128         used_cpus = 2
    129         stress_boot: used_cpus = 10
    130         timedrift.with_load: used_cpus = 100
    131 
    132 variants:
    133     - @ide:
    134         drive_format=ide
    135     - scsi:
    136         drive_format=scsi
    137     - virtio_blk:
    138         drive_format=virtio
    139         # Some older qemu might need image_boot=yes for virtio images to work.
    140         # Please uncomment the below if that is the case.
    141         #image_boot=yes
    142     - ahci:
    143         drive_format=ahci
    144         cd_format=ahci
    145     - usb.stick:
    146         drive_format=usb2
    147     - usb.cdrom:
    148         cd_format=usb2
    149 
    150 variants:
    151     - @qcow2:
    152         image_format = qcow2
    153         check_image = yes
    154     - vmdk:
    155         no ioquit
    156         image_format = vmdk
    157     - raw:
    158         no ioquit
    159         image_format = raw
    160 
    161 variants:
    162     - @smallpages:
    163     - hugepages:
    164         setup_hugepages = yes
    165         extra_params += " -mem-path /mnt/kvm_hugepage"
    166 
    167 variants:
    168     - @no_pci_assignable:
    169         pci_assignable = no
    170     - pf_assignable:
    171         pci_assignable = pf
    172         device_names = eth1
    173     - vf_assignable:
    174         pci_assignable = vf
    175         # Driver (kernel module) that supports SR-IOV hardware.
    176         # As of today (30-11-2009), we have 2 drivers for this type of hardware:
    177         # Intel 82576 Gigabit Ethernet Controller - igb
    178         # Neterion X3100 - vxge
    179         driver = igb
    180         # Driver option to specify the maximum number of virtual functions
    181         # (on vxge the option is , for example, is max_config_dev)
    182         # the default below is for the igb driver
    183         driver_option = "max_vfs=7"
    184         # Number of devices that are going to be requested.
    185         devices_requested = 7
    186