xen-vm-template.xml 822 B

12345678910111213141516171819202122232425262728293031
  1. <domain type='xen'>
  2. <name>{name}</name>
  3. <uuid>{uuid}</uuid>
  4. <memory unit='MiB'>{maxmem}</memory>
  5. <currentMemory unit='MiB'>{mem}</currentMemory>
  6. <vcpu placement='static'>{vcpus}</vcpu>
  7. <os>
  8. <type arch='x86_64' machine='xenpv'>linux</type>
  9. <kernel>{kerneldir}/vmlinuz</kernel>
  10. <initrd>{kerneldir}/initramfs</initrd>
  11. <cmdline>root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH 3 {kernelopts}</cmdline>
  12. </os>
  13. <clock offset='utc' adjustment='reset'>
  14. <timer name="tsc" mode="native"/>
  15. </clock>
  16. <on_poweroff>destroy</on_poweroff>
  17. <on_reboot>destroy</on_reboot>
  18. <on_crash>destroy</on_crash>
  19. <devices>
  20. {rootdev}
  21. {privatedev}
  22. {volatiledev}
  23. {otherdevs}
  24. {netdev}
  25. {pcidevs}
  26. <console type='pty'>
  27. <target type='xen' port='0'/>
  28. </console>
  29. </devices>
  30. </domain>