From Fedora Project Wiki

Revision as of 21:09, 23 September 2014 by Crobinso (talk | contribs) (Add virt-manager steps)

Description

Run an AArch64 (ARM 64) disk image as a VM on your x86 machine.

Setup

Get the media

Note.png
Fedora AArch64 images are not yet supported
Fedora's AArch64 preview images expect to be run on UEFI, which is still under development for ARM/AArch64 virt usage

We will use some images from Linaro for this test:

How to test

Note.png
Latest libvirt and virt-manager are required
You'll need libvirt-1.2.8-5 and virt-manager-1.1.0-3 at least

Import with virt-manager

  • Start virt-manager, connect to 'QEMU', click the 'New VM' icon
  • On the first page, under 'Architecture Options' select 'aarch64'. The 'virt' machine type should be selected automatically
  • Select the 'Import install' option, go to the next page
  • Browse to the disk image and kernel we moved in the previous step.
  • Set kernel args as: root=/dev/vda2 rw rootwait console=ttyAMA0
  • Continue with the OS defaults, complete the install.
  • The guest should shortly start booting, and you should see text console output. After a bit of a wait, it should drop you into a root prompt.

Import with virt-install

Here's the command:

sudo virt-install \
     --name aarch64-vm --ram 1024 --arch aarch64 --import \
     --boot kernel=/var/lib/libvirt/images/linaro-aarch64-kernel,extra_args="root=/dev/vda2 rw rootwait console=ttyAMA0" \
     --disk /var/lib/libvirt/images/vexpress64-openembedded_lamp-armv8-gcc-4.9_20140727-682.img

Expected Results

Guest starts fine, seems usable.