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

darthnvader
Apple Corer
Posts: 231
Joined: Sun Feb 07, 2016 4:40 pm

Re: Qemu package and guide for OSX available

Post by darthnvader »

Cat_7 wrote: Sun May 18, 2025 9:14 pm Will that run without mac99,via=pmu?

Best,
Cat_7
Thanks, I think that's it!
User avatar
celebi23
Granny Smith
Posts: 113
Joined: Wed Jun 18, 2008 5:53 am

Re: Qemu package and guide for OSX available

Post by celebi23 »

Got a few super dumb questions. What are the reasons that I can't run "-smp 4" with a Mac OS X 10.5.8 vm and only "-smp 2"? Also, why is the memory limit 2048mb and vgamem_mb seems to be 64MB? If I set the memory to anything higher, I get an error message that 2048mb is the limit and if I set vgamem_mb to anything more that 64MB, Mac OS X takes forever to attempt to boot (stuck at the apple logo screen and goes no further than that). I'm trying to get as much performance as I can with this VM :smile: I'm using the "Qemu-system-ppc64-smp-universal-experimental-15-04-2025" build. Thanks!
User avatar
adespoton
Forum All-Star
Posts: 4727
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com

Re: Qemu package and guide for OSX available

Post by adespoton »

celebi23 wrote: Sat May 31, 2025 6:43 pm Got a few super dumb questions. What are the reasons that I can't run "-smp 4" with a Mac OS X 10.5.8 vm and only "-smp 2"? Also, why is the memory limit 2048mb and vgamem_mb seems to be 64MB? If I set the memory to anything higher, I get an error message that 2048mb is the limit and if I set vgamem_mb to anything more that 64MB, Mac OS X takes forever to attempt to boot (stuck at the apple logo screen and goes no further than that). I'm trying to get as much performance as I can with this VM :smile: I'm using the "Qemu-system-ppc64-smp-universal-experimental-15-04-2025" build. Thanks!
Probably best to ask that question in the SMP thread; there's already a rich discussion there (and in other places) about the issues in getting the emulated hardware to emulate more than 2 processors; tests so far show that four are emulated, but the OS only recognizes two.

When you're using an experimental build, you can expect lots of gaps in the emulation. The entire idea is to add features and test where they fail, and attempt to isolate what causes the failure.

Not sure that anyone's tried testing large VGAMem values yet though. And the 2048 error is because there are known addressing issues if the limit is set higher than that (likely the same with the vgamem, just that nobody had tested it yet).
macfly
Space Cadet
Posts: 8
Joined: Sat Feb 24, 2024 3:24 pm

Re: Qemu package and guide for OSX available

Post by macfly »

re all, trying to update installed macos 10.5 with -cdrom 10.5.7.dmg - starts w/o errors but no cd in desktop shown, what i do wrong?
p.s. earlier updated to 10.5.8 but freeze after boot start
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 »

I created a new experimental qemu-system-ppc. Find it in the second post under experimental builds.

Some example command lines are:
./qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu \ (enables usb keyboard and mouse for all supported Mac OS and OS X, can be timer calibration sensitive)
-cpu g4 \
-smp 4 -accel tcg,thread=multi \ (enables symmetric multiprocessor. Use smp 2 for Mac OS 9 to Mac OS X 10.3, use smp 4 for Mac OSX 10.4 and 10.5)
-m 512 \
-display cocoa \
-boot c \
-drive file=10.4.qcow2 \
-device sungem,netdev=network01,mac=52:54:00:12:34:56,phy_type=1 \ (phy_type=1 enables the GMAC device)
-netdev vmnet-bridged,id=network01,ifname=en0 \
-serial stdio \
-device usb-audio (enables the usb-audio device)

For Server1.2v3:
./qemu-system-ppc \
-M g3beige \
-cpu g4 \ (must be set to g4)
-L pc-bios \
-m 256 \
-boot c \
-g 1024x768x8 \ (define window size, colour depth must be 8)
-display cocoa \
-drive file=Server1.2v3.img,format=raw,media=disk \
-serial stdio \
-usb -device usb-mouse \ (enables 1 usb device as supported with by this OS (per documentation). Attempts to minimize mouse jumpiness)
-nic user,model=bmac (enables the bmac network device, can be timer calibration sensitive: functionality is very dependent on host speed).
rscaboyke
Tinkerer
Posts: 60
Joined: Thu May 10, 2007 7:54 am

Re: Qemu package and guide for OSX available

Post by rscaboyke »

Do i have to do something extra to get audio with this new release ? and my apple Magic Mouse 2 is very slow in os9.2.2
also I had to use virtio tablet en disable sunbeam and vmnet because got error in terminal (perhaps not enough permissions for the network to be created.

appreciate any help specially for mouse movement

here is my command line :

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

./qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu \
-cpu g4 \
-smp 2 -accel tcg,thread=multi \
-m 768 \
-display cocoa \
-boot c \
-drive file=MacOS92DTP.img,format=raw,media=disk \
#-device sungem,netdev=network01,mac=52:54:00:12:34:56,phy_type=1 \
#-netdev vmnet-bridged,id=network01,ifname=en0 \
-serial stdio \
-device usb-audio
-device loader,addr=0x4000000,file=./ndrvloader \
-prom-env "boot-command=init-program go" \
-device virtio-tablet-pci \
#-device virtio-9p-pci,fsdev=UNIQUENAME,mount_tag="Macintosh HD" \
#-fsdev local,id=UNIQUENAME,security_model=none,path=/SOME/FOLDER/YOU/WANT/TO/SHARE
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 build does not have cumulative functionality on top of the one you are now using.

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

./qemu-system-ppc \ --> sudo needed to run vmnet. If you don't need that, leave out the two network-related lines
-L pc-bios \
-M mac99,via=pmu \
-cpu g4 \
-smp 2 -accel tcg,thread=multi \
-m 768 \
-display cocoa \
-boot c \
-drive file=MacOS92DTP.img,format=raw,media=disk \
-device sungem,netdev=network01,mac=52:54:00:12:34:56,phy_type=1 \
-netdev vmnet-bridged,id=network01,ifname=en0 \ --> this requires checking whether your default network device is indeed named en0
-serial stdio \
-device usb-audio

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 »

I get this with your corrected command line

-netdev vmnet-bridged,id=network01,ifname=en0: cannot create vmnet interface: general failure (possibly not enough privileges)
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 »

use:

sudo ./qemu-system-ppc \

and enter your password when asked

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 »

Yes, it works with 4 cpus in Leopard! (qemu compiled on Linux with patches, openbios from experimental Qemu zip from 08 feb 2026)

sorry fort BIG PICTURE, can't find spoiler tag o.o

Image
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 »

Yes, lovely, isn´t it? have you also tried the usb-audio fix?

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 »

I don't have any audio macOS9 latest feb. qemu with this command line :

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

./qemu-system-ppc \ --> sudo needed to run vmnet. If you don't need that, leave out the two network-related lines
-L pc-bios \
-M mac99,via=pmu \
-cpu g4 \
-smp 2 -accel tcg,thread=multi \
-m 768 \
-display cocoa \
-boot c \
-drive file=MacOS92DTP.img,format=raw,media=disk \
-device sungem,netdev=network01,mac=52:54:00:12:34:56,phy_type=1 \
-netdev vmnet-bridged,id=network01,ifname=en0 \ --> this requires checking whether your default network device is indeed named en0
-serial stdio \
-device usb-audio

does I have to do anything else except running the command line with sudo, to have audio working ? with sudo it boots macOS 9 with my command line but no sound in iTunes.
thx for any 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 »

Audio does not need sudo. Only the vmnet network.
What did you try run in iTunes? Due to changes in access to the radio station list the radio will not work, but it should play an mp3.
Have you tried the system sounds in the sound control panel?

Can you give me your exact command line?

This command line should work without sudo, giving you the default network access:
#!/bin/bash
cd "$(dirname "$0")"

./qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu \
-cpu g4 \
-smp 2 -accel tcg,thread=multi \
-m 768 \
-display cocoa \
-boot c \
-drive file=MacOS92DTP.img,format=raw,media=disk \
-serial stdio \
-device usb-audio
rscaboyke
Tinkerer
Posts: 60
Joined: Thu May 10, 2007 7:54 am

Re: Qemu package and guide for OSX available

Post by rscaboyke »

ohhh thx Cat7, it are all radiostations url's that I use in iTunes macos9 so I'll think better go back older screamer version as then they played very well, pitty though that I can't use smp2.
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 »

I don't understand. The iTunes radio stations will also not work with the screamer as the problem is on internet side of things.
Unless you are using a patched iTunes version in Mac OS 9?

Did you try to play some system sounds to check whether you have any sound at all with the usb-audio option?

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 »

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)
rscaboyke
Tinkerer
Posts: 60
Joined: Thu May 10, 2007 7:54 am

Re: Qemu package and guide for OSX available

Post by rscaboyke »

must be a patched iTunes I think because long time ago that I configured this emulated environment with all the software :

https://www.transferxl.com/download/08jLJfhDpH3WXZ
Programmingkid
Apple Corer
Posts: 245
Joined: Sun Jan 31, 2016 6:01 pm

Re: Qemu package and guide for OSX available

Post by Programmingkid »

When I tried the 08-02-2026 experimental build I had to push the "open anyways" button in Security & Privacy for each library. After that I saw this error:

dyld[4008]: Symbol not found: _endwin$NCURSES60
Referenced from: /Users/user/Desktop/Qemu-system-ppc-macOS-Experimental-08-02-2026/qemu-system-ppc
Expected in: /usr/lib/libncurses.5.4.dylib
Abort trap: 6

I think including information on what the system requirements are for each build would be helpful. Listing the Mac OS version used to build the binary would probably be enough.

By info:
Mac OS 12.3.1
Apple M1
Last edited by Programmingkid on Sat Feb 14, 2026 8:27 pm, edited 1 time in total.
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 »

That is too bad. The executable was built on an M1 running Tahoe.
The fixed usb-audio files are provided so you might be able to build your own. However, there is now also a patch on the developers list that fixes usb-audio for Mac OS 9, but not for Mac OS X.

Best,
Cat_7
Programmingkid
Apple Corer
Posts: 245
Joined: Sun Jan 31, 2016 6:01 pm

Re: Qemu package and guide for OSX available

Post by Programmingkid »

Thank you for the information. Do you think you could post the complete source code used to build the 08-02-2026 experimental build? It would make it a lot easier for others to build. I know the download does include the changed files, but there is no mention of which version of QEMU to use them with.
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 »

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 »

Yet another experimental build has arrived. See the second post in this thread.
It includes improved support for a shared folder in Mac OS 9.x only, and the usb-audio fixes for Mac OS 9.x and OS X from the previous experimental build.
Take care not to use a space in the mount_tag= argument

Example 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=9.2.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=/path/to/some/folder \
-device usb-audio

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 »

Cat 7

Does this 18/02 release also support G4 multi cpu smp2 for macOS 9, and please can someone give me the best command settings for smoothening/better/best Magic Mouse 2 support from an iMac m4 ?
PS: without smp2 command yet, the usb-audio works great even for be radio-stations via iTunes.
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 »

Hi,

No, this last experimental build only has the audio fix and the (hopefully) shared folder improvements.
the usb-audio works great even for be radio-stations via iTunes.
That's great to hear ;-)

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 »

Here still crashes when used shared folder, tried within O9 to shared folder -> crashed system, force quite looked in map the file I copied from os 9 was there, the other way round put a file from my tahoe to the shared folder, started qemu O9 when going to shared folders file there but again completely crashed qemu system

pitty
Post Reply