kvm

qemu/kvm installation script
git clone https://git.awy.one/kvm.git
Log | Files | Refs | README | LICENSE

win10.xml (7800B)


      1 <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
      2   <name>win10</name>
      3   <uuid>61a8b2c6-664f-47d6-8b00-fd1e2354d054</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'>16777216</memory>
     10   <currentMemory unit='KiB'>16777216</currentMemory>
     11   <vcpu placement='static'>10</vcpu>
     12   <sysinfo type='smbios'>
     13     <bios>
     14       <entry name='vendor'>American Megatrends Inc.</entry>
     15       <entry name='version'>P1.60</entry>
     16     </bios>
     17     <system>
     18       <entry name='manufacturer'>ASUS</entry>
     19       <entry name='product'>GENERIC</entry>
     20       <entry name='version'>1.2</entry>
     21     </system>
     22     <baseBoard>
     23       <entry name='manufacturer'>ASUS</entry>
     24       <entry name='product'>Z390</entry>
     25     </baseBoard>
     26     <chassis>
     27       <entry name='manufacturer'>ASUS</entry>
     28       <entry name='version'>2.0</entry>
     29       <entry name='serial'>GENERIC</entry>
     30       <entry name='asset'>GENERIC</entry>
     31       <entry name='sku'>GENERIC</entry>
     32     </chassis>
     33   </sysinfo>
     34   <os firmware='efi'>
     35     <type arch='x86_64' machine='pc-q35-9.0'>hvm</type>
     36     <firmware>
     37       <feature enabled='no' name='enrolled-keys'/>
     38       <feature enabled='no' name='secure-boot'/>
     39     </firmware>
     40     <loader readonly='yes' type='pflash' format='raw'>/usr/share/edk2/x64/OVMF_CODE.4m.fd</loader>
     41     <nvram template='/usr/share/edk2/x64/OVMF_VARS.4m.fd' templateFormat='raw' format='raw'>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
     42     <boot dev='hd'/>
     43     <smbios mode='sysinfo'/>
     44   </os>
     45   <features>
     46     <acpi/>
     47     <apic/>
     48     <hyperv mode='custom'>
     49       <relaxed state='on'/>
     50       <vapic state='on'/>
     51       <spinlocks state='on' retries='8191'/>
     52     </hyperv>
     53     <kvm>
     54       <hidden state='on'/>
     55     </kvm>
     56     <vmport state='off'/>
     57   </features>
     58   <cpu mode='host-passthrough' check='none' migratable='on'>
     59     <topology sockets='1' dies='1' clusters='1' cores='5' threads='2'/>
     60     <feature policy='disable' name='hypervisor'/>
     61   </cpu>
     62   <clock offset='localtime'>
     63     <timer name='rtc' tickpolicy='catchup'/>
     64     <timer name='pit' tickpolicy='delay'/>
     65     <timer name='hpet' present='no'/>
     66     <timer name='hypervclock' present='yes'/>
     67   </clock>
     68   <on_poweroff>destroy</on_poweroff>
     69   <on_reboot>restart</on_reboot>
     70   <on_crash>destroy</on_crash>
     71   <pm>
     72     <suspend-to-mem enabled='no'/>
     73     <suspend-to-disk enabled='no'/>
     74   </pm>
     75   <devices>
     76     <emulator>/bin/qemu-system-x86_64</emulator>
     77     <controller type='usb' index='0' model='qemu-xhci' ports='15'>
     78       <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
     79     </controller>
     80     <controller type='pci' index='0' model='pcie-root'/>
     81     <controller type='pci' index='1' model='pcie-root-port'>
     82       <model name='pcie-root-port'/>
     83       <target chassis='1' port='0x10'/>
     84       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
     85     </controller>
     86     <controller type='pci' index='2' model='pcie-root-port'>
     87       <model name='pcie-root-port'/>
     88       <target chassis='2' port='0x11'/>
     89       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
     90     </controller>
     91     <controller type='pci' index='3' model='pcie-root-port'>
     92       <model name='pcie-root-port'/>
     93       <target chassis='3' port='0x12'/>
     94       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
     95     </controller>
     96     <controller type='pci' index='4' model='pcie-root-port'>
     97       <model name='pcie-root-port'/>
     98       <target chassis='4' port='0x13'/>
     99       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    100     </controller>
    101     <controller type='pci' index='5' model='pcie-root-port'>
    102       <model name='pcie-root-port'/>
    103       <target chassis='5' port='0x14'/>
    104       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    105     </controller>
    106     <controller type='pci' index='6' model='pcie-root-port'>
    107       <model name='pcie-root-port'/>
    108       <target chassis='6' port='0x15'/>
    109       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
    110     </controller>
    111     <controller type='pci' index='7' model='pcie-root-port'>
    112       <model name='pcie-root-port'/>
    113       <target chassis='7' port='0x16'/>
    114       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
    115     </controller>
    116     <controller type='pci' index='8' model='pcie-root-port'>
    117       <model name='pcie-root-port'/>
    118       <target chassis='8' port='0x17'/>
    119       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
    120     </controller>
    121     <controller type='pci' index='9' model='pcie-root-port'>
    122       <model name='pcie-root-port'/>
    123       <target chassis='9' port='0x18'/>
    124       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/>
    125     </controller>
    126     <controller type='pci' index='10' model='pcie-root-port'>
    127       <model name='pcie-root-port'/>
    128       <target chassis='10' port='0x19'/>
    129       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/>
    130     </controller>
    131     <controller type='pci' index='11' model='pcie-root-port'>
    132       <model name='pcie-root-port'/>
    133       <target chassis='11' port='0x1a'/>
    134       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/>
    135     </controller>
    136     <controller type='pci' index='12' model='pcie-root-port'>
    137       <model name='pcie-root-port'/>
    138       <target chassis='12' port='0x1b'/>
    139       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3'/>
    140     </controller>
    141     <controller type='pci' index='13' model='pcie-root-port'>
    142       <model name='pcie-root-port'/>
    143       <target chassis='13' port='0x1c'/>
    144       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4'/>
    145     </controller>
    146     <controller type='pci' index='14' model='pcie-root-port'>
    147       <model name='pcie-root-port'/>
    148       <target chassis='14' port='0x1d'/>
    149       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x5'/>
    150     </controller>
    151     <controller type='sata' index='0'>
    152       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    153     </controller>
    154     <interface type='network'>
    155       <mac address='52:54:00:38:58:28'/>
    156       <source network='default'/>
    157       <model type='e1000e'/>
    158       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    159     </interface>
    160     <input type='mouse' bus='ps2'/>
    161     <input type='keyboard' bus='ps2'/>
    162     <graphics type='spice' autoport='yes'>
    163       <listen type='address'/>
    164       <image compression='off'/>
    165       <gl enable='no'/>
    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='pipewire'/>
    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     <watchdog model='itco' action='reset'/>
    176     <memballoon model='virtio'>
    177       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    178     </memballoon>
    179   </devices>
    180   <qemu:commandline>
    181     <qemu:arg value='-object'/>
    182     <qemu:arg value='input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse'/>
    183     <qemu:arg value='-object'/>
    184     <qemu:arg value='input-linux,id=kbd1,evdev=/dev/input/by-id/usb-ROYUAN_Gaming_keyboard-event-kbd,grab_all=on,repeat=on'/>
    185     <qemu:env name='PIPEWIRE_RUNTIME_DIR' value='/run/user/1000'/>
    186     <qemu:env name='PIPEWIRE_LATENCY' value='512/48000'/>
    187   </qemu:commandline>
    188 </domain>
    189