<?xml version="1.0" encoding="UTF-8"?>
<!-- 
     Image description of the Kronolith appliance 

     To use this, run
     
     virt-image -i image.xml -n HOST &dash;&dash;vnc
-->
<image>
  <!-- 
       The virtual machine 
  -->
  <name>kronolith-example-xen</name>
  <description>
    A Kronolith appliance, suitable for paravirt Xen
  </description>
  <domain>
    <!-- Describe how to boot, and constraints on the host on which
         we can boot. Here, we only boot on paravirt Xen -->
    <boot type="xen">
      <!-- Constraints on the host platform: we want an i686 arch, and
           we need PAE enabled on the host -->
      <guest>
        <arch>i686</arch>
        <features><pae/></features>
      </guest>
      <!-- How to boot the domain: use pygrub. virt-image knows
           where to find it -->
      <os>
        <loader>pygrub</loader>
      </os>
      <!-- Map the disk images into the guest. We could explicitly set
           names for the disks (xvda, xvdb, ...) using the target attribute.
      -->
      <drive disk="root.raw"/>
      <drive disk="database.raw"/>
    </boot>
    <!-- Some fairly standard hardware attributes, like number of CPU's,
         size of memory, that we need one network interface and export
         graphics -->
    <devices>
      <vcpu>1</vcpu>
      <memory>262144</memory>
      <interface/>
      <graphics/>
    </devices>
  </domain>
  <!-- 
       The storage backing the virtual machine. File names are relative to
       this XML file, and used to identify the disks when mapping them into
       the guest.

       Currently, only raw and iso are supported as formats
  -->
  <storage>
    <disk file="root.raw" use="system" format="raw"/>
    <disk file="database.raw" use="user" format="raw"/>
  </storage>
</image>
