1# Copy this file to base.cfg and edit it.
2#
3# Define the objects we'll be using
4vms = vm1
5vm_type = kvm
6images = image1
7cdroms = cd1
8nics = nic1
9monitors = humanmonitor1
10main_monitor = humanmonitor1
11monitor_type_humanmonitor1 = human
12monitor_type = human
13main_vm = vm1
14
15# Location of the qemu programs. You can refer to absolute paths here.
16qemu_binary = qemu
17qemu_img_binary = qemu-img
18
19# Default VM params
20# Number of processors
21smp = 1
22
23# Memory
24mem = 1024
25
26# Hard disk
27image_size = 10G
28image_raw_device = no
29drive_index_image1 = 0
30drive_cache = none
31
32# Cdrom drive index
33drive_index_cd1 = 1
34
35# Display
36display = vnc
37
38# If display = spice, you can set specific spice stuff here
39qxl = on
40qxl_dev_nr = 1
41spice = disable-ticketing
42
43# NIC parameters
44nic_mode = tap
45# By default we use libvirt's bridge
46bridge = virbr0
47run_tcpdump = yes
48
49# Some preprocessor/postprocessor params
50start_vm = yes
51kill_vm = no
52kill_vm_gracefully = yes
53kill_unresponsive_vms = yes
54
55# Screendump thread params
56convert_ppm_files_to_png_on_error = yes
57keep_ppm_files = no
58keep_ppm_files_on_error = no
59take_regular_screendumps = yes
60keep_screendumps_on_error = yes
61screendump_delay = 5
62screendump_quality = 30
63screendump_temp_dir = /dev/shm
64screendump_verbose = no
65
66# Default remote shell port (SSH under linux)
67shell_port = 22
68
69# Default scheduler params
70used_cpus = 1
71used_mem = 512
72
73# Port redirections
74redirs = remote_shell
75guest_port_remote_shell = 22
76
77# Profilers
78profilers = kvm_stat
79
80# Timeouts
81login_timeout = 360
82
83# NFS directory of guest images
84images_good = fileserver.foo.com:/autotest/images_good
85
86# NICs
87variants:
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
123variants:
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
132variants:
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
150variants:
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
161variants:
162    - @smallpages:
163    - hugepages:
164        setup_hugepages = yes
165        extra_params += " -mem-path /mnt/kvm_hugepage"
166
167variants:
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