<IMAGE_POOL>
  <% images.each do |id,image| %>
  <IMAGE>
    <ID><%= id %></ID>
    <UID><%= image[:uid] ? image[:uid] : 0 %></UID>
    <GID><%= image[:gid] ? image[:gid] : 0 %></GID>
    <UNAME><%= image[:uname] ? image[:uname] : 'oneadmin' %></UNAME>
    <GNAME><%= image[:gname] ? image[:gname] : 'oneadmin' %></GNAME>
    <NAME><%= image[:name] ? image[:name] : 'ttylinux' %></NAME>
    <TYPE><%= image[:type] ? image[:type] : 0 %></TYPE>
    <PUBLIC><%= image[:pub] ? image[:pub] : 0 %></PUBLIC>
    <PERSISTENT><%= image[:persistent] ? image[:persistent] : 0 %></PERSISTENT>
    <REGTIME>1314875019</REGTIME>
    <SOURCE><%= image[:source] ? image[:source] : '/etc/hosts' %></SOURCE>
    <STATE><%= image[:state] ? image[:state] : 1 %></STATE>
    <SIZE><%= image[:size] ? image[:size] : 100 %></SIZE>
    <RUNNING_VMS>0</RUNNING_VMS>
    <TEMPLATE>
      <DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX>
      <NAME><![CDATA[PEPE]]></NAME>
      <PATH><![CDATA[/etc/hosts]]></PATH>
      <TYPE><![CDATA[OS]]></TYPE>
    </TEMPLATE>
  </IMAGE>
  <% end %>
</IMAGE_POOL>