Guest User

W11 VFIO Unraid

a guest
Jul 28th, 2026
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.28 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <domain type='kvm'
  3.     xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  4.     <name>Windows 11 Gaming</name>
  5.     <uuid>43bfeaac-043d-3406-8b71-4dafb1a9d073</uuid>
  6.     <metadata>
  7.         <vmtemplate
  8.             xmlns="http://unraid" name="Windows 11" iconold="windows11.png" icon="windows11.png" os="windowstpm" webui="" storage="default"/>
  9.         </metadata>
  10.         <memory unit='KiB'>25165824</memory>
  11.         <currentMemory unit='KiB'>25165824</currentMemory>
  12.         <memoryBacking>
  13.             <hugepages/>
  14.             <nosharepages/>
  15.             <source type='memfd'/>
  16.             <access mode='shared'/>
  17.         </memoryBacking>
  18.         <vcpu placement='static'>14</vcpu>
  19.         <iothreads>1</iothreads>
  20.         <cputune>
  21.             <vcpupin vcpu='0' cpuset='2'/>
  22.             <vcpupin vcpu='1' cpuset='3'/>
  23.             <vcpupin vcpu='2' cpuset='4'/>
  24.             <vcpupin vcpu='3' cpuset='5'/>
  25.             <vcpupin vcpu='4' cpuset='6'/>
  26.             <vcpupin vcpu='5' cpuset='7'/>
  27.             <vcpupin vcpu='6' cpuset='8'/>
  28.             <vcpupin vcpu='7' cpuset='9'/>
  29.             <vcpupin vcpu='8' cpuset='10'/>
  30.             <vcpupin vcpu='9' cpuset='11'/>
  31.             <vcpupin vcpu='10' cpuset='12'/>
  32.             <vcpupin vcpu='11' cpuset='13'/>
  33.             <vcpupin vcpu='12' cpuset='14'/>
  34.             <vcpupin vcpu='13' cpuset='15'/>
  35.             <emulatorpin cpuset='0-1'/>
  36.             <iothreadpin iothread='1' cpuset='0-1'/>
  37.         </cputune>
  38.         <sysinfo type='smbios'>
  39.             <bios>
  40.                 <entry name='vendor'>American Megatrends International, LLC.</entry>
  41.                 <entry name='version'>1.M0</entry>
  42.                 <entry name='date'>08/08/2025</entry>
  43.                 <entry name='release'>5.32</entry>
  44.             </bios>
  45.             <system>
  46.                 <entry name='manufacturer'>Micro-Star International Co., Ltd.</entry>
  47.                 <entry name='product'>MS-7D25</entry>
  48.                 <entry name='version'>1.0</entry>
  49.                 <entry name='serial'>Default string</entry>
  50.                 <entry name='uuid'>43bfeaac-043d-3406-8b71-4dafb1a9d073</entry>
  51.                 <entry name='sku'>Default string</entry>
  52.                 <entry name='family'>Default string</entry>
  53.             </system>
  54.             <chassis>
  55.                 <entry name='manufacturer'>Micro-Star International Co., Ltd.</entry>
  56.                 <entry name='version'>1.0</entry>
  57.                 <entry name='serial'>Default string</entry>
  58.                 <entry name='asset'>Default string</entry>
  59.                 <entry name='sku'>Default string</entry>
  60.             </chassis>
  61.         </sysinfo>
  62.         <os>
  63.             <type arch='x86_64' machine='pc-q35-9.2'>hvm</type>
  64.             <loader readonly='yes' type='pflash' format='raw'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi-tpm.fd</loader>
  65.             <nvram format='raw'>/etc/libvirt/qemu/nvram/43bfeaac-043d-3406-8b71-4dafb1a9d073_VARS-pure-efi-tpm.fd</nvram>
  66.             <smbios mode='host'/>
  67.         </os>
  68.         <features>
  69.             <acpi/>
  70.             <apic/>
  71.             <hyperv mode='custom'>
  72.                 <relaxed state='on'/>
  73.                 <vapic state='on'/>
  74.                 <spinlocks state='on' retries='8191'/>
  75.                 <vpindex state='on'/>
  76.                 <runtime state='on'/>
  77.                 <synic state='on'/>
  78.                 <stimer state='on'/>
  79.                 <reset state='on'/>
  80.                 <frequencies state='on'/>
  81.                 <tlbflush state='on'/>
  82.                 <ipi state='on'/>
  83.             </hyperv>
  84.             <kvm>
  85.                 <hidden state='on'/>
  86.             </kvm>
  87.             <vmport state='off'/>
  88.             <ioapic driver='kvm'/>
  89.         </features>
  90.         <cpu mode='host-passthrough' check='none' migratable='on'>
  91.             <topology sockets='1' dies='1' clusters='1' cores='7' threads='2'/>
  92.             <cache mode='passthrough'/>
  93.             <feature policy='require' name='invtsc'/>
  94.             <feature policy='disable' name='vmx'/>
  95.         </cpu>
  96.         <clock offset='localtime'>
  97.             <timer name='rtc' tickpolicy='catchup'/>
  98.             <timer name='pit' tickpolicy='delay'/>
  99.             <timer name='hpet' present='no'/>
  100.             <timer name='hypervclock' present='yes'/>
  101.             <timer name='tsc' present='yes' mode='native'/>
  102.         </clock>
  103.         <on_poweroff>destroy</on_poweroff>
  104.         <on_reboot>restart</on_reboot>
  105.         <on_crash>restart</on_crash>
  106.         <devices>
  107.             <emulator>/usr/local/sbin/qemu</emulator>
  108.             <disk type='file' device='disk'>
  109.                 <driver name='qemu' type='raw' cache='writeback' io='threads' discard='unmap' iothread='1'/>
  110.                 <source file='/mnt/nvme/vm/Windows 11 Gaming/vdisk1.img'/>
  111.                 <target dev='hdc' bus='virtio'/>
  112.                 <serial>vdisk1</serial>
  113.                 <boot order='1'/>
  114.                 <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  115.             </disk>
  116.             <disk type='file' device='disk'>
  117.                 <driver name='qemu' type='raw' cache='writeback' io='threads' discard='unmap' iothread='1'/>
  118.                 <source file='/mnt/ssd/vm/Windows 11 Gaming/vdisk2-raw.img'/>
  119.                 <target dev='hdd' bus='virtio'/>
  120.                 <serial>vdisk2</serial>
  121.                 <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  122.             </disk>
  123.             <controller type='pci' index='0' model='pcie-root'/>
  124.             <controller type='pci' index='1' model='pcie-root-port'>
  125.                 <model name='pcie-root-port'/>
  126.                 <target chassis='1' port='0x8'/>
  127.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  128.             </controller>
  129.             <controller type='pci' index='2' model='pcie-root-port'>
  130.                 <model name='pcie-root-port'/>
  131.                 <target chassis='2' port='0x9'/>
  132.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  133.             </controller>
  134.             <controller type='pci' index='3' model='pcie-root-port'>
  135.                 <model name='pcie-root-port'/>
  136.                 <target chassis='3' port='0xe'/>
  137.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x6'/>
  138.             </controller>
  139.             <controller type='pci' index='4' model='pcie-root-port'>
  140.                 <model name='pcie-root-port'/>
  141.                 <target chassis='4' port='0xa'/>
  142.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  143.             </controller>
  144.             <controller type='pci' index='5' model='pcie-root-port'>
  145.                 <model name='pcie-root-port'/>
  146.                 <target chassis='5' port='0xb'/>
  147.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
  148.             </controller>
  149.             <controller type='pci' index='6' model='pcie-root-port'>
  150.                 <model name='pcie-root-port'/>
  151.                 <target chassis='6' port='0xc'/>
  152.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
  153.             </controller>
  154.             <controller type='pci' index='7' model='pcie-root-port'>
  155.                 <model name='pcie-root-port'/>
  156.                 <target chassis='7' port='0xd'/>
  157.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
  158.             </controller>
  159.             <controller type='pci' index='8' model='pcie-root-port'>
  160.                 <model name='pcie-root-port'/>
  161.                 <target chassis='8' port='0xf'/>
  162.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x7'/>
  163.             </controller>
  164.             <controller type='pci' index='9' model='pcie-to-pci-bridge'>
  165.                 <model name='pcie-pci-bridge'/>
  166.                 <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  167.             </controller>
  168.             <controller type='virtio-serial' index='0'>
  169.                 <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  170.             </controller>
  171.             <controller type='sata' index='0'>
  172.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  173.             </controller>
  174.             <controller type='usb' index='0' model='ich9-ehci1'>
  175.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
  176.             </controller>
  177.             <controller type='usb' index='0' model='ich9-uhci1'>
  178.                 <master startport='0'/>
  179.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
  180.             </controller>
  181.             <controller type='usb' index='0' model='ich9-uhci2'>
  182.                 <master startport='2'/>
  183.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
  184.             </controller>
  185.             <controller type='usb' index='0' model='ich9-uhci3'>
  186.                 <master startport='4'/>
  187.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
  188.             </controller>
  189.             <filesystem type='mount' accessmode='passthrough'>
  190.                 <driver type='virtiofs' queue='1024'/>
  191.                 <binary path='/usr/libexec/virtiofsd' xattr='on'>
  192.                     <cache mode='always'/>
  193.                     <sandbox mode='chroot'/>
  194.                 </binary>
  195.                 <source dir='/tmp/vmsensors'/>
  196.                 <target dir='hostsensors'/>
  197.                 <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  198.             </filesystem>
  199.             <interface type='bridge'>
  200.                 <mac address='52:54:00:94:de:e3'/>
  201.                 <source bridge='br0'/>
  202.                 <model type='e1000'/>
  203.                 <address type='pci' domain='0x0000' bus='0x09' slot='0x01' function='0x0'/>
  204.             </interface>
  205.             <serial type='pty'>
  206.                 <target type='isa-serial' port='0'>
  207.                     <model name='isa-serial'/>
  208.                 </target>
  209.             </serial>
  210.             <console type='pty'>
  211.                 <target type='serial' port='0'/>
  212.             </console>
  213.             <channel type='unix'>
  214.                 <target type='virtio' name='org.qemu.guest_agent.0'/>
  215.                 <address type='virtio-serial' controller='0' bus='0' port='1'/>
  216.             </channel>
  217.             <channel type='qemu-vdagent'>
  218.                 <source>
  219.                     <clipboard copypaste='yes'/>
  220.                     <mouse mode='client'/>
  221.                 </source>
  222.                 <target type='virtio' name='com.redhat.spice.0'/>
  223.                 <address type='virtio-serial' controller='0' bus='0' port='2'/>
  224.             </channel>
  225.             <input type='tablet' bus='usb'>
  226.                 <address type='usb' bus='0' port='1'/>
  227.             </input>
  228.             <input type='mouse' bus='ps2'/>
  229.             <input type='keyboard' bus='ps2'/>
  230.             <tpm model='tpm-tis'>
  231.                 <backend type='emulator' version='2.0' persistent_state='yes'/>
  232.             </tpm>
  233.             <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' sharePolicy='ignore'>
  234.                 <listen type='address' address='0.0.0.0'/>
  235.             </graphics>
  236.             <audio id='1' type='none'/>
  237.             <video>
  238.                 <model type='qxl' ram='65536' vram='262144' vram64='262144' vgamem='65536' heads='1' primary='yes'/>
  239.                 <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
  240.             </video>
  241.             <hostdev mode='subsystem' type='pci' managed='yes'>
  242.                 <driver name='vfio'/>
  243.                 <source>
  244.                     <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  245.                 </source>
  246.                 <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  247.             </hostdev>
  248.             <hostdev mode='subsystem' type='pci' managed='yes'>
  249.                 <driver name='vfio'/>
  250.                 <source>
  251.                     <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
  252.                 </source>
  253.                 <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
  254.             </hostdev>
  255.             <watchdog model='itco' action='reset'/>
  256.             <memballoon model='none'/>
  257.         </devices>
  258.         <qemu:commandline>
  259.             <qemu:arg value='-smbios'/>
  260.             <qemu:arg value='type=2,manufacturer=Micro-Star International Co. Ltd.,product=PRO Z690-A DDR4(MS-7D25),version=1.0,serial=07D2512_LC1E130451,asset=Default string,location=Default string'/>
  261.         </qemu:commandline>
  262.     </domain>
Advertisement
Add Comment
Please, Sign In to add comment