Advertisement
umnikos

Untitled

Feb 20th, 2023 (edited)
734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.24 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2.   <name>win10-clone9-spice+lookingglass-cputune-physicaldisk-clocktweaks-seeingglass-virtiokeyboard</name>
  3.   <uuid>cbf79314-e4a7-47b5-a211-d9c6d0e95b7c</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">6291456</memory>
  10.   <currentMemory unit="KiB">6291456</currentMemory>
  11.   <vcpu placement="static">2</vcpu>
  12.   <iothreads>1</iothreads>
  13.   <cputune>
  14.     <vcpupin vcpu="0" cpuset="1"/>
  15.     <vcpupin vcpu="1" cpuset="3"/>
  16.     <emulatorpin cpuset="0,2"/>
  17.     <iothreadpin iothread="1" cpuset="0,2"/>
  18.   </cputune>
  19.   <os>
  20.     <type arch="x86_64" machine="pc-q35-5.2">hvm</type>
  21.     <boot dev="hd"/>
  22.   </os>
  23.   <features>
  24.     <acpi/>
  25.     <apic/>
  26.     <pae/>
  27.     <hyperv>
  28.       <relaxed state="on"/>
  29.       <vapic state="on"/>
  30.       <spinlocks state="on" retries="8191"/>
  31.       <vpindex state="on"/>
  32.       <runtime state="on"/>
  33.       <synic state="on"/>
  34.       <stimer state="on"/>
  35.       <reset state="off"/>
  36.       <vendor_id state="on" value="whatever"/>
  37.       <frequencies state="on"/>
  38.       <reenlightenment state="off"/>
  39.       <tlbflush state="on"/>
  40.       <ipi state="on"/>
  41.       <evmcs state="off"/>
  42.     </hyperv>
  43.     <kvm>
  44.       <hidden state="on"/>
  45.     </kvm>
  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="1" threads="2"/>
  51.   </cpu>
  52.   <clock offset="localtime">
  53.     <timer name="hpet" present="yes"/>
  54.     <timer name="hypervclock" present="yes"/>
  55.   </clock>
  56.   <on_poweroff>destroy</on_poweroff>
  57.   <on_reboot>restart</on_reboot>
  58.   <on_crash>destroy</on_crash>
  59.   <pm>
  60.     <suspend-to-mem enabled="no"/>
  61.     <suspend-to-disk enabled="no"/>
  62.   </pm>
  63.   <devices>
  64.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  65.     <disk type="block" device="disk">
  66.       <driver name="qemu" type="raw" cache="none" io="native"/>
  67.       <source dev="/dev/milk/win10vm"/>
  68.       <target dev="vdb" bus="virtio"/>
  69.       <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  70.     </disk>
  71.     <disk type="file" device="cdrom">
  72.       <driver name="qemu" type="raw"/>
  73.       <source file="/home/umnikos/ISOs/Win10_21H2_English_x64.iso"/>
  74.       <target dev="sdb" bus="sata"/>
  75.       <readonly/>
  76.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  77.     </disk>
  78.     <disk type="file" device="cdrom">
  79.       <driver name="qemu" type="raw"/>
  80.       <source file="/home/umnikos/ISOs/virtio-win-0.1.221.iso"/>
  81.       <target dev="sdc" bus="sata"/>
  82.       <readonly/>
  83.       <address type="drive" controller="0" bus="0" target="0" unit="2"/>
  84.     </disk>
  85.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  86.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  87.     </controller>
  88.     <controller type="sata" index="0">
  89.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  90.     </controller>
  91.     <controller type="pci" index="0" model="pcie-root"/>
  92.     <controller type="pci" index="1" model="pcie-root-port">
  93.       <model name="pcie-root-port"/>
  94.       <target chassis="1" port="0x10"/>
  95.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  96.     </controller>
  97.     <controller type="pci" index="2" model="pcie-root-port">
  98.       <model name="pcie-root-port"/>
  99.       <target chassis="2" port="0x11"/>
  100.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  101.     </controller>
  102.     <controller type="pci" index="3" model="pcie-root-port">
  103.       <model name="pcie-root-port"/>
  104.       <target chassis="3" port="0x12"/>
  105.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  106.     </controller>
  107.     <controller type="pci" index="4" model="pcie-root-port">
  108.       <model name="pcie-root-port"/>
  109.       <target chassis="4" port="0x13"/>
  110.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  111.     </controller>
  112.     <controller type="pci" index="5" model="pcie-root-port">
  113.       <model name="pcie-root-port"/>
  114.       <target chassis="5" port="0x14"/>
  115.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  116.     </controller>
  117.     <controller type="pci" index="6" model="pcie-root-port">
  118.       <model name="pcie-root-port"/>
  119.       <target chassis="6" port="0x15"/>
  120.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  121.     </controller>
  122.     <controller type="pci" index="7" model="pcie-root-port">
  123.       <model name="pcie-root-port"/>
  124.       <target chassis="7" port="0x16"/>
  125.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  126.     </controller>
  127.     <controller type="pci" index="8" model="pcie-to-pci-bridge">
  128.       <model name="pcie-pci-bridge"/>
  129.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  130.     </controller>
  131.     <controller type="pci" index="9" model="pcie-root-port">
  132.       <model name="pcie-root-port"/>
  133.       <target chassis="9" port="0x17"/>
  134.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  135.     </controller>
  136.     <controller type="virtio-serial" index="0">
  137.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  138.     </controller>
  139.     <interface type="network">
  140.       <mac address="52:54:00:bc:4f:37"/>
  141.       <source network="default"/>
  142.       <model type="virtio"/>
  143.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  144.     </interface>
  145.     <serial type="pty">
  146.       <target type="isa-serial" port="0">
  147.         <model name="isa-serial"/>
  148.       </target>
  149.     </serial>
  150.     <console type="pty">
  151.       <target type="serial" port="0"/>
  152.     </console>
  153.     <channel type="spicevmc">
  154.       <target type="virtio" name="com.redhat.spice.0"/>
  155.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  156.     </channel>
  157.     <input type="mouse" bus="virtio">
  158.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  159.     </input>
  160.     <input type="keyboard" bus="virtio">
  161.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  162.     </input>
  163.     <input type="mouse" bus="ps2"/>
  164.     <input type="keyboard" bus="ps2"/>
  165.     <graphics type="egl-headless">
  166.       <gl rendernode="/dev/dri/by-path/pci-0000:00:02.0-render"/>
  167.     </graphics>
  168.     <sound model="ich9">
  169.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  170.     </sound>
  171.     <video>
  172.       <model type="none"/>
  173.     </video>
  174.     <hostdev mode="subsystem" type="mdev" managed="no" model="vfio-pci" display="on">
  175.       <source>
  176.         <address uuid="7ff56202-815e-4106-a699-16a46ae3eff4"/>
  177.       </source>
  178.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  179.     </hostdev>
  180.     <redirdev bus="usb" type="spicevmc">
  181.       <address type="usb" bus="0" port="2"/>
  182.     </redirdev>
  183.     <redirdev bus="usb" type="spicevmc">
  184.       <address type="usb" bus="0" port="3"/>
  185.     </redirdev>
  186.     <memballoon model="none"/>
  187.     <shmem name="looking-glass">
  188.       <model type="ivshmem-plain"/>
  189.       <size unit="M">32</size>
  190.       <address type="pci" domain="0x0000" bus="0x08" slot="0x01" function="0x0"/>
  191.     </shmem>
  192.   </devices>
  193.   <qemu:commandline>
  194.     <qemu:arg value="-set"/>
  195.     <qemu:arg value="device.hostdev0.x-igd-opregion=on"/>
  196.     <qemu:arg value="-set"/>
  197.     <qemu:arg value="device.hostdev0.romfile=/stuff/vbios_gvt_uefi.rom"/>
  198.     <qemu:arg value="-set"/>
  199.     <qemu:arg value="device.hostdev0.ramfb=on"/>
  200.     <qemu:arg value="-set"/>
  201.     <qemu:arg value="device.hostdev0.driver=vfio-pci-nohotplug"/>
  202.     <qemu:arg value="-set"/>
  203.     <qemu:arg value="device.hostdev0.display=on"/>
  204.     <qemu:arg value="-object"/>
  205.     <qemu:arg value="input-linux,id=mouse1,evdev=/dev/input/by-id/usb-0000_USB_OPTICAL_MOUSE-event-mouse"/>
  206.     <qemu:arg value="-object"/>
  207.     <qemu:arg value="input-linux,id=kbd1,evdev=/dev/input/by-id/usb-Cooler_Master_Technology_Inc._MasterKeys_Pro_M_Single-event-kbd"/>
  208.   </qemu:commandline>
  209. </domain>
  210.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement