| <domain type='%(engine)s'> |
| <name>%(name)s</name> |
| <memory unit='KiB'>%(memory)s</memory> |
| <vcpu>%(cpus)s</vcpu> |
| <os> |
| <type arch='%(arch)s' machine='pc-1.0'>hvm</type> |
| <boot dev='%(bootdev)s'/> |
| <bootmenu enable='no'/> |
| %(bios_serial)s |
| </os> |
| <features> |
| <acpi/> |
| <apic/> |
| <pae/> |
| </features> |
| <clock offset='utc'/> |
| <on_poweroff>destroy</on_poweroff> |
| <on_reboot>restart</on_reboot> |
| <on_crash>restart</on_crash> |
| <devices> |
| <emulator>%(emulator)s</emulator> |
| <disk type='file' device='disk'> |
| <driver name='qemu' type='qcow2' cache='writeback'/> |
| <source file='%(imagefile)s'/> |
| <target dev='vda' bus='virtio'/> |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> |
| </disk> |
| <controller type='ide' index='0'> |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> |
| </controller> |
| <interface type='network'> |
| <source network='%(network)s'/> |
| <virtualport type='openvswitch'/> |
| <model type='%(nicdriver)s'/> |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> |
| </interface> |
| <input type='mouse' bus='ps2'/> |
| <graphics type='vnc' port='-1' autoport='yes'/> |
| <video> |
| <model type='cirrus' vram='9216' heads='1'/> |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> |
| </video> |
| %(console_log)s |
| <memballoon model='virtio'> |
| <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> |
| </memballoon> |
| </devices> |
| </domain> |
| |