User Tools

Site Tools


aarch64:qemu-howto

Guinnux for Aarch64 on QEMU

Note: Just on a point of order; this guide will only fly out the box on Linux installation. A bit of tweakery and twiddling is necessary to do this on Windows or Mac, but it should be possible.

Using your distro's package management tool (pacman, yum, apt, dnf etc.) install the qemu for aarch64. It might be necessary to download, compile and install qemu-aarch64 from scratch. The source is available from the QEMU Download site and nice install instructions can be found here.

When all this has been done it, should be possible to do something like:

[john@lucy ~]$ qemu-system-aarch64

Now download the gnx-qemu-aarch.tar.xz from the Guinnux Downloads Site and extract it somewhere handy. Keep in mind that the image will expand to about 2G so have a bit of space available. This bit might take some time. The command to extract the tarball is:

[john@lucy ~]$ tar -xf gnx-qemu-aarch.tar.xz

Eventually you'll end up with a brand new directory named gnx-qemu-aarch64 that looks something like this on the inside:

gnx-qemu-aarch64
|-- Image.gz-4.4.1
|-- qemu-start.sh
|-- rescue.img
|-- sd.img
`-- virt.dtb

Enter the gnx-qemu-aarch64 and start the qemu machine by the the qemu-start.sh script:

[john@lucy aarch64-qemu]$ cd gnx-qemu-aarch64
  
[john@lucy gnx-qemu-aarch64]$ ./qemu-start.sh 

The QEMU machine will now boot into the Guinnux rescue system. From here the proper Guinnux base installation will be done. Login to the rescue system as root with password bigbang. Firstly synchronise the rescue RAM overlay with the underlying image by executing.

rescue:~# synch-config

Next install the Guinnux base installation by executing

rescue:~# setup

It is safe to answer yes to any installation questions.

Now reboot the QEMU machine by executing

rescue:~# reboot -f

The QEMU machine should now boot into full blown Guinnux. The user name and password for the full installation is also root / bigbang or default / remote for normal user access.

So what now ?

Unfortunately default networking for the QEMU machine is quite limiting and it definitely does not allow for connections into the QEMU Guinnux machine, but connections to the outside world is possible. Thus the nice Guinnux web configuration interface does not work.

A plethora of packages are available for installation though and can be installed form the Guinnux repositories with the onboard pacman package manager. Have a look at the Arch Linux wiki for some information on the use of pacman

The distro also contains all of the popular scripting languages such as Lua, Python, PHP, Perl etc. These can be used to quickly turn out some test applications.

For the more adventurous, download the Guinnux 5 Aarch64 toolchain and have a look at the How To pages in order to cross compile some applications for Guinnux. Keep in mind that the toolchain prefix is aarch64-gnx5-linux-gnueabi- rather than the aarch64-gnx5-linux-gnueabi described in the howtos.

aarch64/qemu-howto.txt · Last modified: 2016/11/10 08:09 by john