dotfiles

My PC Dotfiles & Website

modules/hosts/valkyrie/_vm/windows.xml (10720B)


  1<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  2  <name>windows</name>
  3  <uuid>58e5ada6-f247-4a07-91eb-8b361f99cca3</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'>16777216</memory>
 10  <currentMemory unit='KiB'>16777216</currentMemory>
 11  <memoryBacking>
 12    <hugepages>
 13      <page size='1048576' unit='KiB' />
 14    </hugepages>
 15    <access mode='shared' />
 16  </memoryBacking>
 17  <vcpu placement='static'>6</vcpu>
 18  <iothreads>1</iothreads>
 19  <cputune>
 20    <vcpupin vcpu='0' cpuset='2' />
 21    <vcpupin vcpu='1' cpuset='10' />
 22    <vcpupin vcpu='2' cpuset='3' />
 23    <vcpupin vcpu='3' cpuset='11' />
 24    <vcpupin vcpu='4' cpuset='4' />
 25    <vcpupin vcpu='5' cpuset='12' />
 26    <emulatorpin cpuset='0-1,8-9' />
 27    <iothreadpin iothread='1' cpuset='0-1,8-9' />
 28  </cputune>
 29  <os firmware='efi'>
 30    <type arch='x86_64' machine='pc-q35-10.2'>hvm</type>
 31    <firmware>
 32      <feature enabled='no' name='enrolled-keys' />
 33      <feature enabled='yes' name='secure-boot' />
 34    </firmware>
 35    <loader readonly='yes' secure='yes' type='pflash' format='raw'>
 36      /run/libvirt/nix-ovmf/edk2-x86_64-secure-code.fd</loader>
 37    <nvram template='/run/libvirt/nix-ovmf/edk2-i386-vars.fd' templateFormat='raw' format='raw'>
 38      /var/lib/libvirt/qemu/nvram/windows_VARS.fd</nvram>
 39  </os>
 40  <features>
 41    <acpi />
 42    <apic />
 43    <hyperv mode='custom'>
 44      <relaxed state='on' />
 45      <vapic state='on' />
 46      <spinlocks state='on' retries='8191' />
 47      <vpindex state='on' />
 48      <runtime state='on' />
 49      <synic state='on' />
 50      <stimer state='on' />
 51      <frequencies state='on' />
 52      <tlbflush state='on' />
 53      <ipi state='on' />
 54      <avic state='on' />
 55    </hyperv>
 56    <vmport state='off' />
 57    <smm state='on' />
 58  </features>
 59  <cpu mode='host-passthrough' check='none' migratable='off'>
 60    <topology sockets='1' dies='1' clusters='1' cores='3' threads='2' />
 61    <cache mode='passthrough' />
 62    <feature policy='require' name='topoext' />
 63  </cpu>
 64  <clock offset='localtime'>
 65    <timer name='rtc' tickpolicy='catchup' />
 66    <timer name='pit' tickpolicy='delay' />
 67    <timer name='hpet' present='no' />
 68    <timer name='hypervclock' present='yes' />
 69  </clock>
 70  <on_poweroff>destroy</on_poweroff>
 71  <on_reboot>restart</on_reboot>
 72  <on_crash>destroy</on_crash>
 73  <pm>
 74    <suspend-to-mem enabled='no' />
 75    <suspend-to-disk enabled='no' />
 76  </pm>
 77  <devices>
 78    <emulator>/run/libvirt/nix-emulators/qemu-system-x86_64</emulator>
 79    <disk type='block' device='disk'>
 80      <driver name='qemu' type='raw' cache='none' io='native' discard='unmap' iothread='1' />
 81      <source dev='/dev/zvol/fspool/vm/windows' />
 82      <target dev='vda' bus='virtio' />
 83      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0' />
 84    </disk>
 85    <filesystem type='mount' accessmode='passthrough'>
 86      <driver type='virtiofs' queue='1024' />
 87      <source dir='@files' />
 88      <target dir='Files' />
 89    </filesystem>
 90    <!-- Disk images
 91    <disk type='file' device='cdrom'>
 92      <driver name='qemu' type='raw' />
 93      <source file='/data/vm/Win11.iso' />
 94      <target dev='sda' bus='sata' />
 95      <readonly />
 96      <boot order='1' />
 97      <address type='drive' controller='0' bus='0' target='0' unit='0' />
 98    </disk>
 99    <disk type='file' device='cdrom'>
100      <driver name='qemu' type='raw' />
101      <source file='/data/vm/virtio-win.iso' />
102      <target dev='sdb' bus='sata' />
103      <readonly />
104      <boot order='2' />
105      <address type='drive' controller='0' bus='0' target='0' unit='1' />
106    </disk>
107    -->
108    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
109      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0' />
110    </controller>
111    <controller type='pci' index='0' model='pcie-root' />
112    <controller type='pci' index='1' model='pcie-root-port'>
113      <model name='pcie-root-port' />
114      <target chassis='1' port='0x10' />
115      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on' />
116    </controller>
117    <controller type='pci' index='2' model='pcie-root-port'>
118      <model name='pcie-root-port' />
119      <target chassis='2' port='0x11' />
120      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1' />
121    </controller>
122    <controller type='pci' index='3' model='pcie-root-port'>
123      <model name='pcie-root-port' />
124      <target chassis='3' port='0x12' />
125      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2' />
126    </controller>
127    <controller type='pci' index='4' model='pcie-root-port'>
128      <model name='pcie-root-port' />
129      <target chassis='4' port='0x13' />
130      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3' />
131    </controller>
132    <controller type='pci' index='5' model='pcie-root-port'>
133      <model name='pcie-root-port' />
134      <target chassis='5' port='0x14' />
135      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4' />
136    </controller>
137    <controller type='pci' index='6' model='pcie-root-port'>
138      <model name='pcie-root-port' />
139      <target chassis='6' port='0x15' />
140      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5' />
141    </controller>
142    <controller type='pci' index='7' model='pcie-root-port'>
143      <model name='pcie-root-port' />
144      <target chassis='7' port='0x16' />
145      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6' />
146    </controller>
147    <controller type='pci' index='8' model='pcie-root-port'>
148      <model name='pcie-root-port' />
149      <target chassis='8' port='0x17' />
150      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7' />
151    </controller>
152    <controller type='pci' index='9' model='pcie-root-port'>
153      <model name='pcie-root-port' />
154      <target chassis='9' port='0x18' />
155      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on' />
156    </controller>
157    <controller type='pci' index='10' model='pcie-root-port'>
158      <model name='pcie-root-port' />
159      <target chassis='10' port='0x19' />
160      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1' />
161    </controller>
162    <controller type='pci' index='11' model='pcie-root-port'>
163      <model name='pcie-root-port' />
164      <target chassis='11' port='0x1a' />
165      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2' />
166    </controller>
167    <controller type='pci' index='12' model='pcie-root-port'>
168      <model name='pcie-root-port' />
169      <target chassis='12' port='0x1b' />
170      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3' />
171    </controller>
172    <controller type='pci' index='13' model='pcie-root-port'>
173      <model name='pcie-root-port' />
174      <target chassis='13' port='0x1c' />
175      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4' />
176    </controller>
177    <controller type='pci' index='14' model='pcie-root-port'>
178      <model name='pcie-root-port' />
179      <target chassis='14' port='0x1d' />
180      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x5' />
181    </controller>
182    <controller type='sata' index='0'>
183      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2' />
184    </controller>
185    <controller type='virtio-serial' index='0'>
186      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' />
187    </controller>
188    <interface type='network'>
189      <mac address='52:54:00:89:97:df' />
190      <source network='default' />
191      <model type='virtio' />
192      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0' />
193    </interface>
194    <serial type='pty'>
195      <target type='isa-serial' port='0'>
196        <model name='isa-serial' />
197      </target>
198    </serial>
199    <console type='pty'>
200      <target type='serial' port='0' />
201    </console>
202    <channel type='spicevmc'>
203      <target type='virtio' name='com.redhat.spice.0' />
204      <address type='virtio-serial' controller='0' bus='0' port='1' />
205    </channel>
206    <channel type='unix'>
207      <target type='virtio' name='org.qemu.guest_agent.0' />
208      <address type='virtio-serial' controller='0' bus='0' port='2' />
209    </channel>
210    <input type='mouse' bus='ps2' />
211    <input type='keyboard' bus='ps2' />
212    <tpm model='tpm-crb'>
213      <backend type='emulator' version='2.0'>
214        <profile name='default-v1' />
215      </backend>
216    </tpm>
217    <graphics type='spice' autoport='yes'>
218      <listen type='address' />
219      <image compression='off' />
220    </graphics>
221    <sound model='ich9'>
222      <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0' />
223    </sound>
224    <audio id='1' type='spice' />
225    <video>
226      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes' />
227      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' />
228    </video>
229    <hostdev mode='subsystem' type='pci' managed='yes'>
230      <source>
231        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0' />
232      </source>
233      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0' />
234    </hostdev>
235    <hostdev mode='subsystem' type='pci' managed='yes'>
236      <source>
237        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1' />
238      </source>
239      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0' />
240    </hostdev>
241    <hostdev mode='subsystem' type='usb' managed='yes'>
242      <source startupPolicy='optional'> <!-- Webcam -->
243        <vendor id='0x3277' />
244        <product id='0x0018' />
245      </source>
246    </hostdev>
247    <redirdev bus='usb' type='spicevmc'>
248      <address type='usb' bus='0' port='2' />
249    </redirdev>
250    <redirdev bus='usb' type='spicevmc'>
251      <address type='usb' bus='0' port='3' />
252    </redirdev>
253    <watchdog model='itco' action='reset' />
254    <memballoon model='none' />
255    <rng model='virtio'>
256      <backend model='random'>/dev/urandom</backend>
257      <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0' />
258    </rng>
259  </devices>
260  <qemu:commandline>
261    <qemu:arg value='-device' />
262    <qemu:arg value='ivshmem-plain,id=shmem0,memdev=looking-glass,bus=pcie.0,addr=0x0a' />
263    <qemu:arg value='-object' />
264    <qemu:arg
265      value='memory-backend-file,id=looking-glass,mem-path=/dev/kvmfr0,size=67108864,share=yes' />
266  </qemu:commandline>
267</domain>