Advertisement
DevanteWeary

VM XML

Jan 16th, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.26 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <domain type='kvm'>
  3.   <name>Windows 10 Pro - Personal</name>
  4.   <uuid>a2d8552b-d9a9-c037-c6ec-70ff785a3367</uuid>
  5.   <metadata>
  6.     <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  7.   </metadata>
  8.   <memory unit='KiB'>8388608</memory>
  9.   <currentMemory unit='KiB'>8388608</currentMemory>
  10.   <memoryBacking>
  11.     <nosharepages/>
  12.     <source type='memfd'/>
  13.     <access mode='shared'/>
  14.   </memoryBacking>
  15.   <vcpu placement='static'>2</vcpu>
  16.   <cputune>
  17.     <vcpupin vcpu='0' cpuset='10'/>
  18.     <vcpupin vcpu='1' cpuset='11'/>
  19.   </cputune>
  20.   <resource>
  21.     <partition>/machine</partition>
  22.   </resource>
  23.   <os>
  24.     <type arch='x86_64' machine='pc-q35-7.2'>hvm</type>
  25.     <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
  26.     <nvram>/etc/libvirt/qemu/nvram/a2d8552b-d9a9-c037-c6ec-70ff785a3367_VARS-pure-efi.fd</nvram>
  27.   </os>
  28.   <features>
  29.     <acpi/>
  30.     <apic/>
  31.     <hyperv mode='custom'>
  32.       <relaxed state='on'/>
  33.       <vapic state='on'/>
  34.       <spinlocks state='on' retries='8191'/>
  35.       <vendor_id state='on' value='none'/>
  36.     </hyperv>
  37.   </features>
  38.   <cpu mode='host-passthrough' check='none' migratable='on'>
  39.     <topology sockets='1' dies='1' cores='1' threads='2'/>
  40.     <cache mode='passthrough'/>
  41.   </cpu>
  42.   <clock offset='localtime'>
  43.     <timer name='hypervclock' present='yes'/>
  44.     <timer name='hpet' present='no'/>
  45.   </clock>
  46.   <on_poweroff>destroy</on_poweroff>
  47.   <on_reboot>restart</on_reboot>
  48.   <on_crash>restart</on_crash>
  49.   <devices>
  50.     <emulator>/usr/local/sbin/qemu</emulator>
  51.     <disk type='file' device='disk'>
  52.       <driver name='qemu' type='raw' cache='writeback'/>
  53.       <source file='/mnt/user/domains/Windows 10 Pro - Personal/vdisk1.img'/>
  54.       <target dev='hdc' bus='virtio'/>
  55.       <serial>vdisk1</serial>
  56.       <boot order='1'/>
  57.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  58.     </disk>
  59.     <disk type='file' device='cdrom'>
  60.       <driver name='qemu' type='raw'/>
  61.       <source file='/mnt/user/isos/Microsoft/Windows/Win10_22H2_English_x64v1.iso'/>
  62.       <target dev='hda' bus='sata'/>
  63.       <readonly/>
  64.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  65.     </disk>
  66.     <disk type='file' device='cdrom'>
  67.       <driver name='qemu' type='raw'/>
  68.       <source file='/mnt/user/isos/virtio-win-0.1.229-1.iso'/>
  69.       <target dev='hdb' bus='sata'/>
  70.       <readonly/>
  71.       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  72.     </disk>
  73.     <controller type='usb' index='0' model='ich9-ehci1'>
  74.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
  75.     </controller>
  76.     <controller type='usb' index='0' model='ich9-uhci1'>
  77.       <master startport='0'/>
  78.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
  79.     </controller>
  80.     <controller type='usb' index='0' model='ich9-uhci2'>
  81.       <master startport='2'/>
  82.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
  83.     </controller>
  84.     <controller type='usb' index='0' model='ich9-uhci3'>
  85.       <master startport='4'/>
  86.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
  87.     </controller>
  88.     <controller type='sata' index='0'>
  89.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  90.     </controller>
  91.     <controller type='pci' index='0' model='pcie-root'/>
  92.     <controller type='pci' index='1' model='pcie-root-port'>
  93.       <model name='pcie-root-port'/>
  94.       <target chassis='1' port='0x8'/>
  95.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  96.     </controller>
  97.     <controller type='pci' index='2' model='pcie-root-port'>
  98.       <model name='pcie-root-port'/>
  99.       <target chassis='2' port='0x9'/>
  100.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  101.     </controller>
  102.     <controller type='pci' index='3' model='pcie-root-port'>
  103.       <model name='pcie-root-port'/>
  104.       <target chassis='3' port='0xa'/>
  105.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  106.     </controller>
  107.     <controller type='pci' index='4' model='pcie-root-port'>
  108.       <model name='pcie-root-port'/>
  109.       <target chassis='4' port='0xb'/>
  110.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
  111.     </controller>
  112.     <controller type='virtio-serial' index='0'>
  113.       <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  114.     </controller>
  115.     <interface type='bridge'>
  116.       <mac address='52:54:00:ba:5b:15'/>
  117.       <source bridge='br0'/>
  118.       <model type='virtio-net'/>
  119.       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  120.     </interface>
  121.     <serial type='pty'>
  122.       <target type='isa-serial' port='0'>
  123.         <model name='isa-serial'/>
  124.       </target>
  125.     </serial>
  126.     <console type='pty'>
  127.       <target type='serial' port='0'/>
  128.     </console>
  129.     <channel type='unix'>
  130.       <target type='virtio' name='org.qemu.guest_agent.0'/>
  131.       <address type='virtio-serial' controller='0' bus='0' port='1'/>
  132.     </channel>
  133.     <channel type='qemu-vdagent'>
  134.       <source>
  135.         <clipboard copypaste='yes'/>
  136.         <mouse mode='client'/>
  137.       </source>
  138.       <target type='virtio' name='com.redhat.spice.0'/>
  139.       <address type='virtio-serial' controller='0' bus='0' port='2'/>
  140.     </channel>
  141.     <input type='tablet' bus='usb'>
  142.       <address type='usb' bus='0' port='1'/>
  143.     </input>
  144.     <input type='mouse' bus='ps2'/>
  145.     <input type='keyboard' bus='ps2'/>
  146.     <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
  147.       <listen type='address' address='0.0.0.0'/>
  148.     </graphics>
  149.     <audio id='1' type='none'/>
  150.     <video>
  151.       <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
  152.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
  153.     </video>
  154.     <memballoon model='virtio'>
  155.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
  156.     </memballoon>
  157.   </devices>
  158.   <seclabel type='dynamic' model='dac' relabel='yes'/>
  159. </domain>
  160.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement