Guest User

vm xml

a guest
Apr 12th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. <!--
  2. WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
  3. OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  4. virsh edit win10
  5. or other application using the libvirt API.
  6. -->
  7. <!-- mycomment -->
  8. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  9. <name>win10</name>
  10. <uuid>9ac4b4e2-1960-4d4b-9918-83becd632ff2</uuid>
  11. <!-- customize memory -->
  12. <memory unit='GiB'>8</memory>
  13. <currentMemory unit='GiB'>8</currentMemory>
  14. <memoryBacking>
  15. <hugepages/>
  16. </memoryBacking>
  17. <!-- mycomment -->
  18. <vcpu placement='static'>6</vcpu>
  19. <cputune>
  20. <vcpupin vcpu='0' cpuset='1'/>
  21. <vcpupin vcpu='1' cpuset='2'/>
  22. <vcpupin vcpu='2' cpuset='3'/>
  23. <vcpupin vcpu='3' cpuset='5'/>
  24. <vcpupin vcpu='4' cpuset='6'/>
  25. <vcpupin vcpu='5' cpuset='7'/>
  26. </cputune>
  27. <cpu mode='host-passthrough'>
  28. <topology sockets='1' cores='3' threads='2'/>
  29. </cpu>
  30. <os>
  31. <type arch='x86_64' machine='pc-i440fx-2.4'>hvm</type>
  32. <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
  33. <nvram template='/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd'/>
  34. <boot dev='hd'/>
  35. </os>
  36. <features>
  37. <acpi/>
  38. <apic/>
  39. <pae/>
  40. <kvm>
  41. <!-- hide kvm from the os to run nvidia drivers -->
  42. <hidden state='on'/>
  43. </kvm>
  44. <!-- mycomment -->
  45. <vmport state='off'/>
  46. </features>
  47. <!-- mycomment -->
  48. <clock offset='localtime'>
  49. <timer name='rtc' tickpolicy='catchup'/>
  50. <timer name='pit' tickpolicy='delay'/>
  51. <timer name='hpet' present='no'/>
  52. </clock>
  53. <on_poweroff>destroy</on_poweroff>
  54. <on_reboot>restart</on_reboot>
  55. <on_crash>restart</on_crash>
  56. <pm>
  57. <!-- mycomment -->
  58. <suspend-to-mem enabled='no'/>
  59. <suspend-to-disk enabled='no'/>
  60. </pm>
  61. <devices>
  62. <emulator>/usr/bin/qemu-kvm</emulator>
  63. <!-- System disk in a qcow2 container -->
  64. <disk type='file' device='disk'>
  65. <driver name='qemu' type='qcow2'/>
  66. <source file='/home/zipeldiablo/Windows/win10.qcow2'/>
  67. <target dev='vda' bus='virtio'/>
  68. <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  69. </disk>
  70. <!-- mycomment -->
  71. <controller type='pci' index='0' model='pci-root'/>
  72. <controller type='usb' index='0' model='nec-xhci'>
  73. <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  74. </controller>
  75. <!-- use network bridge as network interface -->
  76. <interface type='bridge'>
  77. <mac address='52:54:00:e9:91:48'/>
  78. <source bridge='br0'/>
  79. <model type='virtio'/>
  80. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  81. </interface>
  82. <!-- controller pci -->
  83. <hostdev mode='subsystem' type='pci' managed='yes'>
  84. <source>
  85. <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  86. </source>
  87. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  88. </hostdev>
  89. <!-- controller pci bis -->
  90. <hostdev mode='subsystem' type='pci' managed='yes'>
  91. <source>
  92. <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
  93. </source>
  94. <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  95. </hostdev>
  96. <!-- controler usb card -->
  97. <hostdev mode='subsystem' type='pci' managed='yes'>
  98. <source>
  99. <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  100. </source>
  101. <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
  102. </hostdev>
  103. </devices>
  104. <qemu:commandline>
  105. <qemu:arg value='-object'/>
  106. <qemu:arg value='input-linux,id=keyb,evdev=/dev/input/by-id/usb-Heng_Yu_Technology_K82H-event-kbd,grab_all=on,repeat=on'/>
  107. <qemu:arg value='-object'/>
  108. <qemu:arg value='input-linux,id=keyboard,evdev=/dev/input/by-id/usb-Heng_Yu_Technology_K82H-event-if01'/>
  109. <qemu:arg value='-object'/>
  110. <qemu:arg value='input-linux,id=mouse,evdev=/dev/input/by-path/pci-0000:00:14.0-usb-0:4:1.0-event-mouse'/>
  111. </qemu:commandline>
  112. </domain>
Add Comment
Please, Sign In to add comment