[Bug 1266677] [NEW] Doesn't parse cpu model for arm64

Ming Lei 1266677 at bugs.launchpad.net
Tue Jan 7 08:34:07 UTC 2014


Public bug reported:


The upstream qemu[1] needs to pass '-cpu host' for aarch64, but current libvirt doesn't
support to parse the parameter for aarch64, so we can see below failure when running
the command:

ming at arm64:~/vm-new/virt$ virsh create host.xml 
error: Failed to create domain from host.xml
error: unsupported configuration: CPU specification not supported by hypervisor


1, upstream qemu version
ming at arm64:~/vm-new/virt$ qemu-system-aarch64 --version
QEMU emulator version 1.7.50, Copyright (c) 2003-2008 Fabrice Bellard

2, host.xml example
<domain type="kvm">
  <name>instance-000000f9</name>
  <memory unit='KiB'>2048000</memory>
  <currentMemory unit='KiB'>2048000</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='aarch64' machine='virt'>hvm</type>
    <kernel>/home/ming/git/linux-guest/arch/arm64/boot/Image</kernel>
    <cmdline>root=/dev/vda console=tty0 console=ttyS0 console=ttyAMA0 rw</cmdline>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>host</model>
  </cpu>
  <clock offset='utc'>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='rtc' tickpolicy='catchup'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/local/bin/qemu-system-aarch64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/home/ming/img/arm64-fs1.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='virtio-mmio'/>
    </disk>
    <serial type='pty'>
      <target port='1'/>
    </serial>
  </devices>
</domain>

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1266677

Title:
  Doesn't parse cpu model for arm64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1266677/+subscriptions



More information about the Ubuntu-server-bugs mailing list