domain.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <domain type='kvm' id='8'>
  2. <name>{{ item }}</name>
  3. <memory unit='GiB'>1</memory>
  4. <metadata xmlns:ansible="https://github.com/ansible/ansible">
  5. <ansible:tags>
  6. <ansible:tag>env-{{ cluster }}</ansible:tag>
  7. <ansible:tag>host-type-{{ type }}</ansible:tag>
  8. <ansible:tag>sub-host-type-{{ g_sub_host_type }}</ansible:tag>
  9. </ansible:tags>
  10. </metadata>
  11. <currentMemory unit='GiB'>1</currentMemory>
  12. <vcpu placement='static'>2</vcpu>
  13. <os>
  14. <type arch='x86_64' machine='pc'>hvm</type>
  15. <boot dev='hd'/>
  16. </os>
  17. <features>
  18. <acpi/>
  19. <apic/>
  20. <pae/>
  21. </features>
  22. <clock offset='utc'>
  23. <timer name='rtc' tickpolicy='catchup'/>
  24. <timer name='pit' tickpolicy='delay'/>
  25. <timer name='hpet' present='no'/>
  26. </clock>
  27. <on_poweroff>destroy</on_poweroff>
  28. <on_reboot>restart</on_reboot>
  29. <on_crash>restart</on_crash>
  30. <devices>
  31. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  32. <disk type='file' device='disk'>
  33. <driver name='qemu' type='qcow2'/>
  34. <source file='{{ os_libvirt_storage_pool_path }}/{{ item }}.qcow2'/>
  35. <target dev='vda' bus='virtio'/>
  36. </disk>
  37. <disk type='file' device='cdrom'>
  38. <driver name='qemu' type='raw'/>
  39. <source file='{{ os_libvirt_storage_pool_path }}/{{ item }}_cloud-init.iso'/>
  40. <target dev='vdb' bus='virtio'/>
  41. <readonly/>
  42. </disk>
  43. <controller type='usb' index='0' />
  44. <interface type='network'>
  45. <source network='{{ os_libvirt_network }}'/>
  46. <model type='virtio'/>
  47. </interface>
  48. <serial type='pty'>
  49. <target port='0'/>
  50. </serial>
  51. <console type='pty'>
  52. <target type='serial' port='0'/>
  53. </console>
  54. <channel type='spicevmc'>
  55. <target type='virtio' name='com.redhat.spice.0'/>
  56. </channel>
  57. <input type='tablet' bus='usb' />
  58. <input type='mouse' bus='ps2'/>
  59. <graphics type='spice' autoport='yes' />
  60. <video>
  61. <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
  62. </video>
  63. <redirdev bus='usb' type='spicevmc'>
  64. </redirdev>
  65. <memballoon model='virtio'>
  66. </memballoon>
  67. </devices>
  68. </domain>