insajd

HA machine config

May 13th, 2020
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.79 KB | None | 0 0
  1. <domain type='kvm'>
  2.   <name>ha</name>
  3.   <uuid>72bd6a72-142c-4a80-a10b-b9b7788dd81e</uuid>
  4.   <metadata>
  5.     <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6.       <libosinfo:os id="http://debian.org/debian/9"/>
  7.     </libosinfo:libosinfo>
  8.     <cockpit_machines:data xmlns:cockpit_machines="https://github.com/cockpit-project/cockpit/tree/master/pkg/machines">
  9.       <cockpit_machines:has_install_phase>false</cockpit_machines:has_install_phase>
  10.       <cockpit_machines:install_source_type>disk_image</cockpit_machines:install_source_type>
  11.       <cockpit_machines:install_source>/srv/dev-disk-by-label-fast/storagepool/ha/hassos_ova-4.6.qcow2</cockpit_machines:install_source>
  12.       <cockpit_machines:os_variant>debian9</cockpit_machines:os_variant>
  13.     </cockpit_machines:data>
  14.   </metadata>
  15.   <memory unit='KiB'>5120000</memory>
  16.   <currentMemory unit='KiB'>3072000</currentMemory>
  17.   <vcpu placement='static'>8</vcpu>
  18.   <os>
  19.     <type arch='x86_64' machine='pc-q35-3.1'>hvm</type>
  20.     <loader readonly='yes' type='rom'>/srv/dev-disk-by-label-fast/storagepool/ha/OVMF_CODE-pure-efi.fd</loader>
  21.     <boot dev='hd'/>
  22.   </os>
  23.   <features>
  24.     <acpi/>
  25.     <apic/>
  26.     <vmport state='off'/>
  27.   </features>
  28.   <cpu mode='host-model' check='partial'>
  29.     <model fallback='allow'/>
  30.     <topology sockets='1' cores='2' threads='4'/>
  31.   </cpu>
  32.   <clock offset='utc'>
  33.     <timer name='rtc' tickpolicy='catchup'/>
  34.     <timer name='pit' tickpolicy='delay'/>
  35.     <timer name='hpet' present='no'/>
  36.   </clock>
  37.   <on_poweroff>destroy</on_poweroff>
  38.   <on_reboot>restart</on_reboot>
  39.   <on_crash>destroy</on_crash>
  40.   <pm>
  41.     <suspend-to-mem enabled='no'/>
  42.     <suspend-to-disk enabled='no'/>
  43.   </pm>
  44.   <devices>
  45.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  46.     <disk type='file' device='disk'>
  47.       <driver name='qemu' type='qcow2'/>
  48.       <source file='/srv/dev-disk-by-label-fast/storagepool/ha/hassos_ova-4.6.qcow2'/>
  49.       <target dev='sda' bus='sata'/>
  50.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  51.     </disk>
  52.     <controller type='usb' index='0' model='qemu-xhci' ports='15'>
  53.       <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  54.     </controller>
  55.     <controller type='sata' index='0'>
  56.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  57.     </controller>
  58.     <controller type='pci' index='0' model='pcie-root'/>
  59.     <controller type='pci' index='1' model='pcie-root-port'>
  60.       <model name='pcie-root-port'/>
  61.       <target chassis='1' port='0x10'/>
  62.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  63.     </controller>
  64.     <controller type='pci' index='2' model='pcie-root-port'>
  65.       <model name='pcie-root-port'/>
  66.       <target chassis='2' port='0x11'/>
  67.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  68.     </controller>
  69.     <controller type='pci' index='3' model='pcie-root-port'>
  70.       <model name='pcie-root-port'/>
  71.       <target chassis='3' port='0x12'/>
  72.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  73.     </controller>
  74.     <controller type='pci' index='4' model='pcie-root-port'>
  75.       <model name='pcie-root-port'/>
  76.       <target chassis='4' port='0x13'/>
  77.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  78.     </controller>
  79.     <controller type='pci' index='5' model='pcie-root-port'>
  80.       <model name='pcie-root-port'/>
  81.       <target chassis='5' port='0x14'/>
  82.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
  83.     </controller>
  84.     <controller type='pci' index='6' model='pcie-root-port'>
  85.       <model name='pcie-root-port'/>
  86.       <target chassis='6' port='0x15'/>
  87.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
  88.     </controller>
  89.     <controller type='pci' index='7' model='pcie-root-port'>
  90.       <model name='pcie-root-port'/>
  91.       <target chassis='7' port='0x16'/>
  92.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
  93.     </controller>
  94.     <controller type='virtio-serial' index='0'>
  95.       <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  96.     </controller>
  97.     <interface type='direct'>
  98.       <mac address='52:54:00:e3:ed:8a'/>
  99.       <source dev='enp0s25' mode='vepa'/>
  100.       <model type='virtio'/>
  101.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  102.     </interface>
  103.     <serial type='pty'>
  104.       <target type='isa-serial' port='0'>
  105.         <model name='isa-serial'/>
  106.       </target>
  107.     </serial>
  108.     <console type='pty'>
  109.       <target type='serial' port='0'/>
  110.     </console>
  111.     <channel type='unix'>
  112.       <target type='virtio' name='org.qemu.guest_agent.0'/>
  113.       <address type='virtio-serial' controller='0' bus='0' port='1'/>
  114.     </channel>
  115.     <channel type='spicevmc'>
  116.       <target type='virtio' name='com.redhat.spice.0'/>
  117.       <address type='virtio-serial' controller='0' bus='0' port='2'/>
  118.     </channel>
  119.     <input type='tablet' bus='usb'>
  120.       <address type='usb' bus='0' port='1'/>
  121.     </input>
  122.     <input type='mouse' bus='ps2'/>
  123.     <input type='keyboard' bus='ps2'/>
  124.     <graphics type='spice' autoport='yes' listen='127.0.0.1'>
  125.       <listen type='address' address='127.0.0.1'/>
  126.       <image compression='off'/>
  127.     </graphics>
  128.     <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
  129.       <listen type='address' address='127.0.0.1'/>
  130.     </graphics>
  131.     <sound model='ich9'>
  132.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
  133.     </sound>
  134.     <video>
  135.       <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
  136.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
  137.     </video>
  138.     <hostdev mode='subsystem' type='usb' managed='yes'>
  139.       <source>
  140.         <vendor id='0x0658'/>
  141.         <product id='0x0200'/>
  142.       </source>
  143.       <address type='usb' bus='0' port='4'/>
  144.     </hostdev>
  145.     <hostdev mode='subsystem' type='usb' managed='yes'>
  146.       <source>
  147.         <vendor id='0x0403'/>
  148.         <product id='0x6001'/>
  149.       </source>
  150.       <address type='usb' bus='0' port='5'/>
  151.     </hostdev>
  152.     <redirdev bus='usb' type='spicevmc'>
  153.       <address type='usb' bus='0' port='2'/>
  154.     </redirdev>
  155.     <redirdev bus='usb' type='spicevmc'>
  156.       <address type='usb' bus='0' port='3'/>
  157.     </redirdev>
  158.     <memballoon model='virtio'>
  159.       <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  160.     </memballoon>
  161.     <rng model='virtio'>
  162.       <backend model='random'>/dev/urandom</backend>
  163.       <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  164.     </rng>
  165.   </devices>
  166. </domain>
Add Comment
Please, Sign In to add comment