Advertisement
Guest User

QEMU/KVM XML

a guest
Jul 28th, 2021
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.71 KB | None | 0 0
  1. <domain type="kvm">
  2.   <name>win10</name>
  3.   <uuid>534e5026-f0a7-4472-8379-786db3cd590f</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">32768000</memory>
  10.   <currentMemory unit="KiB">32768000</currentMemory>
  11.   <vcpu placement="static">14</vcpu>
  12.   <os>
  13.     <type arch="x86_64" machine="pc-q35-6.0">hvm</type>
  14.     <loader readonly="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
  15.     <nvram>/var/lib/libvirt/qemu/nvram/Win10_VARS.fd</nvram>
  16.     <bootmenu enable="no"/>
  17.   </os>
  18.   <features>
  19.     <acpi/>
  20.     <apic/>
  21.     <hyperv>
  22.       <relaxed state="on"/>
  23.       <vapic state="on"/>
  24.       <spinlocks state="on" retries="8191"/>
  25.       <vendor_id state="on" value="supermanheroboy"/>
  26.     </hyperv>
  27.     <vmport state="off"/>
  28.   </features>
  29.   <cpu mode="custom" match="exact" check="none">
  30.     <model fallback="forbid">qemu64</model>
  31.   </cpu>
  32.   <clock offset="localtime">
  33.     <timer name="rtc" tickpolicy="catchup"/>
  34.     <timer name="pit" tickpolicy="delay"/>
  35.     <timer name="hpet" present="no"/>
  36.     <timer name="hypervclock" present="yes"/>
  37.   </clock>
  38.   <on_poweroff>destroy</on_poweroff>
  39.   <on_reboot>restart</on_reboot>
  40.   <on_crash>destroy</on_crash>
  41.   <pm>
  42.     <suspend-to-mem enabled="no"/>
  43.     <suspend-to-disk enabled="no"/>
  44.   </pm>
  45.   <devices>
  46.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  47.     <disk type="file" device="disk">
  48.       <driver name="qemu" type="qcow2"/>
  49.       <source file="/home/vinny/.VMs/win10/win10.qcow2"/>
  50.       <target dev="sda" bus="sata"/>
  51.       <boot order="2"/>
  52.       <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  53.     </disk>
  54.     <disk type="file" device="cdrom">
  55.       <driver name="qemu" type="raw"/>
  56.       <source file="/home/vinny/.VMs/win10/win10.iso"/>
  57.       <target dev="sdb" bus="sata"/>
  58.       <readonly/>
  59.       <boot order="1"/>
  60.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  61.     </disk>
  62.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  63.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  64.     </controller>
  65.     <controller type="sata" index="0">
  66.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  67.     </controller>
  68.     <controller type="pci" index="0" model="pcie-root"/>
  69.     <controller type="pci" index="1" model="pcie-root-port">
  70.       <model name="pcie-root-port"/>
  71.       <target chassis="1" port="0x10"/>
  72.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  73.     </controller>
  74.     <controller type="pci" index="2" model="pcie-root-port">
  75.       <model name="pcie-root-port"/>
  76.       <target chassis="2" port="0x11"/>
  77.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  78.     </controller>
  79.     <controller type="pci" index="3" model="pcie-root-port">
  80.       <model name="pcie-root-port"/>
  81.       <target chassis="3" port="0x12"/>
  82.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  83.     </controller>
  84.     <controller type="pci" index="4" model="pcie-root-port">
  85.       <model name="pcie-root-port"/>
  86.       <target chassis="4" port="0x13"/>
  87.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  88.     </controller>
  89.     <controller type="pci" index="5" model="pcie-root-port">
  90.       <model name="pcie-root-port"/>
  91.       <target chassis="5" port="0x14"/>
  92.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  93.     </controller>
  94.     <controller type="pci" index="6" model="pcie-root-port">
  95.       <model name="pcie-root-port"/>
  96.       <target chassis="6" port="0x15"/>
  97.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  98.     </controller>
  99.     <controller type="virtio-serial" index="0">
  100.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  101.     </controller>
  102.     <interface type="network">
  103.       <mac address="52:54:00:9b:b6:81"/>
  104.       <source network="default"/>
  105.       <model type="e1000e"/>
  106.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  107.     </interface>
  108.     <serial type="pty">
  109.       <target type="isa-serial" port="0">
  110.         <model name="isa-serial"/>
  111.       </target>
  112.     </serial>
  113.     <console type="pty">
  114.       <target type="serial" port="0"/>
  115.     </console>
  116.     <channel type="spicevmc">
  117.       <target type="virtio" name="com.redhat.spice.0"/>
  118.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  119.     </channel>
  120.     <input type="tablet" bus="usb">
  121.       <address type="usb" bus="0" port="1"/>
  122.     </input>
  123.     <input type="mouse" bus="ps2"/>
  124.     <input type="keyboard" bus="ps2"/>
  125.     <graphics type="spice" autoport="yes">
  126.       <listen type="address"/>
  127.       <image compression="off"/>
  128.     </graphics>
  129.     <sound model="ich9">
  130.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  131.     </sound>
  132.     <audio id="1" type="spice"/>
  133.     <video>
  134.       <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
  135.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
  136.     </video>
  137.     <hostdev mode="subsystem" type="usb" managed="yes">
  138.       <source>
  139.         <vendor id="0x1532"/>
  140.         <product id="0x006c"/>
  141.       </source>
  142.       <address type="usb" bus="0" port="4"/>
  143.     </hostdev>
  144.     <hostdev mode="subsystem" type="usb" managed="yes">
  145.       <source>
  146.         <vendor id="0x1532"/>
  147.         <product id="0x0228"/>
  148.       </source>
  149.       <address type="usb" bus="0" port="5"/>
  150.     </hostdev>
  151.     <hostdev mode="subsystem" type="pci" managed="yes">
  152.       <source>
  153.         <address domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
  154.       </source>
  155.       <rom file="/home/vinny/.VMs/utils/rtx3090patch.rom"/>
  156.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  157.     </hostdev>
  158.     <hostdev mode="subsystem" type="pci" managed="yes">
  159.       <source>
  160.         <address domain="0x0000" bus="0x0b" slot="0x00" function="0x1"/>
  161.       </source>
  162.       <rom file="/home/vinny/.VMs/utils/rtx3090patch.rom"/>
  163.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  164.     </hostdev>
  165.     <redirdev bus="usb" type="spicevmc">
  166.       <address type="usb" bus="0" port="2"/>
  167.     </redirdev>
  168.     <redirdev bus="usb" type="spicevmc">
  169.       <address type="usb" bus="0" port="3"/>
  170.     </redirdev>
  171.     <memballoon model="virtio">
  172.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  173.     </memballoon>
  174.   </devices>
  175. </domain>
  176.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement