Comment 7 for bug 1673467

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Simple test on the option itself without Openstack

 $ dd if=/dev/zero of=flash0.img bs=1M count=64
 $ dd if=/usr/share/qemu-efi/QEMU_EFI.fd of=flash0.img conv=notrunc
 $ dd if=/dev/zero of=flash1.img bs=1M count=64
 $ wget http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
        <name>testguest</name>
        <uuid>f9c9e534-6233-482c-842d-88b8606a4604</uuid>
        <memory unit='KiB'>1048576</memory>
        <currentMemory unit='KiB'>1048576</currentMemory>
        <vcpu placement='static'>1</vcpu>
        <os>
                <type arch='aarch64' machine='virt-2.8'>hvm</type>
        </os>
        <features>
                <gic version='3'/>
        </features>
  <cpu mode='host-model'>
          <model fallback='allow'/>
  </cpu>
<!--
  <cpu mode='host-passthrough'>
          <model fallback='allow'/>
  </cpu>
        <cpu mode='custom' match='exact'>
                <model fallback='allow'>host</model>
        </cpu>
-->
        <clock offset='utc'/>
        <on_poweroff>destroy</on_poweroff>
        <on_reboot>restart</on_reboot>
        <on_crash>destroy</on_crash>
        <devices>
                <emulator>/usr/bin/qemu-system-aarch64</emulator>
                <disk type='file' device='disk'>
                        <driver name='qemu' type='raw'/>
                        <source file='/home/ubuntu/xenial-server-cloudimg-arm64-uefi1.img'/>
                        <target dev='hdc' bus='virtio'/>
                        <address type='virtio-mmio'/>
                </disk>
                <controller type='pci' index='0' model='pcie-root'/>
                <memballoon model='none'/>
                <interface type='network'>
                        <mac address='52:54:00:af:8f:2f'/>
                        <source network='default'/>
                        <model type='virtio'/>
                </interface>
                <serial type='pty'>
                        <target port='0'/>
                </serial>
                <console type='pty'>
                        <target type='serial' port='0'/>
                </console>
        </devices>
</domain>