Skip to content

Support for aarch64 (Raspberry Pi4) #17

@adaliszk

Description

@adaliszk

Brief description
Since this runner essentially uses QEMU to virtualise other environments, it would be nice if there would be support for ARM, especially for Raspberry Pi. I don't see why would it not work if you anyway virtualise, that itself works.

Steps to reproduce the issue

  1. Get a Raspberry Pi4 with Rasbian
  2. Set up KVM/QEMU:
sudo apt update
sudo apt full-upgrade
sudo echo "arm_64bit=1" >> /boot/config.txt
sudo apt install libvirt0 binfmt-support qemu-system qemu-user-static
sudo usermod -aG libvirt-qemu $(whoami)
sudo virsh net-start default
sudo virsh net-autostart default
  1. Try installing runq:
git clone --recurse-submodules https://github.com/gotoz/runq.git
cd runq
make release
make release-install

Expected behaviour
make does not fail and installs the runtime

Actual behaviour

pi@raspberrypi:~/runq $ make release && make release-install
make -C qemu image
make[1]: Entering directory '/home/pi/runq/qemu'
cd aarch64 && \
docker build -t runq-build-1804 .
/bin/sh: 1: cd: can't cd to aarch64
make[1]: *** [Makefile:6: image] Error 2
make[1]: Leaving directory '/home/pi/runq/qemu'
make: *** [Makefile:26: image] Error 2

Content of section runtimes of /etc/docker/daemon.json
Not yet available as the installation failed:

pi@raspberrypi:~/runq $ cat /etc/docker/daemon.json
cat: /etc/docker/daemon.json: No such file or directory

Content of /var/lib/runq/qemu/proxy --version
Not yet available as the installation failed:

pi@raspberrypi:~/runq $ /var/lib/runq/qemu/proxy --version
-bash: /var/lib/runq/qemu/proxy: No such file or directory

Content of docker --version

pi@raspberrypi:~/runq $ docker --version
Docker version 20.10.6, build 370c289

Additional information

pi@raspberrypi:~/runq $ uname -a
Linux raspberrypi 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux
pi@raspberrypi:~ $ /usr/bin/qemu-system-aarch64 --version
QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-8+deb10u8)
pi@raspberrypi:~ $ /usr/bin/qemu-system-x86_64 --version
QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-8+deb10u8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions