Page 1 of 4

Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sat Aug 28, 2021 8:52 am
by Cat_7
Qemu can now also run MacOS 7.1 to 8.1!

Note: downloads removed, see topic: viewtopic.php?t=11728

Guide: https://www.emaculation.com/doku.php/m68k-qemu-on-osx

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sat Aug 28, 2021 1:01 pm
by emendelson
Looks fascinating! But the guide includes an incomplete link that says "Go to xxxxxxxx." Thank you!

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sat Aug 28, 2021 1:33 pm
by Cat_7
Ha, fixed. But you did find the place to download ;-)

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sat Aug 28, 2021 2:55 pm
by emendelson
Cat_7 wrote: Sat Aug 28, 2021 1:33 pm But you did find the place to download ;-)
It wasn't too hard to find....!

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Fri Sep 03, 2021 3:31 am
by dotbk
both macOS versions seem to be for AUX

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Fri Sep 03, 2021 4:05 am
by Cat_7
How so?
Can you not boot Mac OS 7 or 8?

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Fri Sep 03, 2021 4:25 am
by dotbk
Get a sad Mac 0000000F when the CDROM is in the config. I've tried using the MATSHITA/CD-ROM CR-8005/1.0k in the guide and the stock SONY/CD-ROM CDU-8003A/1.8f. I'm using a Quad610.ROM from a working Q800. Originally thought it was my ISOs, with them locked and unlocked. But I tried a few known bootable ISOs that do boot when burned to CD.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Fri Sep 03, 2021 5:14 am
by Cat_7
Yes, I've seen that too sometimes.
You could check the cd images with:
dd if=yourimage.img bs=512 count=16 | hexdump -C

If the first 2 bytes are not ER, the image is not a complete disk image.

You might also create a new pram file, or try to run without pram file, or try to change the scsi id's of the drives.

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sat Sep 04, 2021 2:27 pm
by jonirob
I've had no problems installing Mac OS 8.0 and 7.5.3 on Windows 10, though in both instances double click does not work.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sun Sep 05, 2021 3:46 am
by peanutbutter71
dotbk wrote: Fri Sep 03, 2021 4:25 am Get a sad Mac 0000000F when the CDROM is in the config. I've tried using the MATSHITA/CD-ROM CR-8005/1.0k in the guide and the stock SONY/CD-ROM CDU-8003A/1.8f. I'm using a Quad610.ROM from a working Q800. Originally thought it was my ISOs, with them locked and unlocked. But I tried a few known bootable ISOs that do boot when burned to CD.
I get the same thing. I compiled it on Linux though. I tried multiple ISOs and also checked that they start with ER. It starts up, I hear the chime, and then get the sad mac.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sun Sep 05, 2021 7:12 am
by Cat_7
I've had no problems installing Mac OS 8.0 and 7.5.3 on Windows 10, though in both instances double click does not work.
The default gtk interface has issues with double-click speed in Windows.
You can try to add "-sdl" to the command line.

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sun Sep 05, 2021 10:34 am
by jonirob
Thanks Cat_7, that worked.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Wed Oct 13, 2021 10:47 pm
by LightBulbFun
Oh wow! awesome to see QEMU can now Boot the Toolbox ROM and boot Mac OS and AU/X, im going to have lots of fun playing with this :)

for what its worth I ran into the sad mac issues also, but compiling from the source code solved that issue for me

I noticed even in the OS X precompiled download the executable binary still has AU/X in its file name so I wonder if something got mixed up?

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Thu Oct 14, 2021 4:41 am
by Cat_7
I noticed even in the OS X precompiled download the executable binary still has AU/X in its file name so I wonder if something got mixed up?
I see, indeed some mix-up ;-)
Luckily I still had the correct build so I uploaded it. First post is updated with the correct link.

If you compile your own from https://gitlab.com/mcayland/qemu/-/tree/q800.upstream that build will be for running MacOS, if you revert the last commit to the branch you can run AUX.

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Thu Oct 28, 2021 6:12 pm
by erichelgeson
Tested this out, works great! Do you have any tips on getting NetBSD 9.2 X11 to start correctly?

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Fri Oct 29, 2021 4:45 pm
by Cat_7
Hi,

Unfortunately I can´t help you there.

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Fri Oct 29, 2021 6:18 pm
by mcayland
erichelgeson wrote: Thu Oct 28, 2021 6:12 pm Tested this out, works great! Do you have any tips on getting NetBSD 9.2 X11 to start correctly?
The patches were tested against NetBSD 9.2 which exposed a couple of bugs in the latest release. With a vanilla 9.2 install you can launch X if you use a WSFB kernel instead of a GENERIC kernel and the following xorg.conf:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "Protocol" "wskbd"
EndSection
Hopefully the developers will be able to fix these issues soon in time for the next NetBSD release.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Tue Nov 09, 2021 8:18 pm
by Nowhere Man
All I'm getting from trying this is errors. I tried the allow script and got:

Qemu-system-m68k-alpha % /Users/.../Desktop/Qemu-system-m68k-alpha/allow_qemu_to_run-m68k.command
xattr: ./qemu-system-m68k-MacOS-alpha: No such xattr: com.apple.quarantine
xattr: ./qemu-img: No such xattr: com.apple.quarantine
xattr: No such file: ./pram-aux.img
xattr: ./Libs: No such xattr: com.apple.quarantine
xattr: ./Libs/libffi.7.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libgmodule-2.0.0.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libgio-2.0.0.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libgobject-2.0.0.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libglib-2.0.0.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libintl.8.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libpcre.1.dylib: No such xattr: com.apple.quarantine
xattr: ./Libs/libpixman-1.0.40.0.dylib: No such xattr: com.apple.quarantine


I've done the chmod +x to the script to run the alpha QEMU build, but only get a File Vault error telling me:

“qemu-macos.command” is damaged and can’t be opened. You should move it to the Trash.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Tue Nov 09, 2021 8:54 pm
by Cat_7
These messages are normal after you ran the allow_qemu_to_run script once before (the attributes would have been removed already).

But I see one small issue in the script: it should read
xattr -d com.apple.quarantine ./pram-macos.img
instead of
xattr -d com.apple.quarantine ./pram-aux.img

You can fix that before running the script. It should, however, not impede running Qemu.

As to why the qemu-macos.command is damaged, I have no idea.
But you can create your own command file with the content of the original file and make it executable.

Content was:

#!/bin/bash
cd "$(dirname "$0")"

./qemu-system-m68k-MacOS-alpha \
-L pc-bios \
-M q800 \
-bios Quadra800.rom \
-drive file=pram-macos.img,format=raw,if=mtd \
-device scsi-hd,scsi-id=0,drive=hd0,vendor="SEAGATE",product="ST225N",ver="1.0" \
-drive file=MacOS8.0.img,media=disk,format=raw,if=none,id=hd0 \
-device scsi-cd,scsi-id=3,drive=cd0,vendor="MATSHITA",product="CD-ROM CR-8005",ver="1.0k" \
-drive file=MacOS8.0.iso,media=cdrom,if=none,id=cd0

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Sun Jan 16, 2022 9:32 pm
by Splot
Some notes that may be of use to others...

Mac OS 8.0:

This installed like a dream - pretty much follow the guide and then click through the installer. Networking was functional out of the box.

System 7.5.3:

None of the disk images I tried to use were able to perform the initial disk initialisation. However I was able to initialise a disk with the install medium I used for Mac OS 8.0 and, after that, the 7.5.3 install image I tried worked perfectly. I have yet to try the network with this VM.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Wed Aug 17, 2022 1:28 am
by marbre
I thought the quadra rom was all that was needed for bios? What's the contents of the pc-bios folder used for?. When I tried the qemu alpha build I had issues with the graphics not refreshing. I have Big Sur installed on my (intel) MacBook.

I also tried the macports packaged qemu using a modified command script. I get a qemu window that is blank. The qemu monitor indicates the cd and hard drive are attached. Not sure why I don't have any graphics?

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Wed Aug 17, 2022 5:01 am
by Cat_7
I thought the quadra rom was all that was needed for bios? What's the contents of the pc-bios folder used for?.
True, the content of the pc-bios folder is not needed for macOS host. It is included because it was just lazy me not changing the build process.
I get a qemu window that is blank
That is because the code needed to run the q800 with MacOS is not yet in the main repository from which the macports version is derived.

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Wed Aug 17, 2022 9:32 am
by marbre
That is because the code needed to run the q800 with MacOS is not yet in the main repository from which the macports version is derived
qemu-system or the graphics interface? What is homebrew using? By default macports builds with native cocoa, but others are available, e.g. gtk, sdl , etc.

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Wed Aug 17, 2022 12:13 pm
by Cat_7
It's the Q800/Mac OS part of the graphics, not the Qemu supported part.

Until recently, Qemu could only be compiled with either cocoa (the default) or sdl/gtk (for which cocoa had to be explicitly disabled) for macOS hosts.
I've seen some patches allowing all three together, but I don't know whether they have been committed yet.

Best,
Cat_7

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Posted: Wed Aug 17, 2022 3:10 pm
by marbre
Macports has the following build options:

Code: Select all

[+]cocoa: Use the native Mac OS X graphical user interface
   curl: Support network block devices using CURL
   curses: Use the curses text-only user interface
   dbus: Export the VM display through D-Bus
   gtk3: Use the GTK+3 graphical user interface
     * conflicts with cocoa
   lzfse: Support lzfse compression
   lzo: Support LZO compression
   sdl2: Use the SDL 2 graphical user interface
     * conflicts with cocoa
   snappy: Support Snappy compression
   ssh: Support remote block devices over SSH
[+]usb: Support forwarding of USB devices to the guest
   vde: Support VDE networking
   vnc: Support VNC server
   zstd: Support zstd compression

[+] options are included by default; '*' indicates conflicting options--the graphics engines. I checked the homebrew formula and it builds with cocoa, curses, ssh, lzo, snappy, vde, ssh, usb, vde, and zstd.

Users are also experiencing the white screen for arm, aarch64.