Guest User

virt-manager XML

a guest
May 24th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.77 KB | Source Code | 0 0
  1. <domain type="kvm">
  2.   <name>win10</name>
  3.   <uuid>a0d0376a-1855-43ea-8dce-1d77a05f0e70</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">6291456</memory>
  10.   <currentMemory unit="KiB">6291456</currentMemory>
  11.   <vcpu placement="static">4</vcpu>
  12.   <os firmware="efi">
  13.     <type arch="x86_64" machine="pc-q35-10.0">hvm</type>
  14.     <firmware>
  15.       <feature enabled="no" name="enrolled-keys"/>
  16.       <feature enabled="no" name="secure-boot"/>
  17.     </firmware>
  18.     <loader readonly="yes" type="pflash" format="raw">/usr/share/edk2/x64/OVMF_CODE.4m.fd</loader>
  19.     <nvram template="/usr/share/edk2/x64/OVMF_VARS.4m.fd" templateFormat="raw" format="raw">/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  20.     <boot dev="hd"/>
  21.     <bootmenu enable="yes"/>
  22.   </os>
  23.   <features>
  24.     <acpi/>
  25.     <apic/>
  26.     <hyperv mode="custom">
  27.       <relaxed state="on"/>
  28.       <vapic state="on"/>
  29.       <spinlocks state="on" retries="8191"/>
  30.       <vpindex state="on"/>
  31.       <runtime state="on"/>
  32.       <synic state="on"/>
  33.       <stimer state="on"/>
  34.       <frequencies state="on"/>
  35.       <tlbflush state="on"/>
  36.       <ipi state="on"/>
  37.       <avic state="on"/>
  38.     </hyperv>
  39.     <vmport state="off"/>
  40.   </features>
  41.   <cpu mode="host-passthrough" check="none" migratable="on"/>
  42.   <clock offset="localtime">
  43.     <timer name="rtc" tickpolicy="catchup"/>
  44.     <timer name="pit" tickpolicy="delay"/>
  45.     <timer name="hpet" present="no"/>
  46.     <timer name="hypervclock" present="yes"/>
  47.   </clock>
  48.   <on_poweroff>destroy</on_poweroff>
  49.   <on_reboot>restart</on_reboot>
  50.   <on_crash>destroy</on_crash>
  51.   <pm>
  52.     <suspend-to-mem enabled="no"/>
  53.     <suspend-to-disk enabled="no"/>
  54.   </pm>
  55.   <devices>
  56.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  57.     <disk type="block" device="disk">
  58.       <driver name="qemu" type="raw" cache="none" io="native" discard="unmap"/>
  59.       <source dev="/dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S3YZNB0KB17232A"/>
  60.       <target dev="sda" bus="sata"/>
  61.       <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  62.     </disk>
  63.     <controller type="usb" index="0" model="qemu-xhci" ports="15">
  64.       <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  65.     </controller>
  66.     <controller type="pci" index="0" model="pcie-root"/>
  67.     <controller type="pci" index="1" model="pcie-root-port">
  68.       <model name="pcie-root-port"/>
  69.       <target chassis="1" port="0x10"/>
  70.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  71.     </controller>
  72.     <controller type="pci" index="2" model="pcie-root-port">
  73.       <model name="pcie-root-port"/>
  74.       <target chassis="2" port="0x11"/>
  75.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  76.     </controller>
  77.     <controller type="pci" index="3" model="pcie-root-port">
  78.       <model name="pcie-root-port"/>
  79.       <target chassis="3" port="0x12"/>
  80.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  81.     </controller>
  82.     <controller type="pci" index="4" model="pcie-root-port">
  83.       <model name="pcie-root-port"/>
  84.       <target chassis="4" port="0x13"/>
  85.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  86.     </controller>
  87.     <controller type="pci" index="5" model="pcie-root-port">
  88.       <model name="pcie-root-port"/>
  89.       <target chassis="5" port="0x14"/>
  90.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  91.     </controller>
  92.     <controller type="pci" index="6" model="pcie-root-port">
  93.       <model name="pcie-root-port"/>
  94.       <target chassis="6" port="0x15"/>
  95.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  96.     </controller>
  97.     <controller type="pci" index="7" model="pcie-root-port">
  98.       <model name="pcie-root-port"/>
  99.       <target chassis="7" port="0x16"/>
  100.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  101.     </controller>
  102.     <controller type="pci" index="8" model="pcie-root-port">
  103.       <model name="pcie-root-port"/>
  104.       <target chassis="8" port="0x17"/>
  105.       <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  106.     </controller>
  107.     <controller type="pci" index="9" model="pcie-root-port">
  108.       <model name="pcie-root-port"/>
  109.       <target chassis="9" port="0x18"/>
  110.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  111.     </controller>
  112.     <controller type="pci" index="10" model="pcie-root-port">
  113.       <model name="pcie-root-port"/>
  114.       <target chassis="10" port="0x19"/>
  115.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  116.     </controller>
  117.     <controller type="pci" index="11" model="pcie-root-port">
  118.       <model name="pcie-root-port"/>
  119.       <target chassis="11" port="0x1a"/>
  120.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  121.     </controller>
  122.     <controller type="pci" index="12" model="pcie-root-port">
  123.       <model name="pcie-root-port"/>
  124.       <target chassis="12" port="0x1b"/>
  125.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  126.     </controller>
  127.     <controller type="pci" index="13" model="pcie-root-port">
  128.       <model name="pcie-root-port"/>
  129.       <target chassis="13" port="0x1c"/>
  130.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  131.     </controller>
  132.     <controller type="pci" index="14" model="pcie-root-port">
  133.       <model name="pcie-root-port"/>
  134.       <target chassis="14" port="0x1d"/>
  135.       <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  136.     </controller>
  137.     <controller type="sata" index="0">
  138.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  139.     </controller>
  140.     <controller type="virtio-serial" index="0">
  141.       <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  142.     </controller>
  143.     <interface type="network">
  144.       <mac address="52:54:00:21:dd:8c"/>
  145.       <source network="default"/>
  146.       <model type="e1000e"/>
  147.       <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  148.     </interface>
  149.     <serial type="pty">
  150.       <target type="isa-serial" port="0">
  151.         <model name="isa-serial"/>
  152.       </target>
  153.     </serial>
  154.     <console type="pty">
  155.       <target type="serial" port="0"/>
  156.     </console>
  157.     <channel type="spicevmc">
  158.       <target type="virtio" name="com.redhat.spice.0"/>
  159.       <address type="virtio-serial" controller="0" bus="0" port="1"/>
  160.     </channel>
  161.     <input type="tablet" bus="usb">
  162.       <address type="usb" bus="0" port="1"/>
  163.     </input>
  164.     <input type="mouse" bus="ps2"/>
  165.     <input type="keyboard" bus="ps2"/>
  166.     <graphics type="spice" autoport="yes">
  167.       <listen type="address"/>
  168.       <image compression="off"/>
  169.     </graphics>
  170.     <sound model="ich9">
  171.       <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  172.     </sound>
  173.     <audio id="1" type="spice"/>
  174.     <video>
  175.       <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
  176.       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
  177.     </video>
  178.     <redirdev bus="usb" type="spicevmc">
  179.       <address type="usb" bus="0" port="2"/>
  180.     </redirdev>
  181.     <redirdev bus="usb" type="spicevmc">
  182.       <address type="usb" bus="0" port="3"/>
  183.     </redirdev>
  184.     <watchdog model="itco" action="reset"/>
  185.     <memballoon model="virtio">
  186.       <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  187.     </memballoon>
  188.   </devices>
  189. </domain>
  190.  
Advertisement
Add Comment
Please, Sign In to add comment