From Fedora Project Wiki
Description
Run an AArch64 (ARM 64) disk image as a VM on your x86 machine.
Setup
Get the media
We will use some images from Linaro for this test:
wget http://releases.linaro.org/14.07/openembedded/aarch64/vexpress64-openembedded_lamp-armv8-gcc-4.9_20140727-682.img.gz
wget http://releases.linaro.org/14.07/openembedded/aarch64/Image
unar vexpress64-openembedded_lamp-armv8-gcc-4.9_20140727-682.img.gz -o /var/lib/libvirt/images
sudo mv Image /var/lib/libvirt/images/linaro-aarch64-kernel
sudo yum install qemu-system-aarch64
How to test
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.