Advertisement
Guest User

win10-kvm-xml-02

a guest
Mar 26th, 2021
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.53 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2.   <name>Windows-10</name>
  3.   <uuid>801b9a1c-d127-463e-84f6-7b322e2c5d2c</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">8</vcpu>
  12.   <iothreads>1</iothreads>
  13.   <cputune>
  14.     <vcpupin vcpu="0" cpuset="8"/>
  15.     <vcpupin vcpu="1" cpuset="9"/>
  16.     <vcpupin vcpu="2" cpuset="10"/>
  17.     <vcpupin vcpu="3" cpuset="11"/>
  18.     <vcpupin vcpu="4" cpuset="12"/>
  19.     <vcpupin vcpu="5" cpuset="13"/>
  20.     <vcpupin vcpu="6" cpuset="14"/>
  21.     <vcpupin vcpu="7" cpuset="15"/>
  22.     <emulatorpin cpuset="0-1"/>
  23.     <iothreadpin iothread="1" cpuset="0-1"/>
  24.   </cputune>
  25.   <os>
  26.     <type arch="x86_64" machine="pc-q35-4.2">hvm</type>
  27.     <loader readonly="yes" type="pflash">/usr/share/OVMF/OVMF_CODE.fd</loader>
  28.     <nvram>/var/lib/libvirt/qemu/nvram/Windows-10_VARS.fd</nvram>
  29.   </os>
  30.   <features>
  31.     <acpi/>
  32.     <apic/>
  33.     <hyperv>
  34.       <relaxed state="on"/>
  35.       <vapic state="on"/>
  36.       <spinlocks state="on" retries="8191"/>
  37.       <vpindex state="on"/>
  38.       <synic state="on"/>
  39.       <stimer state="on"/>
  40.       <reset state="on"/>
  41.       <vendor_id state="on" value="Cloudstone"/>
  42.       <frequencies state="on"/>
  43.     </hyperv>
  44.     <kvm>
  45.       <hidden state="on"/>
  46.     </kvm>
  47.     <vmport state="off"/>
  48.   </features>
  49.   <cpu mode="host-passthrough" check="none">
  50.     <topology sockets="1" cores="4" threads="2"/>
  51.     <cache mode="passthrough"/>
  52.     <feature policy="require" name="topoext"/>
  53.   </cpu>
  54.   <clock offset="localtime">
  55.     <timer name="rtc" tickpolicy="catchup"/>
  56.     <timer name="pit" tickpolicy="delay"/>
  57.     <timer name="hpet" present="no"/>
  58.     <timer name="hypervclock" present="yes"/>
  59.   </clock>
  60.   <on_poweroff>destroy</on_poweroff>
  61.   <on_reboot>restart</on_reboot>
  62.   <on_crash>destroy</on_crash>
  63.   <pm>
  64.     <suspend-to-mem enabled="no"/>
  65.     <suspend-to-disk enabled="no"/>
  66.   </pm>
  67.   <devices>
  68.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  69.     <disk type="file" device="disk">
  70.       <driver name="qemu" type="raw" cache="writethrough" io="threads"/>
  71.       <source file="/home/sagan/VMs/win10-os.img"/>
  72.       <target dev="vda" bus="virtio"/>
  73.       <boot order="1"/>
  74.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  75.     </disk>
  76.     <disk type="file" device="disk">
  77.       <driver name="qemu" type="raw" cache="none" io="threads"/>
  78.       <source file="/home/sagan/VMs/win10-data.img"/>
  79.       <target dev="vdb" bus="virtio"/>
  80.       <address type="pci" domain="0x0000" bus="0x0c" slot="0x00" function="0x0"/>
  81.     </disk>
  82.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  83.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  84.     </controller>
  85.     <controller type="sata" index="0">
  86.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  87.     </controller>
  88.     <controller type="pci" index="0" model="pcie-root"/>
  89.     <controller type="pci" index="1" model="pcie-root-port">
  90.       <model name="pcie-root-port"/>
  91.       <target chassis="1" port="0x10"/>
  92.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  93.     </controller>
  94.     <controller type="pci" index="2" model="pcie-root-port">
  95.       <model name="pcie-root-port"/>
  96.       <target chassis="2" port="0x11"/>
  97.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  98.     </controller>
  99.     <controller type="pci" index="3" model="pcie-root-port">
  100.       <model name="pcie-root-port"/>
  101.       <target chassis="3" port="0x12"/>
  102.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  103.     </controller>
  104.     <controller type="pci" index="4" model="pcie-root-port">
  105.       <model name="pcie-root-port"/>
  106.       <target chassis="4" port="0x13"/>
  107.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  108.     </controller>
  109.     <controller type="pci" index="5" model="pcie-root-port">
  110.       <model name="pcie-root-port"/>
  111.       <target chassis="5" port="0x14"/>
  112.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  113.     </controller>
  114.     <controller type="pci" index="6" model="pcie-root-port">
  115.       <model name="pcie-root-port"/>
  116.       <target chassis="6" port="0x15"/>
  117.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  118.     </controller>
  119.     <controller type="pci" index="7" model="pcie-root-port">
  120.       <model name="pcie-root-port"/>
  121.       <target chassis="7" port="0x16"/>
  122.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  123.     </controller>
  124.     <controller type="pci" index="8" model="pcie-root-port">
  125.       <model name="pcie-root-port"/>
  126.       <target chassis="8" port="0x17"/>
  127.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  128.     </controller>
  129.     <controller type="pci" index="9" model="pcie-root-port">
  130.       <model name="pcie-root-port"/>
  131.       <target chassis="9" port="0x18"/>
  132.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
  133.     </controller>
  134.     <controller type="pci" index="10" model="pcie-root-port">
  135.       <model name="pcie-root-port"/>
  136.       <target chassis="10" port="0x8"/>
  137.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  138.     </controller>
  139.     <controller type="pci" index="11" model="pcie-root-port">
  140.       <model name="pcie-root-port"/>
  141.       <target chassis="11" port="0x9"/>
  142.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  143.     </controller>
  144.     <controller type="pci" index="12" model="pcie-root-port">
  145.       <model name="pcie-root-port"/>
  146.       <target chassis="12" port="0xa"/>
  147.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  148.     </controller>
  149.     <controller type="pci" index="13" model="pcie-root-port">
  150.       <model name="pcie-root-port"/>
  151.       <target chassis="13" port="0xb"/>
  152.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  153.     </controller>
  154.     <controller type="pci" index="14" model="pcie-to-pci-bridge">
  155.       <model name="pcie-pci-bridge"/>
  156.       <address type="pci" domain="0x0000" bus="0x0d" slot="0x00" function="0x0"/>
  157.     </controller>
  158.     <controller type="virtio-serial" index="0">
  159.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  160.     </controller>
  161.     <interface type="network">
  162.       <mac address="00:00:de:ad:be:ef"/>
  163.       <source network="default"/>
  164.       <model type="virtio"/>
  165.       <link state="up"/>
  166.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  167.     </interface>
  168.     <input type="mouse" bus="ps2"/>
  169.     <input type="keyboard" bus="ps2"/>
  170.     <input type="mouse" bus="virtio">
  171.       <address type="pci" domain="0x0000" bus="0x0a" slot="0x00" function="0x0"/>
  172.     </input>
  173.     <input type="keyboard" bus="virtio">
  174.       <address type="pci" domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
  175.     </input>
  176.     <sound model="ich9">
  177.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  178.     </sound>
  179.     <hostdev mode="subsystem" type="pci" managed="yes">
  180.       <source>
  181.         <address domain="0x0000" bus="0x0e" slot="0x00" function="0x0"/>
  182.       </source>
  183.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  184.     </hostdev>
  185.     <hostdev mode="subsystem" type="pci" managed="yes">
  186.       <source>
  187.         <address domain="0x0000" bus="0x0e" slot="0x00" function="0x1"/>
  188.       </source>
  189.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  190.     </hostdev>
  191.     <hostdev mode="subsystem" type="pci" managed="yes">
  192.       <source>
  193.         <address domain="0x0000" bus="0x0e" slot="0x00" function="0x2"/>
  194.       </source>
  195.       <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  196.     </hostdev>
  197.     <hostdev mode="subsystem" type="pci" managed="yes">
  198.       <source>
  199.         <address domain="0x0000" bus="0x0e" slot="0x00" function="0x3"/>
  200.       </source>
  201.       <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  202.     </hostdev>
  203.     <hostdev mode="subsystem" type="usb" managed="yes">
  204.       <source>
  205.         <vendor id="0x0951"/>
  206.         <product id="0x16c4"/>
  207.       </source>
  208.       <address type="usb" bus="0" port="1"/>
  209.     </hostdev>
  210.     <hostdev mode="subsystem" type="usb" managed="yes">
  211.       <source>
  212.         <vendor id="0x0a12"/>
  213.         <product id="0x0001"/>
  214.       </source>
  215.       <address type="usb" bus="0" port="2"/>
  216.     </hostdev>
  217.     <memballoon model="virtio">
  218.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  219.     </memballoon>
  220.     <shmem name="looking-glass">
  221.       <model type="ivshmem-plain"/>
  222.       <size unit="M">32</size>
  223.       <address type="pci" domain="0x0000" bus="0x0e" slot="0x01" function="0x0"/>
  224.     </shmem>
  225.   </devices>
  226.   <qemu:commandline>
  227.     <qemu:arg value="-object"/>
  228.     <qemu:arg value="input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Kingsis_Peripherals_ZOWIE_Gaming_mouse-event-mouse"/>
  229.     <qemu:arg value="-object"/>
  230.     <qemu:arg value="input-linux,id=kbd1,evdev=/dev/input/by-id/usb-04d9_USB_Keyboard-event-kbd,grab_all=on,repeat=on"/>
  231.   </qemu:commandline>
  232. </domain>
  233.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement