Guest User

QEMU/KVM XML

a guest
Jun 15th, 2024
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.77 KB | Software | 0 0
  1. <domain type="kvm">
  2.   <name>win10</name>
  3.   <uuid>bf359cb4-e93c-4c95-a958-675fda1337ab</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">20971520</memory>
  10.   <currentMemory unit="KiB">20971520</currentMemory>
  11.   <vcpu placement="static">12</vcpu>
  12.   <iothreads>1</iothreads>
  13.   <cputune>
  14.     <vcpupin vcpu="0" cpuset="1"/>
  15.     <vcpupin vcpu="1" cpuset="9"/>
  16.     <vcpupin vcpu="2" cpuset="2"/>
  17.     <vcpupin vcpu="3" cpuset="10"/>
  18.     <vcpupin vcpu="4" cpuset="3"/>
  19.     <vcpupin vcpu="5" cpuset="11"/>
  20.     <vcpupin vcpu="6" cpuset="4"/>
  21.     <vcpupin vcpu="7" cpuset="12"/>
  22.     <vcpupin vcpu="8" cpuset="5"/>
  23.     <vcpupin vcpu="9" cpuset="13"/>
  24.     <vcpupin vcpu="10" cpuset="6"/>
  25.     <vcpupin vcpu="11" cpuset="14"/>
  26.     <emulatorpin cpuset="0,8"/>
  27.     <iothreadpin iothread="1" cpuset="0,8"/>
  28.   </cputune>
  29.   <os>
  30.     <type arch="x86_64" machine="pc-q35-6.2">hvm</type>
  31.     <loader readonly="yes" type="pflash">/usr/share/OVMF/OVMF_CODE_4M.fd</loader>
  32.     <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  33.     <boot dev="hd"/>
  34.   </os>
  35.   <features>
  36.     <acpi/>
  37.     <apic/>
  38.     <hyperv mode="custom">
  39.       <relaxed state="on"/>
  40.       <vapic state="on"/>
  41.       <spinlocks state="on" retries="8191"/>
  42.       <vpindex state="on"/>
  43.       <synic state="on"/>
  44.       <stimer state="on"/>
  45.       <reset state="on"/>
  46.       <vendor_id state="on" value="KVM Hv"/>
  47.       <frequencies state="on"/>
  48.     </hyperv>
  49.     <vmport state="off"/>
  50.     <ioapic driver="kvm"/>
  51.   </features>
  52.   <cpu mode="host-passthrough" check="none" migratable="on">
  53.     <topology sockets="1" dies="1" cores="6" threads="2"/>
  54.     <cache mode="passthrough"/>
  55.     <feature policy="require" name="topoext"/>
  56.   </cpu>
  57.   <clock offset="localtime">
  58.     <timer name="rtc" tickpolicy="catchup"/>
  59.     <timer name="pit" tickpolicy="delay"/>
  60.     <timer name="hpet" present="no"/>
  61.     <timer name="hypervclock" present="yes"/>
  62.   </clock>
  63.   <on_poweroff>destroy</on_poweroff>
  64.   <on_reboot>restart</on_reboot>
  65.   <on_crash>destroy</on_crash>
  66.   <pm>
  67.     <suspend-to-mem enabled="no"/>
  68.     <suspend-to-disk enabled="no"/>
  69.   </pm>
  70.   <devices>
  71.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  72.     <disk type="file" device="disk">
  73.       <driver name="qemu" type="raw" cache="none" io="native" discard="unmap" iothread="1" queues="8"/>
  74.       <source file="/mnt/virtssd/win10.img"/>
  75.       <target dev="vdc" bus="virtio"/>
  76.       <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  77.     </disk>
  78.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  79.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  80.     </controller>
  81.     <controller type="pci" index="0" model="pcie-root"/>
  82.     <controller type="pci" index="1" model="pcie-root-port">
  83.       <model name="pcie-root-port"/>
  84.       <target chassis="1" port="0x10"/>
  85.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  86.     </controller>
  87.     <controller type="pci" index="2" model="pcie-root-port">
  88.       <model name="pcie-root-port"/>
  89.       <target chassis="2" port="0x11"/>
  90.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  91.     </controller>
  92.     <controller type="pci" index="3" model="pcie-root-port">
  93.       <model name="pcie-root-port"/>
  94.       <target chassis="3" port="0x12"/>
  95.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  96.     </controller>
  97.     <controller type="pci" index="4" model="pcie-root-port">
  98.       <model name="pcie-root-port"/>
  99.       <target chassis="4" port="0x13"/>
  100.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  101.     </controller>
  102.     <controller type="pci" index="5" model="pcie-root-port">
  103.       <model name="pcie-root-port"/>
  104.       <target chassis="5" port="0x14"/>
  105.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  106.     </controller>
  107.     <controller type="pci" index="6" model="pcie-root-port">
  108.       <model name="pcie-root-port"/>
  109.       <target chassis="6" port="0x15"/>
  110.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  111.     </controller>
  112.     <controller type="pci" index="7" model="pcie-root-port">
  113.       <model name="pcie-root-port"/>
  114.       <target chassis="7" port="0x16"/>
  115.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  116.     </controller>
  117.     <controller type="pci" index="8" model="pcie-root-port">
  118.       <model name="pcie-root-port"/>
  119.       <target chassis="8" port="0x17"/>
  120.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  121.     </controller>
  122.     <controller type="pci" index="9" model="pcie-root-port">
  123.       <model name="pcie-root-port"/>
  124.       <target chassis="9" port="0x18"/>
  125.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  126.     </controller>
  127.     <controller type="pci" index="10" model="pcie-root-port">
  128.       <model name="pcie-root-port"/>
  129.       <target chassis="10" port="0x19"/>
  130.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  131.     </controller>
  132.     <controller type="pci" index="11" model="pcie-root-port">
  133.       <model name="pcie-root-port"/>
  134.       <target chassis="11" port="0x1a"/>
  135.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  136.     </controller>
  137.     <controller type="pci" index="12" model="pcie-root-port">
  138.       <model name="pcie-root-port"/>
  139.       <target chassis="12" port="0x1b"/>
  140.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  141.     </controller>
  142.     <controller type="pci" index="13" model="pcie-root-port">
  143.       <model name="pcie-root-port"/>
  144.       <target chassis="13" port="0x1c"/>
  145.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  146.     </controller>
  147.     <controller type="pci" index="14" model="pcie-root-port">
  148.       <model name="pcie-root-port"/>
  149.       <target chassis="14" port="0x1d"/>
  150.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  151.     </controller>
  152.     <controller type="sata" index="0">
  153.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  154.     </controller>
  155.     <controller type="virtio-serial" index="0">
  156.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  157.     </controller>
  158.     <interface type="network">
  159.       <mac address="52:54:00:7d:af:06"/>
  160.       <source network="default"/>
  161.       <model type="virtio"/>
  162.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  163.     </interface>
  164.     <serial type="pty">
  165.       <target type="isa-serial" port="0">
  166.         <model name="isa-serial"/>
  167.       </target>
  168.     </serial>
  169.     <console type="pty">
  170.       <target type="serial" port="0"/>
  171.     </console>
  172.     <channel type="spicevmc">
  173.       <target type="virtio" name="com.redhat.spice.0"/>
  174.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  175.     </channel>
  176.     <input type="mouse" bus="ps2"/>
  177.     <input type="keyboard" bus="ps2"/>
  178.     <sound model="ich9">
  179.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  180.     </sound>
  181.     <audio id="1" type="spice"/>
  182.     <hostdev mode="subsystem" type="pci" managed="yes">
  183.       <source>
  184.         <address domain="0x0000" bus="0x2b" slot="0x00" function="0x0"/>
  185.       </source>
  186.       <rom file="/usr/share/vgabios/GP104.rom"/>
  187.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  188.     </hostdev>
  189.     <hostdev mode="subsystem" type="pci" managed="yes">
  190.       <source>
  191.         <address domain="0x0000" bus="0x2b" slot="0x00" function="0x1"/>
  192.       </source>
  193.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  194.     </hostdev>
  195.     <hostdev mode="subsystem" type="usb" managed="yes">
  196.       <source>
  197.         <vendor id="0x05ac"/>
  198.         <product id="0x0250"/>
  199.       </source>
  200.       <address type="usb" bus="0" port="5"/>
  201.     </hostdev>
  202.     <hostdev mode="subsystem" type="usb" managed="yes">
  203.       <source>
  204.         <vendor id="0x046d"/>
  205.         <product id="0xc52b"/>
  206.       </source>
  207.       <address type="usb" bus="0" port="1"/>
  208.     </hostdev>
  209.     <hostdev mode="subsystem" type="pci" managed="yes">
  210.       <source>
  211.         <address domain="0x0000" bus="0x2d" slot="0x00" function="0x4"/>
  212.       </source>
  213.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  214.     </hostdev>
  215.     <memballoon model="virtio">
  216.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  217.     </memballoon>
  218.   </devices>
  219. </domain>
  220.  
Tags: qemu kvm
Advertisement
Add Comment
Please, Sign In to add comment