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