Advertisement
jimklimov

Virsh+qemu+kvm setup of armv7 worker on aarch64 host

Mar 26th, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.78 KB | None | 0 0
  1. # virsh dumpxml overdrive-02
  2. <domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  3.   <name>overdrive-02</name>
  4.   <uuid>99c89b9a-b404-4d88-aaf7-b6a442b90826</uuid>
  5.   <metadata>
  6.     <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  7.       <libosinfo:os id="http://opensuse.org/opensuse/13.2"/>
  8.     </libosinfo:libosinfo>
  9.   </metadata>
  10.   <memory unit='KiB'>3145728</memory>
  11.   <currentMemory unit='KiB'>3145728</currentMemory>
  12.   <vcpu placement='static'>6</vcpu>
  13.   <os>
  14.     <type arch='aarch64' machine='virt-3.0'>hvm</type>
  15.     <kernel>/srv/libvirt/truck/boot/vmlinuz-3.17.4-301.fc21.armv7hl</kernel>
  16.     <initrd>/srv/libvirt/truck/boot/initramfs-3.17.4-301.fc21.armv7hl.img</initrd>
  17.     <cmdline>ro root=UUID=e098e36f-f409-44cb-9d8e-9d5c0e2ed9c9 console=ttyAMA0,115200</cmdline>
  18.     <boot dev='hd'/>
  19.   </os>
  20.   <features>
  21.     <gic version='2'/>
  22.   </features>
  23.   <cpu mode='custom' match='exact' check='none'>
  24.     <model fallback='allow'>cortex-a57</model>
  25.   </cpu>
  26.   <clock offset='utc'/>
  27.   <on_poweroff>destroy</on_poweroff>
  28.   <on_reboot>restart</on_reboot>
  29.   <on_crash>destroy</on_crash>
  30.   <devices>
  31.     <emulator>/usr/bin/qemu-system-aarch64</emulator>
  32.     <disk type='file' device='disk'>
  33.       <driver name='qemu' type='raw' cache='none' io='native'/>
  34.       <source file='/srv/libvirt/truck/overdrive-02.img'/>
  35.       <target dev='sda' bus='virtio'/>
  36.       <address type='virtio-mmio'/>
  37.     </disk>
  38.     <controller type='usb' index='0' model='qemu-xhci' ports='15'>
  39.       <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  40.     </controller>
  41.     <controller type='pci' index='0' model='pcie-root'/>
  42.     <controller type='pci' index='1' model='pcie-root-port'>
  43.       <model name='pcie-root-port'/>
  44.       <target chassis='1' port='0x8'/>
  45.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  46.     </controller>
  47.     <controller type='pci' index='2' model='pcie-root-port'>
  48.       <model name='pcie-root-port'/>
  49.       <target chassis='2' port='0x9'/>
  50.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  51.     </controller>
  52.     <controller type='pci' index='3' model='pcie-root-port'>
  53.       <model name='pcie-root-port'/>
  54.       <target chassis='3' port='0xa'/>
  55.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  56.     </controller>
  57.     <controller type='pci' index='4' model='pcie-root-port'>
  58.       <model name='pcie-root-port'/>
  59.       <target chassis='4' port='0xb'/>
  60.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
  61.     </controller>
  62.     <controller type='pci' index='5' model='pcie-root-port'>
  63.       <model name='pcie-root-port'/>
  64.       <target chassis='5' port='0xc'/>
  65.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
  66.     </controller>
  67.     <controller type='pci' index='6' model='pcie-root-port'>
  68.       <model name='pcie-root-port'/>
  69.       <target chassis='6' port='0xd'/>
  70.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
  71.     </controller>
  72.     <controller type='pci' index='7' model='pcie-root-port'>
  73.       <model name='pcie-root-port'/>
  74.       <target chassis='7' port='0xe'/>
  75.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x6'/>
  76.     </controller>
  77.     <controller type='pci' index='8' model='pcie-to-pci-bridge'>
  78.       <model name='pcie-pci-bridge'/>
  79.       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  80.     </controller>
  81.     <controller type='virtio-serial' index='0'>
  82.       <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  83.     </controller>
  84.     <controller type='scsi' index='0' model='lsilogic'>
  85.       <address type='virtio-mmio'/>
  86.     </controller>
  87.     <interface type='network'>
  88.       <mac address='02:05:e4:d4:15:e2'/>
  89.       <source network='ovs-br1'/>
  90.       <model type='virtio-net-device'/>
  91.       <address type='virtio-mmio'/>
  92.     </interface>
  93.     <serial type='pty'>
  94.       <target type='system-serial' port='0'>
  95.         <model name='pl011'/>
  96.       </target>
  97.     </serial>
  98.     <console type='pty'>
  99.       <target type='serial' port='0'/>
  100.     </console>
  101.     <channel type='unix'>
  102.       <target type='virtio' name='org.qemu.guest_agent.0'/>
  103.       <address type='virtio-serial' controller='0' bus='0' port='1'/>
  104.     </channel>
  105.     <rng model='virtio'>
  106.       <backend model='random'>/dev/urandom</backend>
  107.       <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  108.     </rng>
  109.   </devices>
  110.   <qemu:commandline>
  111.     <qemu:arg value='-cpu'/>
  112.     <qemu:arg value='host,aarch64=off'/>
  113.     <qemu:arg value='-enable-kvm'/>
  114.     <qemu:arg value='-nographic'/>
  115.   </qemu:commandline>
  116. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement