Qemu package and guide for OSX available

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

Can you show me your command line? And what kind of file you were copying?
Over here I only have issues with aliases and programs that cannot run after they were copied to the shared folder and then back.

Best,
Cat_7
rscaboyke
Tinkerer
Posts: 60
Joined: Thu May 10, 2007 7:54 am

Re: Qemu package and guide for OSX available

Post by rscaboyke »

Hey Cat here my command line :

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

./qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu \
-display cocoa \
-m 512 \
-boot c \
-drive file=MacOS92DTP.img,format=raw,media=disk \
-device loader,addr=0x4000000,file=./ndrvloader \
-prom-env "boot-command=init-program go" \
-device virtio-9p-pci,fsdev=UNIQUENAME,mount_tag="SharedFolder" \
-fsdev local,id=UNIQUENAME,macos_compat=on,security_model=none,path=//Users/oepieke/Desktop/OS9 \
-device usb-audio

makes no difference what kind of file I put in the shared folder, did from tahoe finder into my OS9 shared folder an .mp3, copied it in finder OS9 to desktop, .mp3 played, but system crashed, without using the sharing folder, no crashes.
User avatar
Ronald P. Regensburg
Expert User
Posts: 8203
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Qemu package and guide for OSX available

Post by Ronald P. Regensburg »

How did you copy the file from the shared folder to the desktop? If you just dragged it to the desktop, the file will still be in the shared folder, in a "Desktop Folder" that is invisible in OS9, but should show up on the host side. If you copy it by dragging with Option key pressed (note the + that will appear with the file icon) it will be copied to the desktop that belongs to the OS9 startup disk. (In Classic Mac OS the desktop is not one single location as in OSX/macOS. In Mac OS each volume has its own desktop.)
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

This path might not be correct: //Users/oepieke/Desktop/OS9

Try with a single slash before Users. Or better, open the command file and drag the folder you wish to share on your host to behind the path= so macOS pastes the folder name there.

Best,
Cat_7
rscaboyke
Tinkerer
Posts: 60
Joined: Thu May 10, 2007 7:54 am

Re: Qemu package and guide for OSX available

Post by rscaboyke »

Cat7

seems to work ok now ! wonder If sometime they will make this release also smp (more cpu's) compatible. The only frustrating thing from the beginning qemu os9 is that the magic 2 mouse works but for from the smoothness as in host os, is there a specific setting to make the mouse work great ?

thx for all the replies and great help
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

seems to work ok now ! wonder If sometime they will make this release also smp (more cpu's) compatible.
Good!
I make those experimental releases, so lets see when I add the shared folder to the smp release ;-)

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

There is another experimental build in the second post in this thread.

It should fix the alias and program corruption when copied to and from the shared disk.
It allows running programs straight from the shared disk ;-)

Best,
Cat_7
Andrew_R
Inquisitive Elf
Posts: 31
Joined: Tue Jul 06, 2021 1:32 am

Re: Qemu package and guide for OSX available

Post by Andrew_R »

Andrew_R wrote: Sat Feb 14, 2026 6:54 am
Cat_7 wrote: Fri Feb 13, 2026 8:12 am Yes, lovely, isn´t it? have you also tried the usb-audio fix?

Best,
Cat_7

No, not yet. I hope to restore some tracing lines from smp patch first. (I applied pieces with plain patch, so they just hang there uncommited)
Tried it.

Image

It works in os 9.2.2 if I convert mp3 to wav (48 Khz, mono, 16 bit) and play that via Quicktime player.

It works on OS X 10.4.11 Tiger but in strange way: mplayer (cli, self-compiled) play via SDL but with distortions. Depending on resample option file may play (48 Khz sampling rate, same as usb device), or not (everything else?)

Format said to be s16be, as opposed to LE under mac OS 9.2.2

I wonder if usb audio devices supposed to have endian-converters in them? :)

This is using ohci hcd patch from 9 feb 2026 (two in one) on top of qemu commit 63a88166ab160d7d92da60b7fcb562c127e51862 ("Date: Thu Jan 8 07:24:44 2026 +1100")
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

Thanks,

I did notice that in OS X when playing an mp3 with Quicktime the sound could be garbled. However, after playing the same mp3 with iTunes first the mp3 would then play fine with Quicktime also. I don't know what causes that.

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

Another experimental build has arrived in the second post in this thread. This time with the functionality of the last two experimental builds combined:
-Built on M1 with Tahoe.
-Arm only!
-PowerMac model changed to PowerMac3,3 (was PowerMac3,1)
-Improved SMP support: runs Mac OS 9.x up to OSX 10.3 with 2 cpus, OSX 10.4 and 10.5 with 4 cpus. Runs Linux with 4 cpus.
-Improved USB Audio support: in the guest OS always make sure to run the latest QuickTime, iTunes supported
-Supports the Sungem/GMAC network device as found in PowerMac3,3: use parameter -device sungem,netdev=network01,mac=52:54:00:12:34:56,phy_type=1 to enable it.
-Supports the BMac network device for the g3beige machine: allows OSX Server 1.2.v3 to have network access. (Server kernel needs patch due to 32 bit overflow.)
-Supports mac99,via=pmu for all Mac OS and Mac OS X guests (USB is very timing dependent, so your mileage may vary. Sometime a new boot helps)
-Improved shared folder functionality for Mac OS 9.x

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 6557
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for OSX available

Post by Cat_7 »

The only frustrating thing from the beginning qemu os9 is that the magic 2 mouse works but for from the smoothness as in host os, is there a specific setting to make the mouse work great ?
I have no idea, I don' t have such a device. But it seems mouse movement is a bit slow indeed in the experimental builds.

Best,
Cat_7
Post Reply