I was wondering whether it was possible to virtualize Raspberry Pi OS Lite Bullseye 64-bit arm64 on an M1 Macbook pro. I've downloaded the '.img' file from the official source and tried to load it initially with UTM but to no avail. I then tried using QEMU with this custom kernel repository to try and emulate the software but following the instructions:
qemu-system-arm \
-M versatilepb \
-cpu arm1176 \
-m 256 \
-hda ~/Downloads/2023-05-03-raspios-bullseye-arm64-lite.img \
-netdev user,id=net0,hostfwd=tcp::5022-:22 \
-dtb ~/Downloads/versatile-pb-bullseye-5.10.63.dtb \
-kernel ~/Downloads/kernel-qemu-5.10.63-bullseye \
-append 'root=/dev/sda2 panic=1' \
-no-reboot
the following error occurs
WARNING: Image format was not specified for '/Users/****/Downloads/2023-05-03-raspios-bullseye-arm64-lite.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-arm: warning: netdev net0 has no peer
vpb_sic_write: Bad register offset 0x2c
I also realised that the kernel required of 6.1 wasn't supported by the repo with the latest version written being 5.10.63.
Is there any way to virtualize or emulate Raspberry Pi OS 64-bit arm64 on an M1 system?