Rewrite autocluster in Python
[tridge/autocluster.git] / templates / node.xml
1 <!-- template for initial install of cluster nodes -->
2 <domain type='kvm'>
3   <name>@@NAME@@</name>
4   <uuid>@@UUID@@</uuid>
5   <memory>@@MEM@@</memory>
6   <currentMemory>@@MEM@@</currentMemory>
7   <vcpu>@@NUMCPUS@@</vcpu>
8   <os>
9     <type>hvm</type>
10     <boot dev='hd'/>
11   </os>
12   <features>
13     <acpi/>
14   </features>
15   <clock offset='utc'/>
16   <on_poweroff>destroy</on_poweroff>
17   <on_reboot>restart</on_reboot>
18   <on_crash>destroy</on_crash>
19   <devices>
20     <emulator>@@KVM@@</emulator>
21     <disk type='file' device='disk'>
22       <source file='@@DISK@@'/>
23       <target dev='@@SYSTEM_DISK_PREFIX@@a' bus='@@SYSTEM_DISK_TYPE@@'/>
24       <driver name='qemu' type='@@SYSTEM_DISK_FORMAT@@' cache='@@SYSTEM_DISK_CACHE@@'/>
25     </disk>
26 @@@_SHARED_DISK_TEMPLATE@@@
27 @@@NETWORK_TEMPLATE@@@
28     <input type='mouse' bus='ps2'/>
29     <graphics type='vnc' port='-1' listen='127.0.0.1'/>
30     <serial type="file">
31      <source path="@@KVMLOG@@/serial.@@NAME@@"/>
32      <target port="1"/>
33     </serial>
34   </devices>
35 </domain>