Add iperf VM/vhost creation
[vpp.git] / extras / vpp_config / data / iperf-centos.xml.template
1 <domain type='kvm' id='54'>
2   <name>{vmname}</name>
3   <memory unit='KiB'>1048576</memory>
4   <currentMemory unit='KiB'>1048576</currentMemory>
5   <memoryBacking>
6     <hugepages>
7       <page size='2048' unit='KiB'/>
8     </hugepages>
9   </memoryBacking>
10   <vcpu placement='static'>1</vcpu>
11   <resource>
12     <partition>/machine</partition>
13   </resource>
14   <os>
15     <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
16     <boot dev='hd'/>
17   </os>
18   <features>
19     <acpi/>
20     <apic/>
21   </features>
22   <cpu mode='host-model'>
23     <model fallback='allow'></model>
24   </cpu>
25   <clock offset='utc'>
26     <timer name='rtc' tickpolicy='catchup'/>
27     <timer name='pit' tickpolicy='delay'/>
28     <timer name='hpet' present='no'/>
29   </clock>
30   <on_poweroff>destroy</on_poweroff>
31   <on_reboot>restart</on_reboot>
32   <on_crash>restart</on_crash>
33   <pm>
34     <suspend-to-mem enabled='no'/>
35     <suspend-to-disk enabled='no'/>
36   </pm>
37   <devices>
38     <emulator>/usr/libexec/qemu-kvm</emulator>
39     <disk type='file' device='disk'>
40       <driver name='qemu' type='qcow2'/>
41       <source file='{imagename}'/>
42       <backingStore/>
43       <target dev='vda' bus='virtio'/>
44       <alias name='virtio-disk0'/>
45       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
46     </disk>
47     <disk type='file' device='cdrom'>
48       <driver name='qemu' type='raw'/>
49       <source file='{isoname}'/>
50       <backingStore/>
51       <target dev='hda' bus='ide'/>
52       <readonly/>
53       <alias name='ide0-0-0'/>
54       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
55     </disk>
56     <controller type='usb' index='0' model='ich9-ehci1'>
57       <alias name='usb'/>
58       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
59     </controller>
60     <controller type='pci' index='0' model='pci-root'>
61       <alias name='pci.0'/>
62     </controller>
63     <controller type='ide' index='0'>
64       <alias name='ide'/>
65       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
66     </controller>
67     <controller type='virtio-serial' index='0'>
68       <alias name='virtio-serial0'/>
69       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
70     </controller>
71     <interface type='network'>
72       <mac address='52:54:00:4c:47:f3'/>
73       <source network='default' bridge='virbr0'/>
74       <target dev='vnet0'/>
75       <model type='virtio'/>
76       <alias name='net0'/>
77       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
78     </interface>
79     <serial type='pty'>
80       <source path='/dev/pts/2'/>
81       <target port='0'/>
82       <alias name='serial0'/>
83     </serial>
84     <console type='pty' tty='/dev/pts/2'>
85       <source path='/dev/pts/2'/>
86       <target type='serial' port='0'/>
87       <alias name='serial0'/>
88     </console>
89     <input type='mouse' bus='ps2'/>
90     <input type='keyboard' bus='ps2'/>
91     <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
92       <listen type='address' address='127.0.0.1'/>
93     </graphics>
94     <memballoon model='virtio'>
95       <alias name='balloon0'/>
96       <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
97     </memballoon>
98   </devices>
99   <seclabel type='dynamic' model='selinux' relabel='yes'>
100     <label>system_u:system_r:svirt_t:s0:c532,c551</label>
101     <imagelabel>system_u:object_r:svirt_image_t:s0:c532,c551</imagelabel>
102   </seclabel>
103   <seclabel type='dynamic' model='dac' relabel='yes'>
104     <label>+107:+107</label>
105     <imagelabel>+107:+107</imagelabel>
106   </seclabel>
107 </domain>
108