robixxu

Untitled

Jun 14th, 2020
1,467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <domain type="kvm">
  2.   <name>win10</name>
  3.   <uuid>private :)</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">28672000</memory>
  10.   <currentMemory unit="KiB">28672000</currentMemory>
  11.   <vcpu placement="static" current="15">16</vcpu>
  12.   <os>
  13.     <type arch="x86_64" machine="pc-q35-5.0">hvm</type>
  14.     <loader readonly="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
  15.     <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  16.     <bootmenu enable="yes"/>
  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.       <vendor_id state="on" value="1234567890ab"/>
  26.     </hyperv>
  27.     <kvm>
  28.       <hidden state="on"/>
  29.     </kvm>
  30.     <vmport state="off"/>
  31.     <ioapic driver="kvm"/>
  32.   </features>
  33.   <cpu mode="host-model" check="partial">
  34.     <topology sockets="1" dies="1" cores="8" threads="2"/>
  35.   </cpu>
  36.   <clock offset="localtime">
  37.     <timer name="rtc" tickpolicy="catchup"/>
  38.     <timer name="pit" tickpolicy="delay"/>
  39.     <timer name="hpet" present="no"/>
  40.     <timer name="hypervclock" present="yes"/>
  41.   </clock>
  42.   <on_poweroff>destroy</on_poweroff>
  43.   <on_reboot>restart</on_reboot>
  44.   <on_crash>destroy</on_crash>
  45.   <pm>
  46.     <suspend-to-mem enabled="no"/>
  47.     <suspend-to-disk enabled="no"/>
  48.   </pm>
  49.   <devices>
  50.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  51.     <disk type="file" device="disk">
  52.       <driver name="qemu" type="qcow2"/>
  53.       <source file="/var/lib/libvirt/images/win10.qcow2"/>
  54.       <target dev="vda" bus="virtio"/>
  55.       <boot order="1"/>
  56.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  57.     </disk>
  58.     <disk type="file" device="cdrom">
  59.       <driver name="qemu" type="raw"/>
  60.       <source file="/home/robixxu/kvm/iso/Win10_2004_English_x64.iso"/>
  61.       <target dev="sdb" bus="sata"/>
  62.       <readonly/>
  63.       <boot order="2"/>
  64.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  65.     </disk>
  66.     <disk type="file" device="cdrom">
  67.       <driver name="qemu" type="raw"/>
  68.       <source file="/home/robixxu/kvm/iso/virtio-win-0.1.171.iso"/>
  69.       <target dev="sdc" bus="sata"/>
  70.       <readonly/>
  71.       <boot order="3"/>
  72.       <address type="drive" controller="0" bus="0" target="0" unit="2"/>
  73.     </disk>
  74.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  75.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  76.     </controller>
  77.     <controller type="sata" index="0">
  78.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  79.     </controller>
  80.     <controller type="pci" index="0" model="pcie-root"/>
  81.     <controller type="pci" index="1" model="pcie-root-port">
  82.       <model name="pcie-root-port"/>
  83.       <target chassis="1" port="0x8"/>
  84.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  85.     </controller>
  86.     <controller type="pci" index="2" model="pcie-root-port">
  87.       <model name="pcie-root-port"/>
  88.       <target chassis="2" port="0x9"/>
  89.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  90.     </controller>
  91.     <controller type="pci" index="3" model="pcie-root-port">
  92.       <model name="pcie-root-port"/>
  93.       <target chassis="3" port="0xa"/>
  94.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  95.     </controller>
  96.     <controller type="pci" index="4" model="pcie-root-port">
  97.       <model name="pcie-root-port"/>
  98.       <target chassis="4" port="0xb"/>
  99.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  100.     </controller>
  101.     <controller type="pci" index="5" model="pcie-root-port">
  102.       <model name="pcie-root-port"/>
  103.       <target chassis="5" port="0xc"/>
  104.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x4"/>
  105.     </controller>
  106.     <controller type="pci" index="6" model="pcie-root-port">
  107.       <model name="pcie-root-port"/>
  108.       <target chassis="6" port="0xd"/>
  109.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x5"/>
  110.     </controller>
  111.     <controller type="pci" index="7" model="pcie-root-port">
  112.       <model name="pcie-root-port"/>
  113.       <target chassis="7" port="0xe"/>
  114.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x6"/>
  115.     </controller>
  116.     <controller type="pci" index="8" model="pcie-root-port">
  117.       <model name="pcie-root-port"/>
  118.       <target chassis="8" port="0xf"/>
  119.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x7"/>
  120.     </controller>
  121.     <controller type="pci" index="9" model="pcie-root-port">
  122.       <model name="pcie-root-port"/>
  123.       <target chassis="9" port="0x10"/>
  124.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
  125.     </controller>
  126.     <interface type="network">
  127.       <mac address="private ;)"/>
  128.       <source network="default"/>
  129.       <model type="e1000e"/>
  130.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  131.     </interface>
  132.     <input type="mouse" bus="ps2"/>
  133.     <input type="keyboard" bus="ps2"/>
  134.     <hostdev mode="subsystem" type="pci" managed="yes">
  135.       <source>
  136.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  137.       </source>
  138.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  139.     </hostdev>
  140.     <hostdev mode="subsystem" type="pci" managed="yes">
  141.       <source>
  142.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
  143.       </source>
  144.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  145.     </hostdev>
  146.     <hostdev mode="subsystem" type="pci" managed="yes">
  147.       <source>
  148.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x2"/>
  149.       </source>
  150.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  151.     </hostdev>
  152.     <hostdev mode="subsystem" type="pci" managed="yes">
  153.       <source>
  154.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x3"/>
  155.       </source>
  156.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  157.     </hostdev>
  158.     <hostdev mode="subsystem" type="usb" managed="yes">
  159.       <source>
  160.         <vendor id="0x046d"/>
  161.         <product id="0xc539"/>
  162.       </source>
  163.       <address type="usb" bus="0" port="1"/>
  164.     </hostdev>
  165.     <hostdev mode="subsystem" type="usb" managed="yes">
  166.       <source>
  167.         <vendor id="0x046d"/>
  168.         <product id="0xc335"/>
  169.       </source>
  170.       <address type="usb" bus="0" port="2"/>
  171.     </hostdev>
  172.     <hostdev mode="subsystem" type="usb" managed="yes">
  173.       <source>
  174.         <vendor id="0x1235"/>
  175.         <product id="0x8205"/>
  176.       </source>
  177.       <address type="usb" bus="0" port="5"/>
  178.     </hostdev>
  179.     <redirdev bus="usb" type="spicevmc">
  180.       <address type="usb" bus="0" port="3"/>
  181.     </redirdev>
  182.     <redirdev bus="usb" type="spicevmc">
  183.       <address type="usb" bus="0" port="4"/>
  184.     </redirdev>
  185.     <memballoon model="virtio">
  186.       <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  187.     </memballoon>
  188.   </devices>
  189. </domain>
Advertisement
Add Comment
Please, Sign In to add comment