Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4989

Raspberry Pi OS • Re: Qemu / Virtual Box on ARM?

$
0
0
An .iso file is a CD-ROM installer. A PiOS .img file is a pre-installed modified Debian installation with a kernel that is tailored for the RaspberryPi and does not boot and run a the QEMU/libvirt/KVM environment. You need the generic vanilla Debian kernel and also an EFI bootloader as the RaspberryPi firmware/bootloader is propietatry and not understood by virt-manager. Look for generic Aarch64 UEFI Linux OS images, most major commercial distros provide one. For Debian you could use https://raspi.debian.net/tested-images/, I use Armbian as well as it is easy to boot those unmodified on real HW as well.

For RPiOS images, you first need to add grub-efi and standard arm64 kernel. Then on first boot press ESC and via Bootmanager menu or so select the grub efi file. Or copy some kernel+modules into the image and use direct kernel load at first boot. Search this forum, I repeat myself more or less viewtopic.php?p=2167459&hilit=grub+efi#p2167459
If you want to use/see the RPiOS Bookworm Wayland default desktop, then this is what you need to do. I use it every now and then as a reference and also for test in a separate extra VM. On the real PI4 I use KDE, but not always HDMI cable connected, everything via serial console and ssh.

If you just need a Linux CLI, use as you did, Ubuntu or so as that is often needed to build large software, so I have an x86_64 and aarch64 VM for that.

Statistics: Posted by redvli — Thu Sep 05, 2024 5:57 am



Viewing all articles
Browse latest Browse all 4989

Trending Articles