blob: 0c2d5218005d5355bf9704765b689932de0e30d5 [file] [log] [blame]
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04001<domain type='kvm'>
Sergio Slobodrianc5477712017-06-07 11:56:56 -04002 <name>{{ VMName }}</name>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04003 <memory unit='KiB'>1048576</memory>
4 <currentMemory unit='KiB'>1048576</currentMemory>
Sergio Slobodriancab0a392017-07-13 08:42:10 -04005 <vcpu placement='static'>4</vcpu>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04006 <os>
7 <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
8 <boot dev='hd'/>
9 </os>
10 <features>
11 <acpi/>
12 <apic/>
13 </features>
Sergio Slobodrian9d9c8442017-07-25 07:55:42 -040014 <cpu mode='host-model'>
15 <model fallback='allow'/>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040016 </cpu>
17 <clock offset='utc'>
18 <timer name='rtc' tickpolicy='catchup'/>
19 <timer name='pit' tickpolicy='delay'/>
20 <timer name='hpet' present='no'/>
21 </clock>
22 <on_poweroff>destroy</on_poweroff>
23 <on_reboot>restart</on_reboot>
24 <on_crash>restart</on_crash>
25 <pm>
26 <suspend-to-mem enabled='no'/>
27 <suspend-to-disk enabled='no'/>
28 </pm>
29 <devices>
30 <emulator>/usr/bin/kvm-spice</emulator>
31 <disk type='file' device='disk'>
32 <driver name='qemu' type='qcow2'/>
Sergio Slobodrianc5477712017-06-07 11:56:56 -040033 <source file='/var/lib/libvirt/images/{{ VMName }}.qcow2'/>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040034 <target dev='hda' bus='ide'/>
35 <address type='drive' controller='0' bus='0' target='0' unit='0'/>
36 </disk>
37 <disk type='file' device='cdrom'>
38 <driver name='qemu' type='raw'/>
39 <target dev='hdb' bus='ide'/>
40 <readonly/>
41 <address type='drive' controller='0' bus='0' target='0' unit='1'/>
42 </disk>
43 <controller type='usb' index='0' model='ich9-ehci1'>
44 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
45 </controller>
46 <controller type='usb' index='0' model='ich9-uhci1'>
47 <master startport='0'/>
48 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
49 </controller>
50 <controller type='usb' index='0' model='ich9-uhci2'>
51 <master startport='2'/>
52 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
53 </controller>
54 <controller type='usb' index='0' model='ich9-uhci3'>
55 <master startport='4'/>
56 <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
57 </controller>
58 <controller type='pci' index='0' model='pci-root'/>
59 <controller type='ide' index='0'>
60 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
61 </controller>
62 <controller type='virtio-serial' index='0'>
63 <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
64 </controller>
65 <interface type='network'>
Sergio Slobodrianc5477712017-06-07 11:56:56 -040066 <source network='{{ VMNetwork }}'/>
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -040067 <model type='virtio'/>
68 <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
69 </interface>
70 <console type='pty'>
71 <target type='virtio' port='0'/>
72 </console>
73 <input type='mouse' bus='ps2'/>
74 <input type='keyboard' bus='ps2'/>
75 <graphics type='vnc' port='-1' autoport='yes'/>
76 <video>
77 <model type='cirrus' vram='16384' heads='1'/>
78 <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
79 </video>
80 <memballoon model='virtio'>
81 <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
82 </memballoon>
83 </devices>
84</domain>
85