Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2021
748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.46 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2.   <name>win10-2</name>
  3.   <uuid>5b608e22-5982-4e96-9d89-e688d4bfaf22</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">26624000</memory>
  10.   <currentMemory unit="KiB">26624000</currentMemory>
  11.   <vcpu placement="static" current="1">10</vcpu>
  12.   <os>
  13.     <type arch="x86_64" machine="pc-q35-4.2">hvm</type>
  14.     <loader readonly="yes" type="pflash">/usr/share/OVMF/OVMF_CODE.fd</loader>
  15.     <nvram>/var/lib/libvirt/qemu/nvram/win10-2_VARS.fd</nvram>
  16.   </os>
  17.   <features>
  18.     <acpi/>
  19.     <apic/>
  20.     <hyperv>
  21.       <relaxed state="on"/>
  22.       <vapic state="on"/>
  23.       <spinlocks state="on" retries="8191"/>
  24.       <vendor_id state="on" value="demented"/>
  25.     </hyperv>
  26.     <kvm>
  27.       <hidden state="on"/>
  28.     </kvm>
  29.     <vmport state="off"/>
  30.     <ioapic driver="kvm"/>
  31.   </features>
  32.   <cpu mode="host-model" check="partial">
  33.     <topology sockets="1" cores="5" threads="2"/>
  34.   </cpu>
  35.   <clock offset="localtime">
  36.     <timer name="rtc" tickpolicy="catchup"/>
  37.     <timer name="pit" tickpolicy="delay"/>
  38.     <timer name="hpet" present="no"/>
  39.     <timer name="hypervclock" present="yes"/>
  40.   </clock>
  41.   <on_poweroff>destroy</on_poweroff>
  42.   <on_reboot>restart</on_reboot>
  43.   <on_crash>destroy</on_crash>
  44.   <pm>
  45.     <suspend-to-mem enabled="no"/>
  46.     <suspend-to-disk enabled="no"/>
  47.   </pm>
  48.   <devices>
  49.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  50.     <disk type="file" device="disk">
  51.       <driver name="qemu" type="qcow2"/>
  52.       <source file="/var/lib/libvirt/images/win10-2-1.qcow2"/>
  53.       <target dev="sda" bus="sata"/>
  54.       <boot order="1"/>
  55.       <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  56.     </disk>
  57.     <disk type="file" device="cdrom">
  58.       <driver name="qemu" type="raw"/>
  59.       <source file="/home/demented/Downloads/Win10_21H1_English_x64.iso"/>
  60.       <target dev="sdb" bus="sata"/>
  61.       <readonly/>
  62.       <boot order="2"/>
  63.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  64.     </disk>
  65.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  66.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  67.     </controller>
  68.     <controller type="sata" index="0">
  69.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  70.     </controller>
  71.     <controller type="pci" index="0" model="pcie-root"/>
  72.     <controller type="pci" index="1" model="pcie-root-port">
  73.       <model name="pcie-root-port"/>
  74.       <target chassis="1" port="0x10"/>
  75.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  76.     </controller>
  77.     <controller type="pci" index="2" model="pcie-root-port">
  78.       <model name="pcie-root-port"/>
  79.       <target chassis="2" port="0x11"/>
  80.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  81.     </controller>
  82.     <controller type="pci" index="3" model="pcie-root-port">
  83.       <model name="pcie-root-port"/>
  84.       <target chassis="3" port="0x12"/>
  85.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  86.     </controller>
  87.     <controller type="pci" index="4" model="pcie-root-port">
  88.       <model name="pcie-root-port"/>
  89.       <target chassis="4" port="0x13"/>
  90.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  91.     </controller>
  92.     <controller type="pci" index="5" model="pcie-root-port">
  93.       <model name="pcie-root-port"/>
  94.       <target chassis="5" port="0x14"/>
  95.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  96.     </controller>
  97.     <controller type="pci" index="6" model="pcie-root-port">
  98.       <model name="pcie-root-port"/>
  99.       <target chassis="6" port="0x15"/>
  100.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  101.     </controller>
  102.     <controller type="pci" index="7" model="pcie-root-port">
  103.       <model name="pcie-root-port"/>
  104.       <target chassis="7" port="0x16"/>
  105.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  106.     </controller>
  107.     <controller type="pci" index="8" model="pcie-to-pci-bridge">
  108.       <model name="pcie-pci-bridge"/>
  109.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  110.     </controller>
  111.     <controller type="virtio-serial" index="0">
  112.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  113.     </controller>
  114.     <interface type="direct">
  115.       <mac address="52:54:00:3e:06:d5"/>
  116.       <source dev="enp3s0" mode="bridge"/>
  117.       <model type="e1000e"/>
  118.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  119.     </interface>
  120.     <serial type="pty">
  121.       <target type="isa-serial" port="0">
  122.         <model name="isa-serial"/>
  123.       </target>
  124.     </serial>
  125.     <console type="pty">
  126.       <target type="serial" port="0"/>
  127.     </console>
  128.     <channel type="spicevmc">
  129.       <target type="virtio" name="com.redhat.spice.0"/>
  130.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  131.     </channel>
  132.     <input type="tablet" bus="usb">
  133.       <address type="usb" bus="0" port="1"/>
  134.     </input>
  135.     <input type="mouse" bus="ps2"/>
  136.     <input type="keyboard" bus="ps2"/>
  137.     <sound model="ich9">
  138.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  139.     </sound>
  140.     <hostdev mode="subsystem" type="pci" managed="yes">
  141.       <source>
  142.         <address domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  143.       </source>
  144.       <rom file="/usr/share/vgabios/patch.rom"/>
  145.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  146.     </hostdev>
  147.     <hostdev mode="subsystem" type="pci" managed="yes">
  148.       <source>
  149.         <address domain="0x0000" bus="0x06" slot="0x00" function="0x1"/>
  150.       </source>
  151.       <rom file="/usr/share/vgabios/patch.rom"/>
  152.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  153.     </hostdev>
  154.     <hostdev mode="subsystem" type="usb" managed="yes">
  155.       <source>
  156.         <vendor id="0x2516"/>
  157.         <product id="0x0042"/>
  158.       </source>
  159.       <address type="usb" bus="0" port="4"/>
  160.     </hostdev>
  161.     <hostdev mode="subsystem" type="usb" managed="yes">
  162.       <source>
  163.         <vendor id="0x0d8c"/>
  164.         <product id="0x0005"/>
  165.       </source>
  166.       <address type="usb" bus="0" port="5"/>
  167.     </hostdev>
  168.     <hostdev mode="subsystem" type="usb" managed="yes">
  169.       <source>
  170.         <vendor id="0x0b05"/>
  171.         <product id="0x17cb"/>
  172.       </source>
  173.       <address type="usb" bus="0" port="6"/>
  174.     </hostdev>
  175.     <hostdev mode="subsystem" type="usb" managed="yes">
  176.       <source>
  177.         <vendor id="0x093a"/>
  178.         <product id="0x2533"/>
  179.       </source>
  180.       <address type="usb" bus="0" port="7"/>
  181.     </hostdev>
  182.     <redirdev bus="usb" type="spicevmc">
  183.       <address type="usb" bus="0" port="2"/>
  184.     </redirdev>
  185.     <redirdev bus="usb" type="spicevmc">
  186.       <address type="usb" bus="0" port="3"/>
  187.     </redirdev>
  188.     <memballoon model="virtio">
  189.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  190.     </memballoon>
  191.   </devices>
  192.   <qemu:commandline>
  193.     <qemu:arg value="-cpu"/>
  194.     <qemu:arg value="host,hv_time,kvm=off,hv_vendor_id=null"/>
  195.   </qemu:commandline>
  196. </domain>
  197.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement