Advertisement
passthrough

vm xml

Apr 29th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. <domain type='kvm'>
  2. <name>windows-10-pro</name>
  3. <uuid>66677e1d-5704-40d3-8b14-cd1686e1c335</uuid>
  4. <metadata>
  5. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6. <libosinfo:os id="http://microsoft.com/win/10"/>
  7. </libosinfo:libosinfo>
  8. </metadata>
  9. <memory unit='KiB'>16777216</memory>
  10. <currentMemory unit='KiB'>16777216</currentMemory>
  11. <vcpu placement='static'>4</vcpu>
  12. <os>
  13. <type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
  14. <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
  15. <nvram>/var/lib/libvirt/qemu/nvram/windows-10-pro_VARS.fd</nvram>
  16. <boot dev='hd'/>
  17. </os>
  18. <features>
  19. <acpi/>
  20. <apic/>
  21. <hyperv>
  22. <relaxed state='on'/>
  23. <vapic state='on'/>
  24. <spinlocks state='on' retries='8191'/>
  25. </hyperv>
  26. <vmport state='off'/>
  27. </features>
  28. <cpu mode='host-passthrough' check='none'/>
  29. <clock offset='localtime'>
  30. <timer name='rtc' tickpolicy='catchup'/>
  31. <timer name='pit' tickpolicy='delay'/>
  32. <timer name='hpet' present='no'/>
  33. <timer name='hypervclock' present='yes'/>
  34. </clock>
  35. <on_poweroff>destroy</on_poweroff>
  36. <on_reboot>restart</on_reboot>
  37. <on_crash>destroy</on_crash>
  38. <pm>
  39. <suspend-to-mem enabled='no'/>
  40. <suspend-to-disk enabled='no'/>
  41. </pm>
  42. <devices>
  43. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  44. <disk type='file' device='disk'>
  45. <driver name='qemu' type='qcow2' cache='none' io='native'/>
  46. <source file='/img/templates/windows-10-pro.qcow2'/>
  47. <target dev='sda' bus='scsi'/>
  48. <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  49. </disk>
  50. <disk type='file' device='cdrom'>
  51. <driver name='qemu' type='raw'/>
  52. <disk type='file' device='cdrom'>
  53. <driver name='qemu' type='raw'/>
  54. <source file='/dat/iso/Win10_1909_English_x64.iso'/>
  55. <target dev='sdb' bus='sata'/>
  56. <readonly/>
  57. <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  58. </disk>
  59. <controller type='usb' index='0' model='qemu-xhci' ports='15'>
  60. <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  61. </controller>
  62. <controller type='scsi' index='0' model='virtio-scsi'>
  63. <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
  64. </controller>
  65. <controller type='pci' index='0' model='pci-root'/>
  66. <controller type='sata' index='0'>
  67. <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  68. </controller>
  69. <controller type='virtio-serial' index='0'>
  70. <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
  71. </controller>
  72. <interface type='network'>
  73. <mac address='52:54:00:8b:44:54'/>
  74. <source network='default'/>
  75. <model type='virtio'/>
  76. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  77. </interface>
  78. <channel type='spicevmc'>
  79. <target type='virtio' name='com.redhat.spice.0'/>
  80. <address type='virtio-serial' controller='0' bus='0' port='1'/>
  81. </channel>
  82. <input type='tablet' bus='usb'>
  83. <address type='usb' bus='0' port='1'/>
  84. </input>
  85. <input type='mouse' bus='ps2'/>
  86. <input type='keyboard' bus='ps2'/>
  87. <graphics type='spice' autoport='yes'>
  88. <listen type='address'/>
  89. <image compression='off'/>
  90. </graphics>
  91. <sound model='ich9'>
  92. <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  93. </sound>
  94. <video>
  95. <model type='none'/>
  96. </video>
  97. <hostdev mode='subsystem' type='pci' managed='yes'>
  98. <source>
  99. <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  100. </source>
  101. <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
  102. </hostdev>
  103. <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
  104. </hostdev>
  105. <redirdev bus='usb' type='spicevmc'>
  106. <address type='usb' bus='0' port='2'/>
  107. </redirdev>
  108. <redirdev bus='usb' type='spicevmc'>
  109. <address type='usb' bus='0' port='3'/>
  110. </redirdev>
  111. <memballoon model='virtio'>
  112. <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
  113. </memballoon>
  114. <shmem name='looking-glass'>
  115. <model type='ivshmem-plain'/>
  116. <size unit='M'>32</size>
  117. <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
  118. </shmem>
  119. </devices>
  120. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement