<!--
You can load this machine definition into libvirt using:
	sudo virsh define east.xml
-->

<domain type='kvm'>
  <name>@@NAME@@</name>
  <memory unit='KiB'>393216</memory>
  <currentMemory unit='KiB'>393216</currentMemory>
  <vcpu>1</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>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='@@POOLSPACE@@/@@NAME@@.qcow2'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <controller type='usb' index='0'>
    </controller>
    <controller type='virtio-serial' index='0'>
    </controller>
    <filesystem type='mount' accessmode='squash'>
      <source dir='@@TESTINGDIR@@'/>
      <target dir='testing'/>
    </filesystem>
    <filesystem type='mount' accessmode='squash'>
      <source dir='@@SOURCEDIR@@'/>
      <target dir='swansource'/>
    </filesystem>
    <filesystem type='mount' accessmode='squash'>
      <source dir='/tmp'/>
      <target dir='tmp'/>
    </filesystem>
    <interface type='network'>
      <mac address='12:00:00:dc:bc:ff'/>
      <source network='192_0_2'/>
      <model type='virtio'/>
    </interface>
    <interface type='network'>
      <mac address='12:00:00:64:64:23'/>
      <source network='192_1_2'/>
      <model type='virtio'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
    </channel>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='spice' autoport='yes'/>
    <video>
      <model type='qxl' vram='65536' heads='1'/>
    </video>
    <memballoon model='virtio'>
    </memballoon>
    <rng model='virtio'>
      <backend model='random'>/dev/random</backend>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </rng>
  </devices>
  <seclabel type='static' model='dac' relabel='yes'>
   <label>@@USER@@:@@GROUP@@</label>
   <imagelabel>@@USER@@:@@GROUP@@</imagelabel>
  </seclabel>
</domain>
