<domain type='kvm'>
        <name>{{machinename}}</name>
        <memory unit='MB'>{{memory}}</memory>
        <currentMemory unit='MB'>{{memory}}</currentMemory>
        <vcpu placement='static'>{{nrcpu}}</vcpu>
        <os>
            <type arch='x86_64'>hvm</type>
            <boot dev='hd'/>
        </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>/usr/bin/qemu-system-x86_64</emulator>
            <disk type='block' device='disk'>
                <driver name='qemu' type='qcow2' cache='none' io='native'/>
                <source dev='{{poolpath}}/{{diskname}}'/>
                <target dev='vda' bus='virtio'/>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
            </disk>
            <disk type='file' device='cdrom'>
                <driver name='qemu' type='raw'/>
                <source file='{{poolpath}}/{{isoname}}'/>
                <target dev='hdc' bus='ide'/>
            </disk>
            <controller type='usb' index='0'>
                <alias name='usb0'/>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
            </controller>
            <controller type='ide' index='0'>
                <alias name='ide0'/>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
            </controller>
            <interface type='network'>
                <source network='{{network}}'/>
                <mac address='{{macaddress}}'/>
                <target dev='{{machinename}}-{{vxlan}}' />
                <model type='virtio'/>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
            </interface>
            <serial type='pty'>
                <source path='/dev/pts/1'/>
                <target port='0'/>
                <alias name='serial0'/>
            </serial>
            <console type='pty' tty='/dev/pts/1'>
                <source path='/dev/pts/1'/>
                <target type='serial' port='0'/>
                <alias name='serial0'/>
            </console>
	    <input type='mouse' bus='ps2'/>
	    <input type='tablet' bus='usb'/>
            <graphics type='vnc' autoport='yes' listen='0.0.0.0'>
                <listen type='address' address='0.0.0.0'/>
            </graphics>
            <video>
                <model type='cirrus' vram='9216' heads='1'/>
                <alias name='video0'/>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
            </video>
            <memballoon model='virtio'>
                <alias name='balloon0'/>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
            </memballoon>
        </devices>
 </domain> 

