core-admin/vm-config/xen-vm-template.xml

33 lines
863 B
XML
Raw Normal View History

<domain type='xen'>
<name>{name}</name>
{uuidnode}
<memory unit='MiB'>{maxmem}</memory>
<currentMemory unit='MiB'>{mem}</currentMemory>
<vcpu placement='static'>{vcpus}</vcpu>
<os>
<type arch='x86_64' machine='xenpv'>linux</type>
<kernel>{kerneldir}/vmlinuz</kernel>
<initrd>{kerneldir}/initramfs</initrd>
<cmdline>root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH plymouth.enable=0 {kernelopts}</cmdline>
</os>
<features>{features}</features>
<clock offset='utc' adjustment='reset'>
<timer name="tsc" mode="native"/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
{rootdev}
{privatedev}
{volatiledev}
{otherdevs}
{netdev}
{pcidevs}
<console type='pty'>
<target type='xen' port='0'/>
</console>
</devices>
</domain>