Guest User

Qemu XML

a guest
Jan 5th, 2023
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.09 KB | None | 0 0
  1. <domain type="kvm">
  2.   <name>Affinity</name>
  3.   <uuid>1c254b99-ea7e-4c25-aaae-416596a7bf6b</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.   <vcpu placement="static">4</vcpu>
  12.   <os firmware="efi">
  13.     <type arch="x86_64" machine="pc-q35-7.2">hvm</type>
  14.     <boot dev="hd"/>
  15.   </os>
  16.   <features>
  17.     <acpi/>
  18.     <apic/>
  19.     <hyperv mode="custom">
  20.       <relaxed state="on"/>
  21.       <vapic state="on"/>
  22.       <spinlocks state="on" retries="8191"/>
  23.     </hyperv>
  24.     <vmport state="off"/>
  25.   </features>
  26.   <cpu mode="host-passthrough" check="none" migratable="on"/>
  27.   <clock offset="localtime">
  28.     <timer name="hpet" present="yes"/>
  29.     <timer name="hypervclock" present="yes"/>
  30.   </clock>
  31.   <on_poweroff>destroy</on_poweroff>
  32.   <on_reboot>restart</on_reboot>
  33.   <on_crash>destroy</on_crash>
  34.   <pm>
  35.     <suspend-to-mem enabled="no"/>
  36.     <suspend-to-disk enabled="no"/>
  37.   </pm>
  38.   <devices>
  39.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  40.     <disk type="file" device="disk">
  41.       <driver name="qemu" type="qcow2" discard="unmap"/>
  42.       <source file="/var/lib/libvirt/images/Affinity.qcow2"/>
  43.       <target dev="vda" bus="virtio"/>
  44.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  45.     </disk>
  46.     <disk type="file" device="cdrom">
  47.       <driver name="qemu" type="raw"/>
  48.       <source file="/home/veprovina/Downloads/Win10_22H2_EnglishInternational_x64.iso"/>
  49.       <target dev="sdb" bus="sata"/>
  50.       <readonly/>
  51.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  52.     </disk>
  53.     <disk type="file" device="cdrom">
  54.       <driver name="qemu" type="raw"/>
  55.       <source file="/home/veprovina/Downloads/virtio-win-0.1.225.iso"/>
  56.       <target dev="sdc" bus="sata"/>
  57.       <readonly/>
  58.       <address type="drive" controller="0" bus="0" target="0" unit="2"/>
  59.     </disk>
  60.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  61.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  62.     </controller>
  63.     <controller type="pci" index="0" model="pcie-root"/>
  64.     <controller type="pci" index="1" model="pcie-root-port">
  65.       <model name="pcie-root-port"/>
  66.       <target chassis="1" port="0x10"/>
  67.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  68.     </controller>
  69.     <controller type="pci" index="2" model="pcie-root-port">
  70.       <model name="pcie-root-port"/>
  71.       <target chassis="2" port="0x11"/>
  72.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  73.     </controller>
  74.     <controller type="pci" index="3" model="pcie-root-port">
  75.       <model name="pcie-root-port"/>
  76.       <target chassis="3" port="0x12"/>
  77.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  78.     </controller>
  79.     <controller type="pci" index="4" model="pcie-root-port">
  80.       <model name="pcie-root-port"/>
  81.       <target chassis="4" port="0x13"/>
  82.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  83.     </controller>
  84.     <controller type="pci" index="5" model="pcie-root-port">
  85.       <model name="pcie-root-port"/>
  86.       <target chassis="5" port="0x14"/>
  87.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  88.     </controller>
  89.     <controller type="pci" index="6" model="pcie-root-port">
  90.       <model name="pcie-root-port"/>
  91.       <target chassis="6" port="0x15"/>
  92.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  93.     </controller>
  94.     <controller type="pci" index="7" model="pcie-root-port">
  95.       <model name="pcie-root-port"/>
  96.       <target chassis="7" port="0x16"/>
  97.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  98.     </controller>
  99.     <controller type="pci" index="8" model="pcie-root-port">
  100.       <model name="pcie-root-port"/>
  101.       <target chassis="8" port="0x17"/>
  102.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  103.     </controller>
  104.     <controller type="pci" index="9" model="pcie-root-port">
  105.       <model name="pcie-root-port"/>
  106.       <target chassis="9" port="0x18"/>
  107.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  108.     </controller>
  109.     <controller type="pci" index="10" model="pcie-root-port">
  110.       <model name="pcie-root-port"/>
  111.       <target chassis="10" port="0x19"/>
  112.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  113.     </controller>
  114.     <controller type="pci" index="11" model="pcie-root-port">
  115.       <model name="pcie-root-port"/>
  116.       <target chassis="11" port="0x1a"/>
  117.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  118.     </controller>
  119.     <controller type="pci" index="12" model="pcie-root-port">
  120.       <model name="pcie-root-port"/>
  121.       <target chassis="12" port="0x1b"/>
  122.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  123.     </controller>
  124.     <controller type="pci" index="13" model="pcie-root-port">
  125.       <model name="pcie-root-port"/>
  126.       <target chassis="13" port="0x1c"/>
  127.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  128.     </controller>
  129.     <controller type="pci" index="14" model="pcie-root-port">
  130.       <model name="pcie-root-port"/>
  131.       <target chassis="14" port="0x1d"/>
  132.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  133.     </controller>
  134.     <controller type="sata" index="0">
  135.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  136.     </controller>
  137.     <controller type="virtio-serial" index="0">
  138.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  139.     </controller>
  140.     <interface type="network">
  141.       <mac address="52:54:00:1d:04:a1"/>
  142.       <source network="default"/>
  143.       <model type="virtio"/>
  144.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  145.     </interface>
  146.     <serial type="pty">
  147.       <target type="isa-serial" port="0">
  148.         <model name="isa-serial"/>
  149.       </target>
  150.     </serial>
  151.     <console type="pty">
  152.       <target type="serial" port="0"/>
  153.     </console>
  154.     <channel type="spicevmc">
  155.       <target type="virtio" name="com.redhat.spice.0"/>
  156.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  157.     </channel>
  158.     <input type="tablet" bus="usb">
  159.       <address type="usb" bus="0" port="1"/>
  160.     </input>
  161.     <input type="mouse" bus="ps2"/>
  162.     <input type="keyboard" bus="ps2"/>
  163.     <graphics type="spice" autoport="yes">
  164.       <listen type="address"/>
  165.       <image compression="off"/>
  166.     </graphics>
  167.     <sound model="ich9">
  168.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  169.     </sound>
  170.     <audio id="1" type="spice"/>
  171.     <video>
  172.       <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
  173.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
  174.     </video>
  175.     <hostdev mode="subsystem" type="pci" managed="yes">
  176.       <source>
  177.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  178.       </source>
  179.       <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  180.     </hostdev>
  181.     <hostdev mode="subsystem" type="pci" managed="yes">
  182.       <source>
  183.         <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
  184.       </source>
  185.       <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  186.     </hostdev>
  187.     <redirdev bus="usb" type="spicevmc">
  188.       <address type="usb" bus="0" port="2"/>
  189.     </redirdev>
  190.     <redirdev bus="usb" type="spicevmc">
  191.       <address type="usb" bus="0" port="3"/>
  192.     </redirdev>
  193.     <memballoon model="virtio">
  194.       <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  195.     </memballoon>
  196.   </devices>
  197. </domain>
  198.  
Advertisement
Add Comment
Please, Sign In to add comment