Guest User

virsh config

a guest
Jul 17th, 2021
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.81 KB | None | 0 0
  1. <domain type="kvm">
  2.   <name>win10</name>
  3.   <uuid>d8e73748-ec5e-47ec-b355-b1af39f6f997</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">8388608</memory>
  10.   <currentMemory unit="KiB">8388608</currentMemory>
  11.   <vcpu placement="static">5</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.     <boot dev="hd"/>
  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.       <vpindex state="on"/>
  26.       <runtime state="on"/>
  27.       <synic state="on"/>
  28.       <stimer state="on"/>
  29.       <reset state="on"/>
  30.       <vendor_id state="on" value="whatever"/>
  31.     </hyperv>
  32.     <kvm>
  33.       <hidden state="on"/>
  34.     </kvm>
  35.     <vmport state="off"/>
  36.     <ioapic driver="kvm"/>
  37.   </features>
  38.   <cpu mode="host-model" check="partial">
  39.     <topology sockets="1" dies="1" cores="5" threads="1"/>
  40.     <feature policy="disable" name="hypervisor"/>
  41.     <feature policy="require" name="invtsc"/>
  42.   </cpu>
  43.   <clock offset="localtime">
  44.     <timer name="rtc" tickpolicy="catchup"/>
  45.     <timer name="pit" tickpolicy="delay"/>
  46.     <timer name="hpet" present="yes"/>
  47.     <timer name="hypervclock" present="yes"/>
  48.   </clock>
  49.   <on_poweroff>destroy</on_poweroff>
  50.   <on_reboot>restart</on_reboot>
  51.   <on_crash>destroy</on_crash>
  52.   <pm>
  53.     <suspend-to-mem enabled="no"/>
  54.     <suspend-to-disk enabled="no"/>
  55.   </pm>
  56.   <devices>
  57.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  58.     <disk type="file" device="disk">
  59.       <driver name="qemu" type="qcow2"/>
  60.       <source file="/var/lib/libvirt/images/win10.qcow2"/>
  61.       <target dev="vda" bus="virtio"/>
  62.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  63.     </disk>
  64.     <disk type="file" device="cdrom">
  65.       <driver name="qemu" type="raw"/>
  66.       <source file="/home/avnde/Downloads/virtio-win-0.1.185.iso"/>
  67.       <target dev="sdb" bus="sata"/>
  68.       <readonly/>
  69.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  70.     </disk>
  71.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  72.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  73.     </controller>
  74.     <controller type="pci" index="0" model="pcie-root"/>
  75.     <controller type="pci" index="1" model="pcie-root-port">
  76.       <model name="pcie-root-port"/>
  77.       <target chassis="1" port="0x10"/>
  78.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  79.     </controller>
  80.     <controller type="pci" index="2" model="pcie-root-port">
  81.       <model name="pcie-root-port"/>
  82.       <target chassis="2" port="0x11"/>
  83.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  84.     </controller>
  85.     <controller type="pci" index="3" model="pcie-root-port">
  86.       <model name="pcie-root-port"/>
  87.       <target chassis="3" port="0x12"/>
  88.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  89.     </controller>
  90.     <controller type="pci" index="4" model="pcie-root-port">
  91.       <model name="pcie-root-port"/>
  92.       <target chassis="4" port="0x13"/>
  93.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  94.     </controller>
  95.     <controller type="pci" index="5" model="pcie-root-port">
  96.       <model name="pcie-root-port"/>
  97.       <target chassis="5" port="0x14"/>
  98.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  99.     </controller>
  100.     <controller type="pci" index="6" model="pcie-root-port">
  101.       <model name="pcie-root-port"/>
  102.       <target chassis="6" port="0x15"/>
  103.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  104.     </controller>
  105.     <controller type="pci" index="7" model="pcie-root-port">
  106.       <model name="pcie-root-port"/>
  107.       <target chassis="7" port="0x8"/>
  108.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  109.     </controller>
  110.     <controller type="pci" index="8" model="pcie-root-port">
  111.       <model name="pcie-root-port"/>
  112.       <target chassis="8" port="0x9"/>
  113.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  114.     </controller>
  115.     <controller type="pci" index="9" model="pcie-root-port">
  116.       <model name="pcie-root-port"/>
  117.       <target chassis="9" port="0xa"/>
  118.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  119.     </controller>
  120.     <controller type="pci" index="10" model="pcie-root-port">
  121.       <model name="pcie-root-port"/>
  122.       <target chassis="10" port="0xb"/>
  123.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  124.     </controller>
  125.     <controller type="pci" index="11" model="pcie-to-pci-bridge">
  126.       <model name="pcie-pci-bridge"/>
  127.       <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  128.     </controller>
  129.     <controller type="virtio-serial" index="0">
  130.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  131.     </controller>
  132.     <controller type="sata" index="0">
  133.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  134.     </controller>
  135.     <interface type="network">
  136.       <mac address="52:54:00:60:db:d4"/>
  137.       <source network="default"/>
  138.       <model type="virtio"/>
  139.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  140.     </interface>
  141.     <input type="mouse" bus="ps2"/>
  142.     <input type="keyboard" bus="ps2"/>
  143.     <audio id="1" type="spice"/>
  144.     <hostdev mode="subsystem" type="pci" managed="yes">
  145.       <source>
  146.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  147.       </source>
  148.       <rom file="/rx580.rom"/>
  149.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  150.     </hostdev>
  151.     <hostdev mode="subsystem" type="pci" managed="yes">
  152.       <source>
  153.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
  154.       </source>
  155.       <rom file="/rx580.rom"/>
  156.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  157.     </hostdev>
  158.     <hostdev mode="subsystem" type="pci" managed="yes">
  159.       <source>
  160.         <address domain="0x0000" bus="0x00" slot="0x14" function="0x0"/>
  161.       </source>
  162.       <address type="pci" domain="0x0000" bus="0x0b" slot="0x01" function="0x0"/>
  163.     </hostdev>
  164.     <memballoon model="virtio">
  165.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  166.     </memballoon>
  167.   </devices>
  168. </domain>
  169.  
Advertisement
Add Comment
Please, Sign In to add comment