I've put together a couple of simple bash scripts to make managing QEMU m68k (classic Mac) emulation setups a bit easier, especially if you run multiple configurations or want straightforward networking on Ubuntu.
What it is:
run68k.sh: A launcher script that uses simple .conf files to define your QEMU settings (machine type, RAM, ROM, disk images, PRAM, graphics). This lets you easily switch between different Mac OS installs without messing with long command lines each time. It automatically creates disk/PRAM images if they don't exist based on the config.
mac_disc_mounter.sh: (Linux focused) A helper script that reads the same .conf file to easily mount/unmount the shared HFS/HFS+ disk image associated with a specific QEMU setup onto your host system. Makes copying files back and forth much simpler. It even tries to install needed HFS utilities (hfsprogs, hfsplus) if you don't have them.
Why use it?
- Keeps different OS setups clean and separate (unique HDDs, shared disks, PRAM per config).
Simplifies launching QEMU with consistent settings.
Makes booting from CD ISOs for installation straightforward (-c and -b flags).
Provides a dedicated, easy way to access a shared disk from your Linux host.
If you juggle different QEMU m68k setups or want a simpler way to handle file sharing via a shared disk image (especially on Linux), you might find these useful.
https://github.com/matthewdeaves/QemuMac
Let me know what you think. If anyone wants to try it on an Apple Silicon Mac, I'd be happy to make a branch and update the scripts to also work there.. I've not got a modern Mac, yet.