Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 1 | <domain type='kvm'> |
| 2 | <name>{{VMName}}</name> |
| 3 | <memory unit='KiB'>1048576</memory> |
| 4 | <currentMemory unit='KiB'>1048576</currentMemory> |
| 5 | <vcpu placement='static'>2</vcpu> |
| 6 | <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> |
| 14 | <cpu mode='custom' match='exact'> |
| 15 | <model fallback='allow'>Haswell-noTSX</model> |
| 16 | </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'/> |
| 33 | <source file='/var/lib/libvirt/images/{{VMName}}.qcow2'/> |
| 34 | <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'> |
| 66 | <mac address='52:54:00:ed:19:74'/> |
| 67 | <source network='{{VMNetwork}}'/> |
| 68 | <model type='virtio'/> |
| 69 | <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> |
| 70 | </interface> |
| 71 | <console type='pty'> |
| 72 | <target type='virtio' port='0'/> |
| 73 | </console> |
| 74 | <input type='mouse' bus='ps2'/> |
| 75 | <input type='keyboard' bus='ps2'/> |
| 76 | <graphics type='vnc' port='-1' autoport='yes'/> |
| 77 | <video> |
| 78 | <model type='cirrus' vram='16384' heads='1'/> |
| 79 | <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> |
| 80 | </video> |
| 81 | <memballoon model='virtio'> |
| 82 | <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> |
| 83 | </memballoon> |
| 84 | </devices> |
| 85 | </domain> |
| 86 | |