Emulating Manjaro ARM with virtmanager/QEMU


currently I try to emulate the ARM version of Manjaro while using a "normal" 64bit architecture with Manjaro as a host. To do this, I took the installation image for the Pinebook Pro and decompress it (Manjaro-ARM-xfce-pbpro-19.12.1.img).
Then I created an VM with virtmanager/QEMU and the following settings:

architecture: aarch64
OS: Arch Linux 
machine typ: virt
existing HDD image: Manjaro-ARM-xfce-pbpro-19.12.1.img
number of CPUs: 1 
memory: 2048 MB

After booting, I get the following output (without pressing any button):

UEFI Interactive Shell v2.287477C2-69C7-11D2-8E39-00A0C969723B BD374E20
EDK IIlProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA BD366F98
UEFI v2.70 (EDK II, 0x00010000)008-7F9B-4F30-87AC-60C9FEF5DA4E BBD5ECF0
Mapping table
     BLK2: Alias(s):
     BLK0: Alias(s):
     BLK1: Alias(s):

Press ESC in 1 seconds to skip startup.nsh or any other key to continue.

Pressing ESC or any other button doesn't makes a difference.

How can I manage to start the emulation? It seems like startup.nsh isn't started and the shell doesn't seems to work - if I try to use cd or ls, there is the error message Current directory not specified.

Manjaro ARM does not use UEFI at this time, so that might be an issue.

Thank you for the fast answer.
So is there another way to emulate Manjaro ARM?

To be honest I don't know.

I have never tried to emulate any ARM, other than rootfs.

Isn't rootfs something encryption related?
Or is it a user which might can help me? :wink:

What I mean by rootfs is, is just a filesystem within a folder.

I then use systemd-nspawn to chroot into that rootfs, effectively emulating a shell in that rootfs.

So I would need another emulated ARM system to emulate Manjaro ARM with chrooting and rootfs?

No, the rootfs can be emulated with just qemu and a user-static, when you have it mounted through a loopdevice (since it's in .img format).

But you can only emulate the bash shell that way. No GUI or stuff like that.
We use this method to create our images and packages on x64 hardware.

If I can't emulate Manjaro ARM with a GUI for testing, is there a package list with all packages available for Manjaro ARM (similar to https://archlinuxarm.org/packages) for comparing it with the x64 version?

Not really like that, no, but you can visit a mirrors website and search through that.

But it's basically most of the packages from your archlinuxarm.org/packages link + the PKGBUILD's in our gitlab.manjaro.org/manjaro-arm.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by