Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 1 | <domain type='kvm'> |
Sergio Slobodrian | c547771 | 2017-06-07 11:56:56 -0400 | [diff] [blame] | 2 | <name>{{ VMName }}</name> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 3 | <memory unit='KiB'>1048576</memory> |
| 4 | <currentMemory unit='KiB'>1048576</currentMemory> |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 5 | <vcpu placement='static'>4</vcpu> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 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> |
Sergio Slobodrian | fb89efa | 2017-08-02 14:16:14 -0400 | [diff] [blame] | 14 | <cpu mode='host-passthrough'> |
Sergio Slobodrian | 9d9c844 | 2017-07-25 07:55:42 -0400 | [diff] [blame] | 15 | <model fallback='allow'/> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 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'/> |
Sergio Slobodrian | c547771 | 2017-06-07 11:56:56 -0400 | [diff] [blame] | 33 | <source file='/var/lib/libvirt/images/{{ VMName }}.qcow2'/> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 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'> |
Sergio Slobodrian | c547771 | 2017-06-07 11:56:56 -0400 | [diff] [blame] | 66 | <source network='{{ VMNetwork }}'/> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 67 | <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 | |