kvm

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

win10-hidden-pt.xml (9072B)


      1 <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
      2   <name>win10-hidden-pt</name>
      3   <uuid>5de3881c-2777-414a-9ccf-a1cf01877a55</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'>28672000</memory>
     10   <currentMemory unit='KiB'>28672000</currentMemory>
     11   <vcpu placement='static' cpuset='1-5,7-11'>10</vcpu>
     12   <cputune>
     13     <vcpupin vcpu='0' cpuset='1'/>
     14     <vcpupin vcpu='1' cpuset='2'/>
     15     <vcpupin vcpu='2' cpuset='3'/>
     16     <vcpupin vcpu='3' cpuset='4'/>
     17     <vcpupin vcpu='4' cpuset='5'/>
     18     <vcpupin vcpu='5' cpuset='7'/>
     19     <vcpupin vcpu='6' cpuset='8'/>
     20     <vcpupin vcpu='7' cpuset='9'/>
     21     <vcpupin vcpu='8' cpuset='10'/>
     22     <vcpupin vcpu='9' cpuset='11'/>
     23     <emulatorpin cpuset='0,6'/>
     24     <emulatorsched scheduler='fifo' priority='1'/>
     25     <vcpusched vcpus='0' scheduler='fifo' priority='1'/>
     26     <vcpusched vcpus='1' scheduler='fifo' priority='1'/>
     27     <vcpusched vcpus='2' scheduler='fifo' priority='1'/>
     28     <vcpusched vcpus='3' scheduler='fifo' priority='1'/>
     29     <vcpusched vcpus='4' scheduler='fifo' priority='1'/>
     30     <vcpusched vcpus='5' scheduler='fifo' priority='1'/>
     31     <vcpusched vcpus='6' scheduler='fifo' priority='1'/>
     32     <vcpusched vcpus='7' scheduler='fifo' priority='1'/>
     33     <vcpusched vcpus='8' scheduler='fifo' priority='1'/>
     34     <vcpusched vcpus='9' scheduler='fifo' priority='1'/>
     35   </cputune>
     36   <sysinfo type='smbios'>
     37     <bios>
     38       <entry name='vendor'>American Megatrends Inc.</entry>
     39       <entry name='version'>P1.60</entry>
     40     </bios>
     41     <system>
     42       <entry name='manufacturer'>ASUS</entry>
     43       <entry name='product'>GENERIC</entry>
     44       <entry name='version'>1.2</entry>
     45     </system>
     46     <baseBoard>
     47       <entry name='manufacturer'>ASUS</entry>
     48       <entry name='product'>Z390</entry>
     49     </baseBoard>
     50     <chassis>
     51       <entry name='manufacturer'>ASUS</entry>
     52       <entry name='version'>2.0</entry>
     53       <entry name='serial'>GENERIC</entry>
     54       <entry name='asset'>GENERIC</entry>
     55       <entry name='sku'>GENERIC</entry>
     56     </chassis>
     57   </sysinfo>
     58   <os firmware='efi'>
     59     <type arch='x86_64' machine='pc-q35-9.0'>hvm</type>
     60     <firmware>
     61       <feature enabled='no' name='enrolled-keys'/>
     62       <feature enabled='no' name='secure-boot'/>
     63     </firmware>
     64     <loader readonly='yes' type='pflash'>/usr/share/edk2/x64/OVMF_CODE.4m.fd</loader>
     65     <nvram template='/usr/share/edk2/x64/OVMF_VARS.4m.fd'>/var/lib/libvirt/qemu/nvram/win10-hidden-pt_VARS.fd</nvram>
     66     <boot dev='hd'/>
     67     <smbios mode='sysinfo'/>
     68   </os>
     69   <features>
     70     <acpi/>
     71     <apic/>
     72     <hyperv mode='custom'>
     73       <relaxed state='on'/>
     74       <vapic state='on'/>
     75       <spinlocks state='on' retries='8191'/>
     76     </hyperv>
     77     <kvm>
     78       <hidden state='on'/>
     79     </kvm>
     80     <vmport state='off'/>
     81   </features>
     82   <cpu mode='host-passthrough' check='none' migratable='on'>
     83     <topology sockets='1' dies='1' clusters='1' cores='5' threads='2'/>
     84     <feature policy='disable' name='hypervisor'/>
     85   </cpu>
     86   <clock offset='localtime'>
     87     <timer name='rtc' tickpolicy='catchup'/>
     88     <timer name='pit' tickpolicy='delay'/>
     89     <timer name='hpet' present='no'/>
     90     <timer name='hypervclock' present='yes'/>
     91   </clock>
     92   <on_poweroff>destroy</on_poweroff>
     93   <on_reboot>restart</on_reboot>
     94   <on_crash>destroy</on_crash>
     95   <pm>
     96     <suspend-to-mem enabled='no'/>
     97     <suspend-to-disk enabled='no'/>
     98   </pm>
     99   <devices>
    100     <emulator>/bin/qemu-system-x86_64</emulator>
    101     <controller type='usb' index='0' model='qemu-xhci' ports='15'>
    102       <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    103     </controller>
    104     <controller type='pci' index='0' model='pcie-root'/>
    105     <controller type='pci' index='1' model='pcie-root-port'>
    106       <model name='pcie-root-port'/>
    107       <target chassis='1' port='0x10'/>
    108       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    109     </controller>
    110     <controller type='pci' index='2' model='pcie-root-port'>
    111       <model name='pcie-root-port'/>
    112       <target chassis='2' port='0x11'/>
    113       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    114     </controller>
    115     <controller type='pci' index='3' model='pcie-root-port'>
    116       <model name='pcie-root-port'/>
    117       <target chassis='3' port='0x12'/>
    118       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    119     </controller>
    120     <controller type='pci' index='4' model='pcie-root-port'>
    121       <model name='pcie-root-port'/>
    122       <target chassis='4' port='0x13'/>
    123       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    124     </controller>
    125     <controller type='pci' index='5' model='pcie-root-port'>
    126       <model name='pcie-root-port'/>
    127       <target chassis='5' port='0x14'/>
    128       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    129     </controller>
    130     <controller type='pci' index='6' model='pcie-root-port'>
    131       <model name='pcie-root-port'/>
    132       <target chassis='6' port='0x15'/>
    133       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
    134     </controller>
    135     <controller type='pci' index='7' model='pcie-root-port'>
    136       <model name='pcie-root-port'/>
    137       <target chassis='7' port='0x16'/>
    138       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
    139     </controller>
    140     <controller type='pci' index='8' model='pcie-root-port'>
    141       <model name='pcie-root-port'/>
    142       <target chassis='8' port='0x17'/>
    143       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
    144     </controller>
    145     <controller type='pci' index='9' model='pcie-root-port'>
    146       <model name='pcie-root-port'/>
    147       <target chassis='9' port='0x18'/>
    148       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/>
    149     </controller>
    150     <controller type='pci' index='10' model='pcie-root-port'>
    151       <model name='pcie-root-port'/>
    152       <target chassis='10' port='0x19'/>
    153       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/>
    154     </controller>
    155     <controller type='pci' index='11' model='pcie-root-port'>
    156       <model name='pcie-root-port'/>
    157       <target chassis='11' port='0x1a'/>
    158       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/>
    159     </controller>
    160     <controller type='pci' index='12' model='pcie-root-port'>
    161       <model name='pcie-root-port'/>
    162       <target chassis='12' port='0x1b'/>
    163       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3'/>
    164     </controller>
    165     <controller type='pci' index='13' model='pcie-root-port'>
    166       <model name='pcie-root-port'/>
    167       <target chassis='13' port='0x1c'/>
    168       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4'/>
    169     </controller>
    170     <controller type='pci' index='14' model='pcie-root-port'>
    171       <model name='pcie-root-port'/>
    172       <target chassis='14' port='0x1d'/>
    173       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x5'/>
    174     </controller>
    175     <controller type='sata' index='0'>
    176       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    177     </controller>
    178     <interface type='network'>
    179       <mac address='52:54:00:7e:d6:6e'/>
    180       <source network='default'/>
    181       <model type='e1000e'/>
    182       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    183     </interface>
    184     <input type='mouse' bus='ps2'/>
    185     <input type='keyboard' bus='ps2'/>
    186     <audio id='1' type='none'/>
    187     <hostdev mode='subsystem' type='pci' managed='yes'>
    188       <source>
    189         <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    190       </source>
    191       <rom file='/home/awy/.local/share/vgabios/patch.rom'/>
    192       <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    193     </hostdev>
    194     <hostdev mode='subsystem' type='pci' managed='yes'>
    195       <source>
    196         <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
    197       </source>
    198       <rom file='/home/awy/.local/share/vgabios/patch.rom'/>
    199       <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    200     </hostdev>
    201     <hostdev mode='subsystem' type='usb' managed='yes'>
    202       <source>
    203         <vendor id='0x046d'/>
    204         <product id='0x0acb'/>
    205       </source>
    206       <address type='usb' bus='0' port='1'/>
    207     </hostdev>
    208     <watchdog model='itco' action='reset'/>
    209     <memballoon model='virtio'>
    210       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    211     </memballoon>
    212   </devices>
    213   <qemu:commandline>
    214     <qemu:arg value='-object'/>
    215     <qemu:arg value='input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse'/>
    216     <qemu:arg value='-object'/>
    217     <qemu:arg value='input-linux,id=kbd1,evdev=/dev/input/by-id/usb-ROYUAN_Gaming_keyboard-event-kbd,grab_all=on,repeat=on'/>
    218   </qemu:commandline>
    219 </domain>
    220