blob: 447f7b0a5a3eda83b609666db32e58d4d1e995a7 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001<!--
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040016<domain type='kvm'>
Sergio Slobodrianc5477712017-06-07 11:56:56 -040017 <name>{{ VMName }}</name>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040018 <memory unit='KiB'>1048576</memory>
19 <currentMemory unit='KiB'>1048576</currentMemory>
Sergio Slobodriancab0a392017-07-13 08:42:10 -040020 <vcpu placement='static'>4</vcpu>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040021 <os>
22 <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
23 <boot dev='hd'/>
24 </os>
25 <features>
26 <acpi/>
27 <apic/>
28 </features>
Sergio Slobodrianfb89efa2017-08-02 14:16:14 -040029 <cpu mode='host-passthrough'>
Sergio Slobodrian9d9c8442017-07-25 07:55:42 -040030 <model fallback='allow'/>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040031 </cpu>
32 <clock offset='utc'>
33 <timer name='rtc' tickpolicy='catchup'/>
34 <timer name='pit' tickpolicy='delay'/>
35 <timer name='hpet' present='no'/>
36 </clock>
37 <on_poweroff>destroy</on_poweroff>
38 <on_reboot>restart</on_reboot>
39 <on_crash>restart</on_crash>
40 <pm>
41 <suspend-to-mem enabled='no'/>
42 <suspend-to-disk enabled='no'/>
43 </pm>
44 <devices>
45 <emulator>/usr/bin/kvm-spice</emulator>
46 <disk type='file' device='disk'>
47 <driver name='qemu' type='qcow2'/>
Sergio Slobodrianc5477712017-06-07 11:56:56 -040048 <source file='/var/lib/libvirt/images/{{ VMName }}.qcow2'/>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040049 <target dev='hda' bus='ide'/>
50 <address type='drive' controller='0' bus='0' target='0' unit='0'/>
51 </disk>
52 <disk type='file' device='cdrom'>
53 <driver name='qemu' type='raw'/>
54 <target dev='hdb' bus='ide'/>
55 <readonly/>
56 <address type='drive' controller='0' bus='0' target='0' unit='1'/>
57 </disk>
58 <controller type='usb' index='0' model='ich9-ehci1'>
59 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
60 </controller>
61 <controller type='usb' index='0' model='ich9-uhci1'>
62 <master startport='0'/>
63 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
64 </controller>
65 <controller type='usb' index='0' model='ich9-uhci2'>
66 <master startport='2'/>
67 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
68 </controller>
69 <controller type='usb' index='0' model='ich9-uhci3'>
70 <master startport='4'/>
71 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
72 </controller>
73 <controller type='pci' index='0' model='pci-root'/>
74 <controller type='ide' index='0'>
75 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
76 </controller>
77 <controller type='virtio-serial' index='0'>
78 <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
79 </controller>
80 <interface type='network'>
Sergio Slobodrianc5477712017-06-07 11:56:56 -040081 <source network='{{ VMNetwork }}'/>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040082 <model type='virtio'/>
83 <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
84 </interface>
85 <console type='pty'>
86 <target type='virtio' port='0'/>
87 </console>
88 <input type='mouse' bus='ps2'/>
89 <input type='keyboard' bus='ps2'/>
90 <graphics type='vnc' port='-1' autoport='yes'/>
91 <video>
92 <model type='cirrus' vram='16384' heads='1'/>
93 <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
94 </video>
95 <memballoon model='virtio'>
96 <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
97 </memballoon>
98 </devices>
99</domain>
100