Advertisement
Guest User

win11.xml

a guest
Jun 2nd, 2024
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.31 KB | Source Code | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2.   <name>win11</name>
  3.   <uuid>dbb778ce-958b-4020-a228-fbd975e088c9</uuid>
  4.   <metadata>
  5.     <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6.       <libosinfo:os id="http://microsoft.com/win/11"/>
  7.     </libosinfo:libosinfo>
  8.   </metadata>
  9.   <memory unit="KiB">8388608</memory>
  10.   <currentMemory unit="KiB">8388608</currentMemory>
  11.   <memoryBacking>
  12.     <source type="memfd"/>
  13.     <access mode="shared"/>
  14.   </memoryBacking>
  15.   <vcpu placement="static">10</vcpu>
  16.   <iothreads>1</iothreads>
  17.   <sysinfo type="smbios">
  18.     <bios>
  19.       <entry name="vendor">LENOVO</entry>
  20.       <entry name="version">EUCN16WW</entry>
  21.       <entry name="date">03/13/2020</entry>
  22.     </bios>
  23.     <system>
  24.       <entry name="manufacturer">LENOVO.</entry>
  25.       <entry name="product">B2B5</entry>
  26.       <entry name="version">Lenovo Legion 5 15ARH05</entry>
  27.       <entry name="serial">PF28WV5Z</entry>
  28.       <entry name="uuid">dbb778ce-958b-4020-a228-fbd975e088c9</entry>
  29.       <entry name="sku">LENOVO_MT_82B5_BU_idea_FM_Legion 5 15ARH05</entry>
  30.       <entry name="family">Legion 5 15ARH05</entry>
  31.     </system>
  32.   </sysinfo>
  33.   <os firmware="efi">
  34.     <type arch="x86_64" machine="pc-q35-9.0">hvm</type>
  35.     <firmware>
  36.       <feature enabled="no" name="enrolled-keys"/>
  37.       <feature enabled="yes" name="secure-boot"/>
  38.     </firmware>
  39.     <loader readonly="yes" secure="yes" type="pflash">/usr/share/edk2/x64/OVMF_CODE.secboot.fd</loader>
  40.     <nvram template="/usr/share/edk2/x64/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/win11_VARS.fd</nvram>
  41.     <smbios mode="sysinfo"/>
  42.   </os>
  43.   <features>
  44.     <acpi/>
  45.     <apic/>
  46.     <kvm>
  47.       <hidden state="on"/>
  48.     </kvm>
  49.     <vmport state="off"/>
  50.     <smm state="on"/>
  51.   </features>
  52.   <cpu mode="host-passthrough" check="none" migratable="on">
  53.     <topology sockets="1" dies="1" clusters="1" cores="5" threads="2"/>
  54.   </cpu>
  55.   <clock offset="localtime">
  56.     <timer name="rtc" tickpolicy="catchup"/>
  57.     <timer name="pit" tickpolicy="delay"/>
  58.     <timer name="hpet" present="no"/>
  59.     <timer name="hypervclock" present="yes"/>
  60.   </clock>
  61.   <on_poweroff>destroy</on_poweroff>
  62.   <on_reboot>restart</on_reboot>
  63.   <on_crash>destroy</on_crash>
  64.   <pm>
  65.     <suspend-to-mem enabled="no"/>
  66.     <suspend-to-disk enabled="no"/>
  67.   </pm>
  68.   <devices>
  69.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  70.     <disk type="file" device="disk">
  71.       <driver name="qemu" type="raw" cache="none" io="native" iothread="1"/>
  72.       <source file="/var/lib/libvirt/images/win11.img"/>
  73.       <target dev="vda" bus="virtio"/>
  74.       <boot order="1"/>
  75.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  76.     </disk>
  77.     <disk type="file" device="cdrom">
  78.       <driver name="qemu" type="raw"/>
  79.       <source file="/home/sakuramatou/Downloads/virtio-win-0.1.248.iso"/>
  80.       <target dev="sdc" bus="sata"/>
  81.       <readonly/>
  82.       <boot order="3"/>
  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="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="0x8"/>
  92.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0x9"/>
  97.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0xa"/>
  102.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0xb"/>
  107.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0xc"/>
  112.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0xd"/>
  117.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0xe"/>
  122.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0xf"/>
  127.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" 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="0x10"/>
  132.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  133.     </controller>
  134.     <controller type="pci" index="10" model="pcie-root-port">
  135.       <model name="pcie-root-port"/>
  136.       <target chassis="10" port="0x11"/>
  137.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  138.     </controller>
  139.     <controller type="pci" index="11" model="pcie-root-port">
  140.       <model name="pcie-root-port"/>
  141.       <target chassis="11" port="0x12"/>
  142.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  143.     </controller>
  144.     <controller type="pci" index="12" model="pcie-root-port">
  145.       <model name="pcie-root-port"/>
  146.       <target chassis="12" port="0x13"/>
  147.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  148.     </controller>
  149.     <controller type="pci" index="13" model="pcie-root-port">
  150.       <model name="pcie-root-port"/>
  151.       <target chassis="13" port="0x14"/>
  152.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  153.     </controller>
  154.     <controller type="pci" index="14" model="pcie-root-port">
  155.       <model name="pcie-root-port"/>
  156.       <target chassis="14" port="0x15"/>
  157.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  158.     </controller>
  159.     <controller type="pci" index="15" model="pcie-root-port">
  160.       <model name="pcie-root-port"/>
  161.       <target chassis="15" port="0x16"/>
  162.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  163.     </controller>
  164.     <controller type="pci" index="16" model="pcie-to-pci-bridge">
  165.       <model name="pcie-pci-bridge"/>
  166.       <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  167.     </controller>
  168.     <controller type="sata" index="0">
  169.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  170.     </controller>
  171.     <controller type="virtio-serial" index="0">
  172.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  173.     </controller>
  174.     <interface type="network">
  175.       <mac address="52:54:00:d0:ba:b1"/>
  176.       <source network="default"/>
  177.       <model type="virtio"/>
  178.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  179.     </interface>
  180.     <serial type="pty">
  181.       <target type="isa-serial" port="0">
  182.         <model name="isa-serial"/>
  183.       </target>
  184.     </serial>
  185.     <console type="pty">
  186.       <target type="serial" port="0"/>
  187.     </console>
  188.     <channel type="spicevmc">
  189.       <target type="virtio" name="com.redhat.spice.0"/>
  190.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  191.     </channel>
  192.     <input type="mouse" bus="ps2"/>
  193.     <input type="keyboard" bus="ps2"/>
  194.     <tpm model="tpm-tis">
  195.       <backend type="passthrough">
  196.         <device path="/dev/tpm0"/>
  197.       </backend>
  198.     </tpm>
  199.     <graphics type="spice" autoport="yes">
  200.       <listen type="address"/>
  201.       <image compression="off"/>
  202.     </graphics>
  203.     <sound model="ich9">
  204.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  205.     </sound>
  206.     <audio id="1" type="spice"/>
  207.     <video>
  208.       <model type="none"/>
  209.     </video>
  210.     <hostdev mode="subsystem" type="pci" managed="yes">
  211.       <source>
  212.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  213.       </source>
  214.       <rom file="/usr/share/vgabios/patches.rom"/>
  215.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  216.     </hostdev>
  217.     <hostdev mode="subsystem" type="pci" managed="yes">
  218.       <source>
  219.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
  220.       </source>
  221.       <rom file="/usr/share/vgabios/patches.rom"/>
  222.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  223.     </hostdev>
  224.     <hostdev mode="subsystem" type="usb" managed="yes">
  225.       <source>
  226.         <vendor id="0x17ef"/>
  227.         <product id="0x60be"/>
  228.       </source>
  229.       <address type="usb" bus="0" port="3"/>
  230.     </hostdev>
  231.     <hostdev mode="subsystem" type="usb" managed="yes">
  232.       <source>
  233.         <vendor id="0x258a"/>
  234.         <product id="0x0016"/>
  235.       </source>
  236.       <address type="usb" bus="0" port="4"/>
  237.     </hostdev>
  238.     <redirdev bus="usb" type="spicevmc">
  239.       <address type="usb" bus="0" port="1"/>
  240.     </redirdev>
  241.     <redirdev bus="usb" type="spicevmc">
  242.       <address type="usb" bus="0" port="2"/>
  243.     </redirdev>
  244.     <watchdog model="itco" action="reset"/>
  245.     <memballoon model="virtio">
  246.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  247.     </memballoon>
  248.     <shmem name="looking-glass">
  249.       <model type="ivshmem-plain"/>
  250.       <size unit="M">128</size>
  251.       <address type="pci" domain="0x0000" bus="0x10" slot="0x01" function="0x0"/>
  252.     </shmem>
  253.   </devices>
  254.   <qemu:commandline>
  255.     <qemu:arg value="-acpitable"/>
  256.     <qemu:arg value="file=/var/lib/libvirt/images/SSDT1.dat"/>
  257.   </qemu:commandline>
  258. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement