Advertisement
Guest User

Untitled

a guest
Feb 21st, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.63 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2.   <name>win10</name>
  3.   <uuid>c4953764-f14f-4799-88da-1086b4c4b1ae</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">16384000</memory>
  10.   <currentMemory unit="KiB">16384000</currentMemory>
  11.   <vcpu placement="static">8</vcpu>
  12.   <cputune>
  13.     <vcpupin vcpu="0" cpuset="4"/>
  14.     <vcpupin vcpu="1" cpuset="12"/>
  15.     <vcpupin vcpu="2" cpuset="5"/>
  16.     <vcpupin vcpu="3" cpuset="13"/>
  17.     <vcpupin vcpu="4" cpuset="6"/>
  18.     <vcpupin vcpu="5" cpuset="14"/>
  19.     <vcpupin vcpu="6" cpuset="7"/>
  20.     <vcpupin vcpu="7" cpuset="15"/>
  21.   </cputune>
  22.   <os>
  23.     <type arch="x86_64" machine="pc-q35-5.2">hvm</type>
  24.     <loader readonly="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
  25.     <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  26.   </os>
  27.   <features>
  28.     <acpi/>
  29.     <apic/>
  30.     <hyperv>
  31.       <relaxed state="on"/>
  32.       <vapic state="on"/>
  33.       <spinlocks state="on" retries="16384"/>
  34.       <vpindex state="on"/>
  35.       <runtime state="on"/>
  36.       <synic state="on"/>
  37.       <stimer state="on"/>
  38.       <reset state="on"/>
  39.       <vendor_id state="on" value="other"/>
  40.       <frequencies state="on"/>
  41.       <reenlightenment state="on"/>
  42.       <tlbflush state="on"/>
  43.       <ipi state="off"/>
  44.       <evmcs state="off"/>
  45.     </hyperv>
  46.     <vmport state="off"/>
  47.     <ioapic driver="kvm"/>
  48.   </features>
  49.   <cpu mode="host-passthrough" check="none" migratable="on">
  50.     <topology sockets="1" dies="1" cores="4" threads="2"/>
  51.     <cache mode="passthrough"/>
  52.   </cpu>
  53.   <clock offset="localtime">
  54.     <timer name="rtc" tickpolicy="catchup"/>
  55.     <timer name="pit" tickpolicy="delay"/>
  56.     <timer name="hpet" present="no"/>
  57.     <timer name="hypervclock" present="yes"/>
  58.   </clock>
  59.   <on_poweroff>destroy</on_poweroff>
  60.   <on_reboot>restart</on_reboot>
  61.   <on_crash>destroy</on_crash>
  62.   <pm>
  63.     <suspend-to-mem enabled="no"/>
  64.     <suspend-to-disk enabled="no"/>
  65.   </pm>
  66.   <devices>
  67.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  68.     <disk type="file" device="disk">
  69.       <driver name="qemu" type="qcow2"/>
  70.       <source file="/var/lib/libvirt/images/win10.qcow2"/>
  71.       <target dev="vda" bus="virtio"/>
  72.       <boot order="1"/>
  73.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  74.     </disk>
  75.     <disk type="file" device="disk">
  76.       <driver name="qemu" type="qcow2"/>
  77.       <source file="/mnt/sda1/vol.qcow2"/>
  78.       <target dev="vdb" bus="virtio"/>
  79.       <boot order="4"/>
  80.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  81.     </disk>
  82.     <disk type="file" device="cdrom">
  83.       <driver name="qemu" type="raw"/>
  84.       <source file="/home/bilal/Downloads/Win10_20H2_v2_English_x64.iso"/>
  85.       <target dev="sdb" bus="sata"/>
  86.       <readonly/>
  87.       <boot order="2"/>
  88.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  89.     </disk>
  90.     <disk type="file" device="cdrom">
  91.       <driver name="qemu" type="raw"/>
  92.       <source file="/home/bilal/Downloads/virtio-win-0.1.185.iso"/>
  93.       <target dev="sdc" bus="sata"/>
  94.       <readonly/>
  95.       <boot order="3"/>
  96.       <address type="drive" controller="0" bus="0" target="0" unit="2"/>
  97.     </disk>
  98.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  99.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  100.     </controller>
  101.     <controller type="sata" index="0">
  102.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  103.     </controller>
  104.     <controller type="pci" index="0" model="pcie-root"/>
  105.     <controller type="pci" index="1" model="pcie-root-port">
  106.       <model name="pcie-root-port"/>
  107.       <target chassis="1" port="0x8"/>
  108.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  109.     </controller>
  110.     <controller type="pci" index="2" model="pcie-root-port">
  111.       <model name="pcie-root-port"/>
  112.       <target chassis="2" port="0x9"/>
  113.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  114.     </controller>
  115.     <controller type="pci" index="3" model="pcie-root-port">
  116.       <model name="pcie-root-port"/>
  117.       <target chassis="3" port="0xa"/>
  118.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  119.     </controller>
  120.     <controller type="pci" index="4" model="pcie-root-port">
  121.       <model name="pcie-root-port"/>
  122.       <target chassis="4" port="0xb"/>
  123.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  124.     </controller>
  125.     <controller type="pci" index="5" model="pcie-root-port">
  126.       <model name="pcie-root-port"/>
  127.       <target chassis="5" port="0xc"/>
  128.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x4"/>
  129.     </controller>
  130.     <controller type="pci" index="6" model="pcie-root-port">
  131.       <model name="pcie-root-port"/>
  132.       <target chassis="6" port="0xd"/>
  133.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x5"/>
  134.     </controller>
  135.     <controller type="pci" index="7" model="pcie-root-port">
  136.       <model name="pcie-root-port"/>
  137.       <target chassis="7" port="0xe"/>
  138.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x6"/>
  139.     </controller>
  140.     <controller type="pci" index="8" model="pcie-root-port">
  141.       <model name="pcie-root-port"/>
  142.       <target chassis="8" port="0xf"/>
  143.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x7"/>
  144.     </controller>
  145.     <interface type="network">
  146.       <mac address="52:54:00:fb:13:87"/>
  147.       <source network="default"/>
  148.       <model type="e1000e"/>
  149.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  150.     </interface>
  151.     <input type="mouse" bus="ps2"/>
  152.     <input type="keyboard" bus="ps2"/>
  153.     <hostdev mode="subsystem" type="pci" managed="yes">
  154.       <source>
  155.         <address domain="0x0000" bus="0x0d" slot="0x00" function="0x0"/>
  156.       </source>
  157.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  158.     </hostdev>
  159.     <hostdev mode="subsystem" type="pci" managed="yes">
  160.       <source>
  161.         <address domain="0x0000" bus="0x0d" slot="0x00" function="0x1"/>
  162.       </source>
  163.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  164.     </hostdev>
  165.     <hostdev mode="subsystem" type="usb" managed="yes">
  166.       <source>
  167.         <vendor id="0x1bcf"/>
  168.         <product id="0x08a0"/>
  169.       </source>
  170.       <address type="usb" bus="0" port="1"/>
  171.     </hostdev>
  172.     <hostdev mode="subsystem" type="usb" managed="yes">
  173.       <source>
  174.         <vendor id="0x0c45"/>
  175.         <product id="0x7697"/>
  176.       </source>
  177.       <address type="usb" bus="0" port="2"/>
  178.     </hostdev>
  179.     <hostdev mode="subsystem" type="usb" managed="yes">
  180.       <source>
  181.         <vendor id="0x2f24"/>
  182.         <product id="0x00ba"/>
  183.       </source>
  184.       <address type="usb" bus="0" port="5"/>
  185.     </hostdev>
  186.     <redirdev bus="usb" type="spicevmc">
  187.       <address type="usb" bus="0" port="3"/>
  188.     </redirdev>
  189.     <redirdev bus="usb" type="spicevmc">
  190.       <address type="usb" bus="0" port="4"/>
  191.     </redirdev>
  192.     <memballoon model="virtio">
  193.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  194.     </memballoon>
  195.   </devices>
  196.   <qemu:commandline>
  197.     <qemu:arg value="-audiodev"/>
  198.     <qemu:arg value="pa,id=snd0,server=/run/user/1000/pulse/native"/>
  199.   </qemu:commandline>
  200. </domain>
  201.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement