[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] aarch64 vm doesn't boots

On Mon, 2020-01-06 at 20:31 +0100, daggs wrote:
> > > I'm using ubuntu 16.04 with libvirt 1.3.1, if this is a version issue, I can upgrade to latest version.
> > > what I'm I missing?
> > 
> > Your version of libvirt (as well as QEMU and virt-manager, I assume)
> > is fairly old, and aarch64 support specifically has seen quite a few
> > improvements in the meantime. On my Fedora 31 laptop, which has
> > 
> >   qemu-system-aarch64-4.2.0-2.fc31.x86_64
> >   libvirt-5.10.0-2.fc31.x86_64
> >   virt-manager-2.2.1-2.fc31.noarch
> > 
> > I can run the above and, after some time, get a login prompt on the
> > serial console.
> I see, I'll try to bump the versions, can you share you're vm's xml file?

This is the exact virt-install command I used:

  $ virt-install \
    --cpu cortex-a53 \
    --name alpine-aarch64 \
    --cdrom ~/Downloads/alpine-virt-3.11.2-aarch64.iso \
    --disk size=8 \
    --vcpus 4 \
    --memory 2048 \
    --os-variant alpinelinux3.8 \
    --arch aarch64 \
    --boot loader=/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw,loader.readonly=yes,loader.type=pflash,nvram.template=/usr/share/edk2/aarch64/vars-template-pflash.raw,loader_secure=no

The '--boot ...' part is only necessary because of an issue in
current libvirt that's already being worked on.

Here's the full XML:

  <domain type='qemu'>
      <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0";>
        <libosinfo:os id="http://alpinelinux.org/alpinelinux/3.8"/>
    <memory unit='KiB'>2097152</memory>
    <currentMemory unit='KiB'>2097152</currentMemory>
    <vcpu placement='static'>4</vcpu>
      <type arch='aarch64' machine='virt-4.2'>hvm</type>
      <loader readonly='yes' secure='no' type='pflash'>/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw</loader>
      <nvram template='/usr/share/edk2/aarch64/vars-template-pflash.raw'>/var/lib/libvirt/qemu/nvram/alpine-aarch64_VARS.fd</nvram>
      <boot dev='hd'/>
      <gic version='2'/>
    <cpu mode='custom' match='exact' check='none'>
      <model fallback='allow'>cortex-a53</model>
    <clock offset='utc'/>
      <disk type='file' device='disk'>
        <driver name='qemu' type='qcow2'/>
        <source file='/var/lib/libvirt/images/alpine-aarch64.qcow2'/>
        <target dev='vda' bus='virtio'/>
        <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      <disk type='file' device='cdrom'>
        <driver name='qemu' type='raw'/>
        <target dev='sda' bus='scsi'/>
        <address type='drive' controller='0' bus='0' target='0' unit='0'/>
      <controller type='usb' index='0' model='qemu-xhci' ports='15'>
        <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
      <controller type='scsi' index='0' model='virtio-scsi'>
        <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      <controller type='pci' index='0' model='pcie-root'/>
      <controller type='pci' index='1' model='pcie-root-port'>
        <model name='pcie-root-port'/>
        <target chassis='1' port='0x8'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
      <controller type='pci' index='2' model='pcie-root-port'>
        <model name='pcie-root-port'/>
        <target chassis='2' port='0x9'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
      <controller type='pci' index='3' model='pcie-root-port'>
        <model name='pcie-root-port'/>
        <target chassis='3' port='0xa'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
      <controller type='pci' index='4' model='pcie-root-port'>
        <model name='pcie-root-port'/>
        <target chassis='4' port='0xb'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
      <controller type='pci' index='5' model='pcie-root-port'>
        <model name='pcie-root-port'/>
        <target chassis='5' port='0xc'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
      <controller type='pci' index='6' model='pcie-root-port'>
        <model name='pcie-root-port'/>
        <target chassis='6' port='0xd'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
      <controller type='virtio-serial' index='0'>
        <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      <interface type='network'>
        <mac address='52:54:00:5a:9c:da'/>
        <source network='default'/>
        <model type='virtio'/>
        <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      <serial type='pty'>
        <target type='system-serial' port='0'>
          <model name='pl011'/>
      <console type='pty'>
        <target type='serial' port='0'/>
      <channel type='unix'>
        <target type='virtio' name='org.qemu.guest_agent.0'/>
        <address type='virtio-serial' controller='0' bus='0' port='1'/>

Andrea Bolognani / Red Hat / Virtualization

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]