utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.11k stars 1.31k forks source link

Raspberry Pi emulation is broken #4827

Open Rastafabisch opened 1 year ago

Rastafabisch commented 1 year ago

Raspberry images do not boot, as there is no suitable raspberry output device. No PCI on raspberry to emulate display adapter. Neither vertigo based adapters work.

Configuration

Bildschirm­foto 2022-12-20 um 15 54 51 Bildschirm­foto 2022-12-20 um 15 56 44
freebrowser1 commented 1 year ago

Weird. A Raspberry Pi is native ARM64 (aka M1) architecture, so any Ubuntu / Debian ARM should run Raspberry PI OS.

Rastafabisch commented 1 year ago

Of course any arm64 system runs on M1s. The issue is when specifically emulating a raspberry, that you don't even get to boot as the environment emulated doesn't have an adequate graphics output.

LostInCompilation commented 1 year ago

Can confirm. I never got it working, tested all available display adapters.

A Raspberry Pi is native ARM64 (aka M1) architecture, so any Ubuntu / Debian ARM should run Raspberry PI OS.

UTM only has options up to Pi 3. Those are 32 bit (ARMhf) devices. A 64 bit image probably won't work with Pi 3 selected. Would be nice to have a Pi 4 option added.

rannof commented 1 year ago

Same here, Trying to emulate RPI 3B 32bit with error: QEMU exited from an error: qemu-arm-softmmu: -device e1000e,mac=D2:FC:44:5E:D3:79,netdev=net0: No 'PCI' bus found for device 'e1000e' Are there any workable configurations?

flatsiedatsie commented 1 year ago

I ran into this too. I was following this guide (from 2022), which made me believe that it was theoretically possible. I now understand it's not possible to emulate a Raspberry Pi?

LostInCompilation commented 1 year ago

QEMU by itself definitely supports Raspberry Pi images. But somehow UTM seems to have some issues. You can use QEMU by itself until UTM works: https://azeria-labs.com/emulate-raspberry-pi-with-qemu/

markst commented 1 year ago

Am able to use QEMU on Mac OS Ventura using the following params for network:

-netdev user,id=net0,hostfwd=tcp::5022-:22 \
-device usb-net,netdev=net0 \

Seems UTM insists on using PCI device on which Raspberry Pi with no PCI bus.

https://github.com/utmapp/UTM/issues/153#issuecomment-1489738042

ivazin commented 8 months ago

Is there already any working way to run Raspberry Pi OS (64-bit) on UTM with Apple Silicon?

NickJLange commented 6 months ago

Is there already any working way to run Raspberry Pi OS (64-bit) on UTM with Apple Silicon?

No, but it is not that far away. See this Guide

What's missing seems to be getting the UTM Qemu backend updated to version 8... but qemu does work.

fgenoese commented 6 months ago

One of the issues seems to be that 'ich9-usb-ehci1' is automatically added with no possibility to prevent it from GUI.

See here: https://github.com/utmapp/UTM/issues/2505#issuecomment-1000906457

aaronlippold commented 6 months ago

Is there an active PR to update the backend already?

DanLipsitt commented 2 months ago

Updating QEMU to version 8 is https://github.com/utmapp/UTM/issues/5622, although that ticket points out that QEMU 9 is out now.

aaronlippold commented 2 months ago

Cool. So does that mean this work would shift over to the version nine branch


Aaron Lippold

@.***

260-255-4779

twitter/aim/yahoo,etc. 'aaronlippold'

On Fri, Jun 7, 2024 at 10:39 Dan Lipsitt @.***> wrote:

Updating QEMU to version 8 is #5622 https://github.com/utmapp/UTM/issues/5622, although that ticket points out that QEMU 9 is out now.

— Reply to this email directly, view it on GitHub https://github.com/utmapp/UTM/issues/4827#issuecomment-2154984649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALK42DQSQFDD2ASEQNNFQDZGHA3LAVCNFSM6AAAAAATETFC66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUHE4DINRUHE . You are receiving this because you commented.Message ID: @.***>