Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright 2017-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 16 | <domain type='kvm'> |
Sergio Slobodrian | c547771 | 2017-06-07 11:56:56 -0400 | [diff] [blame] | 17 | <name>{{ VMName }}</name> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 18 | <memory unit='KiB'>1048576</memory> |
| 19 | <currentMemory unit='KiB'>1048576</currentMemory> |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 20 | <vcpu placement='static'>4</vcpu> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 21 | <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 Slobodrian | fb89efa | 2017-08-02 14:16:14 -0400 | [diff] [blame] | 29 | <cpu mode='host-passthrough'> |
Sergio Slobodrian | 9d9c844 | 2017-07-25 07:55:42 -0400 | [diff] [blame] | 30 | <model fallback='allow'/> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 31 | </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 Slobodrian | c547771 | 2017-06-07 11:56:56 -0400 | [diff] [blame] | 48 | <source file='/var/lib/libvirt/images/{{ VMName }}.qcow2'/> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 49 | <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 Slobodrian | c547771 | 2017-06-07 11:56:56 -0400 | [diff] [blame] | 81 | <source network='{{ VMNetwork }}'/> |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 82 | <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 | |