Guest User

Config

a guest
May 8th, 2023
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.06 KB | None | 0 0
  1. <domain type="kvm">
  2.   <name>win10-vm1-singlegpu</name>
  3.   <uuid>be0fdd65-b557-423e-a917-6469ad46cb2c</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" current="4">4</vcpu>
  12.   <os firmware="efi">
  13.     <type arch="x86_64" machine="pc-q35-7.2">hvm</type>
  14.     <firmware>
  15.       <feature enabled="no" name="enrolled-keys"/>
  16.       <feature enabled="yes" name="secure-boot"/>
  17.     </firmware>
  18.     <loader readonly="yes" secure="yes" type="pflash">/usr/share/edk2/x64/OVMF_CODE.secboot.4m.fd</loader>
  19.     <nvram template="/usr/share/edk2/x64/OVMF_VARS.4m.fd">/var/lib/libvirt/qemu/nvram/win10-vm1-singlegpu_VARS.fd</nvram>
  20.     <bootmenu enable="yes"/>
  21.     <smbios mode="sysinfo"/>
  22.   </os>
  23.   <features>
  24.     <acpi/>
  25.     <apic/>
  26.     <hyperv mode="custom">
  27.       <relaxed state="on"/>
  28.       <vapic state="on"/>
  29.       <spinlocks state="on" retries="8191"/>
  30.       <vendor_id state="on" value="GenuineIntel"/>
  31.     </hyperv>
  32.     <kvm>
  33.       <hidden state="on"/>
  34.     </kvm>
  35.     <vmport state="off"/>
  36.     <smm state="on"/>
  37.     <ioapic driver="kvm"/>
  38.   </features>
  39.   <cpu mode="host-model">
  40.     <topology sockets="1" cores="2" threads="2"/>
  41.   </cpu>
  42.   <clock offset="localtime">
  43.     <timer name="rtc" tickpolicy="catchup"/>
  44.     <timer name="pit" tickpolicy="delay"/>
  45.     <timer name="hpet" present="no"/>
  46.     <timer name="hypervclock" present="yes"/>
  47.   </clock>
  48.   <on_poweroff>destroy</on_poweroff>
  49.   <on_reboot>restart</on_reboot>
  50.   <on_crash>destroy</on_crash>
  51.   <pm>
  52.     <suspend-to-mem enabled="no"/>
  53.     <suspend-to-disk enabled="no"/>
  54.   </pm>
  55.   <devices>
  56.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  57.     <disk type="file" device="cdrom">
  58.       <driver name="qemu" type="raw"/>
  59.       <source file="/run/media/iflxy/More Data/VMS/Win10_22H2_EnglishInternational_x64.iso"/>
  60.       <target dev="sda" bus="sata"/>
  61.       <readonly/>
  62.       <boot order="2"/>
  63.       <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  64.     </disk>
  65.     <disk type="file" device="cdrom">
  66.       <driver name="qemu" type="raw"/>
  67.       <source file="/run/media/iflxy/More Data/VMS/virtio-win-0.1.229.iso"/>
  68.       <target dev="sdb" bus="sata"/>
  69.       <readonly/>
  70.       <boot order="3"/>
  71.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  72.     </disk>
  73.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  74.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  75.     </controller>
  76.     <controller type="pci" index="0" model="pcie-root"/>
  77.     <controller type="pci" index="1" model="pcie-root-port">
  78.       <model name="pcie-root-port"/>
  79.       <target chassis="1" port="0x10"/>
  80.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  81.     </controller>
  82.     <controller type="pci" index="2" model="pcie-root-port">
  83.       <model name="pcie-root-port"/>
  84.       <target chassis="2" port="0x11"/>
  85.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  86.     </controller>
  87.     <controller type="pci" index="3" model="pcie-root-port">
  88.       <model name="pcie-root-port"/>
  89.       <target chassis="3" port="0x12"/>
  90.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  91.     </controller>
  92.     <controller type="pci" index="4" model="pcie-root-port">
  93.       <model name="pcie-root-port"/>
  94.       <target chassis="4" port="0x13"/>
  95.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  96.     </controller>
  97.     <controller type="pci" index="5" model="pcie-root-port">
  98.       <model name="pcie-root-port"/>
  99.       <target chassis="5" port="0x14"/>
  100.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  101.     </controller>
  102.     <controller type="pci" index="6" model="pcie-root-port">
  103.       <model name="pcie-root-port"/>
  104.       <target chassis="6" port="0x15"/>
  105.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  106.     </controller>
  107.     <controller type="pci" index="7" model="pcie-root-port">
  108.       <model name="pcie-root-port"/>
  109.       <target chassis="7" port="0x16"/>
  110.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  111.     </controller>
  112.     <controller type="pci" index="8" model="pcie-root-port">
  113.       <model name="pcie-root-port"/>
  114.       <target chassis="8" port="0x17"/>
  115.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  116.     </controller>
  117.     <controller type="pci" index="9" model="pcie-root-port">
  118.       <model name="pcie-root-port"/>
  119.       <target chassis="9" port="0x18"/>
  120.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  121.     </controller>
  122.     <controller type="pci" index="10" model="pcie-root-port">
  123.       <model name="pcie-root-port"/>
  124.       <target chassis="10" port="0x19"/>
  125.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  126.     </controller>
  127.     <controller type="pci" index="11" model="pcie-root-port">
  128.       <model name="pcie-root-port"/>
  129.       <target chassis="11" port="0x1a"/>
  130.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  131.     </controller>
  132.     <controller type="pci" index="12" model="pcie-root-port">
  133.       <model name="pcie-root-port"/>
  134.       <target chassis="12" port="0x1b"/>
  135.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  136.     </controller>
  137.     <controller type="pci" index="13" model="pcie-root-port">
  138.       <model name="pcie-root-port"/>
  139.       <target chassis="13" port="0x1c"/>
  140.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  141.     </controller>
  142.     <controller type="pci" index="14" model="pcie-root-port">
  143.       <model name="pcie-root-port"/>
  144.       <target chassis="14" port="0x1d"/>
  145.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  146.     </controller>
  147.     <controller type="pci" index="15" model="pcie-root-port">
  148.       <model name="pcie-root-port"/>
  149.       <target chassis="15" port="0x1e"/>
  150.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x6"/>
  151.     </controller>
  152.     <controller type="pci" index="16" model="pcie-to-pci-bridge">
  153.       <model name="pcie-pci-bridge"/>
  154.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  155.     </controller>
  156.     <controller type="sata" index="0">
  157.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  158.     </controller>
  159.     <controller type="virtio-serial" index="0">
  160.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  161.     </controller>
  162.     <controller type="scsi" index="0" model="lsilogic">
  163.       <address type="pci" domain="0x0000" bus="0x10" slot="0x01" function="0x0"/>
  164.     </controller>
  165.     <interface type="network">
  166.       <mac address="52:54:00:4a:c5:3d"/>
  167.       <source network="default"/>
  168.       <model type="virtio"/>
  169.       <boot order="4"/>
  170.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  171.     </interface>
  172.     <serial type="pty">
  173.       <target type="isa-serial" port="0">
  174.         <model name="isa-serial"/>
  175.       </target>
  176.     </serial>
  177.     <console type="pty">
  178.       <target type="serial" port="0"/>
  179.     </console>
  180.     <channel type="spicevmc">
  181.       <target type="virtio" name="com.redhat.spice.0"/>
  182.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  183.     </channel>
  184.     <input type="mouse" bus="ps2"/>
  185.     <input type="keyboard" bus="ps2"/>
  186.     <graphics type="spice">
  187.       <listen type="none"/>
  188.       <image compression="off"/>
  189.       <gl enable="no"/>
  190.     </graphics>
  191.     <graphics type="vnc" port="-1" autoport="yes" listen="0.0.0.0">
  192.       <listen type="address" address="0.0.0.0"/>
  193.     </graphics>
  194.     <sound model="ich9">
  195.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  196.     </sound>
  197.     <audio id="1" type="spice"/>
  198.     <video>
  199.       <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
  200.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
  201.     </video>
  202.     <watchdog model="itco" action="reset"/>
  203.     <memballoon model="none"/>
  204.     <disk type="file" device="disk">
  205.       <driver name="qemu" type="qcow2"/>
  206.       <source file="/run/media/iflxy/More Data/VMS/win10eeeee.qcow2"/>
  207.       <target dev="vda" bus="virtio"/>
  208.     </disk>
  209.     <hostdev mode="subsystem" type="usb" managed="yes">
  210.       <source>
  211.         <vendor id="0x3151"/>
  212.         <product id="0x4003"/>
  213.       </source>
  214.     </hostdev>
  215.     <hostdev mode="subsystem" type="usb" managed="yes">
  216.       <source>
  217.         <vendor id="0x256c"/>
  218.         <product id="0x006d"/>
  219.       </source>
  220.     </hostdev>
  221.     <hostdev mode="subsystem" type="usb" managed="yes">
  222.       <source>
  223.         <vendor id="0x2357"/>
  224.         <product id="0x0604"/>
  225.       </source>
  226.     </hostdev>
  227.     <hostdev mode="subsystem" type="usb" managed="yes">
  228.       <source>
  229.         <vendor id="0x0d8c"/>
  230.         <product id="0x0135"/>
  231.       </source>
  232.     </hostdev>
  233.     <hostdev mode="subsystem" type="usb" managed="yes">
  234.       <source>
  235.         <vendor id="0x258a"/>
  236.         <product id="0x0036"/>
  237.       </source>
  238.     </hostdev>
  239.     <hostdev mode="subsystem" type="usb" managed="yes">
  240.       <source>
  241.         <vendor id="0x0bda"/>
  242.         <product id="0x8179"/>
  243.       </source>
  244.     </hostdev>
  245.   </devices>
  246.   <qemu:commandline>
  247.     <qemu:arg value="-smbios"/>
  248.     <qemu:arg value="type=0,version=UX305UA.201"/>
  249.     <qemu:arg value="-smbios"/>
  250.     <qemu:arg value="type=1,manufacturer=ASUS,product=UX305UA,version=2021.1"/>
  251.     <qemu:arg value="-smbios"/>
  252.     <qemu:arg value="type=2,manufacturer=Intel,version=2021.5,product=Intel i9-12900K"/>
  253.     <qemu:arg value="-smbios"/>
  254.     <qemu:arg value="type=3,manufacturer=XBZJ"/>
  255.     <qemu:arg value="-smbios"/>
  256.     <qemu:arg value="type=17,manufacturer=KINGSTON,loc_pfx=DDR5,speed=4800,serial=000000,part=0000"/>
  257.     <qemu:arg value="-smbios"/>
  258.     <qemu:arg value="type=4,manufacturer=Intel,max-speed=4800,current-speed=4800"/>
  259.     <qemu:arg value="-cpu"/>
  260.     <qemu:arg value="host,family=6,model=158,stepping=2,model_id=Intel(R) Core(TM) i9-12900K CPU @ 2.60GHz,vmware-cpuid-freq=false,enforce=false,host-phys-bits=true,-hypervisor,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,kvm=off,hv_vendor_id=intel"/>
  261.     <qemu:arg value="-smp"/>
  262.     <qemu:arg value="12,cores=12,threads=1,sockets=1"/>
  263.     <qemu:arg value="-machine"/>
  264.     <qemu:arg value="q35,kernel_irqchip=on"/>
  265.     <qemu:arg value="-acpitable"/>
  266.     <qemu:arg value="file=/passthough/ssdt1.dat"/>
  267.     <qemu:env name="DISPLAY" value=":0.0"/>
  268.     <qemu:env name="MESA_LOADER_DRIVER_OVERRIDE" value="i965"/>
  269.   </qemu:commandline>
  270.   <qemu:override>
  271.     <qemu:device alias="hostdev0">
  272.       <qemu:frontend>
  273.         <qemu:property name="x-igd-opregion" type="bool" value="true"/>
  274.         <qemu:property name="driver" type="string" value="vfio-pci-nohotplug"/>
  275.         <qemu:property name="xres" type="unsigned" value="1920"/>
  276.         <qemu:property name="yres" type="unsigned" value="1080"/>
  277.         <qemu:property name="ramfb" type="bool" value="true"/>
  278.         <qemu:property name="display" type="string" value="on"/>
  279.         <qemu:property name="romfile" type="string" value="/passthough/vbios_gvt_uefi.rom"/>
  280.       </qemu:frontend>
  281.     </qemu:device>
  282.     <qemu:device alias="hostdev1">
  283.       <qemu:frontend>
  284.         <qemu:property name="x-pci-vendor-id" type="unsigned" value="4318"/>
  285.         <qemu:property name="x-pci-device-id" type="unsigned" value="8081"/>
  286.         <qemu:property name="x-pci-sub-vendor-id" type="unsigned" value="5464"/>
  287.         <qemu:property name="x-pci-sub-device-id" type="unsigned" value="34144"/>
  288.       </qemu:frontend>
  289.     </qemu:device>
  290.   </qemu:override>
  291. </domain>
  292.  
Advertisement
Add Comment
Please, Sign In to add comment