User Tools

Site Tools


qemu_with_working_gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qemu_with_working_gui [2025/05/01 20:36] – created adminqemu_with_working_gui [2026/03/08 16:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 **A short list of instructions** **A short list of instructions**
  
-* I use macports - install latest qemu and qemu-utils.+  * I use macports - install latest qemu and qemu-utils.
  
-* Download 2024-10-22-raspios-bullseye-armhf.img.xz. Unpack this with Archiver, and mount it as a drive (right click on the newly created .img file). You might need to change your Finder settings to view all drives.+  * Download 2024-10-22-raspios-bullseye-armhf.img.xz. Unpack this with Archiver, and mount it as a drive (right click on the newly created .img file). You might need to change your Finder settings to view all drives.
  
-* Create a new directory somewhere (for tidiness) and copy initramfs8, kernel8.img, bcm2710-rpi-3-b.dtb into this new directory.+  * Create a new directory somewhere (for tidiness) and copy initramfs8, kernel8.img, bcm2710-rpi-3-b.dtb into this new directory.
  
-* To use ssh (I presume you do), In Terminal in the mounted bullseye drive (probably at /Volumes/bootfs), run 'touch ssh'. This creates an empty file which signals to raspios to start the ssh server on first boot.+  * To use ssh (I presume you do), In Terminal in the mounted bullseye drive (probably at /Volumes/bootfs), run 'touch ssh'. This creates an empty file which signals to raspios to start the ssh server on first boot.
  
-* Unmount the bootfs drive in Finder, and copy the bullseye image into your new directory with the other files.+  * Unmount the bootfs drive in Finder, and copy the bullseye image into your new directory with the other files.
  
-* Open a text editor and copy this code to create a file (I called mine rpi.sh). Change permissions to be executable with 'chmod a+x rpi.sh'.+  * Open a text editor and copy this code to create a file (I called mine rpi.sh). Change permissions to be executable with 'chmod a+x rpi.sh'.
  
 <code bash> <code bash>
Line 27: Line 27:
 </code> </code>
  
-* Run this script!+  * Run this script! You will be able to ssh to the emulated raspi3b at localhost:2222, as well as direct at 10.0.2.15 (default address for first DHCP machine on the QEMU virtual network). 
 + 
 +**NB** You will probably get a warning about the 'Image format was not specified...'. format=raw is meant to solve this after the filename, but it gave me an error. I ignore this warning, YMMV.
  
 **Notes** **Notes**
 +
 I can't remember the number of sites I went around picking bits and pieces up to make this work. Thanks to all who went before (shoulders of giants &c.). Importantly, it only works with bullseye. It might work with the 64bit version, but I needed the 32bit armhf. There are other solution on macos for 64 bit Arm operating systems. I use UTM for those, but as of May 2025 it does not support armhf. I can't remember the number of sites I went around picking bits and pieces up to make this work. Thanks to all who went before (shoulders of giants &c.). Importantly, it only works with bullseye. It might work with the 64bit version, but I needed the 32bit armhf. There are other solution on macos for 64 bit Arm operating systems. I use UTM for those, but as of May 2025 it does not support armhf.
qemu_with_working_gui.1746131812.txt.gz · Last modified: (external edit)