QEMU does not open

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

Post Reply
Needalotofhelp
Student Driver
Posts: 13
Joined: Fri Aug 21, 2020 2:09 am

QEMU does not open

Post by Needalotofhelp »

The guide for Windows says to start QEMU by double clicking on qemu.bat but unfortunately it doesn't work. I double click and a window pops up but then it just closes. Here's the text in the .bat file to help with troubleshooting.

qemu-system-ppc.exe -L pc-bios -boot c -M mac99,via=pmu -m 512 ^
-prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" ^
-drive file=osxpanther.img,format=raw,media=disk ^
-drive file=Apple Mac OS X 10.3.0 - Disk 1.iso,format=raw,media=cdrom ^
-sdl ^
-netdev user,id=network01 -device sungem,netdev=network01 ^
-device VGA,edid=on
In case you're wondering, the iso is "Apple Mac OS X 10.3.0 - Disk 1.iso and the .img file is osxpanther.img. If I formatted this incorrectly or if there is another underlying issue please let me know.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: QEMU does not open

Post by Cat_7 »

If you have a file name with spaces in it, you need to use " " around the path and name.

This will work:
-drive file="Apple Mac OS X 10.3.0 - Disk 1.iso",format=raw,media=cdrom ^

If you want to boot from the cd, you need to set -boot d

Best,
Cat_7
Needalotofhelp
Student Driver
Posts: 13
Joined: Fri Aug 21, 2020 2:09 am

Re: QEMU does not open

Post by Needalotofhelp »

I'm still having the same issue. I try to open the application but a window pops up then closes.

Here's the revised version.
qemu-system-ppc.exe -L pc-bios -boot d -M mac99,via=pmu -m 512 ^
-prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" ^
-drive file=osxpanther.img,format=raw,media=disk ^
-drive file="Apple Mac OS X 10.3.0 - Disk 1.iso",format=raw,media=cdrom ^
-sdl ^
-netdev user,id=network01 -device sungem,netdev=network01 ^
-device VGA,edid=on
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: QEMU does not open

Post by Cat_7 »

This indicates something is wrong in your qemu.bat. Add a line to qemu.bat that says: pause
like this:

qemu-system-ppc.exe -L pc-bios -boot d -M mac99,via=pmu -m 512 ^
-prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" ^
-drive file=osxpanther.img,format=raw,media=disk ^
-drive file="Apple Mac OS X 10.3.0 - Disk 1.iso",format=raw,media=cdrom ^
-sdl ^
-netdev user,id=network01 -device sungem,netdev=network01 ^
-device VGA,edid=on
pause

This will keep the window open and should give an indication of what's wrong.

Best,
Cat_7
Needalotofhelp
Student Driver
Posts: 13
Joined: Fri Aug 21, 2020 2:09 am

Re: QEMU does not open

Post by Needalotofhelp »

Thanks so much! I moved the folder to the desktop, and it worked flawlessly. Thanks for the help!
daehl
Space Cadet
Posts: 2
Joined: Sun Jan 03, 2021 8:19 pm

Re: QEMU does not open

Post by daehl »

I am having a similar problem. I just installed Qemu for the first time and am trying to get it to work. I installed version 5.2.50 on my mid-2014 15" MacBook Pro running macOS 10.14.6.

When I click on the Qemu.bat file I created, it opens the wrong applications. When I use the "get Info" command to check the application mapping listed under "Open with:", in my case there are only two choices and neither of them is qemu-related (one is a 3rd party text editor, the other is Windows Explorer -- which is located within a VMware VM on my Mac). I suspect I should choose the "qemu-system-ppc" unix executable, but the Finder will not allow that to be selected. No matter what options i choose, it does not allow me to select any of the unix executables in my qemu folder (they are always greyed-out).

If I try to open the qemu-system-ppc executable by itself, a terminal-like window appears with a yellow background with the following text in the upper left:

Welcome to OpenBIOS v1.1 built on Jul 27 2020 08:14
Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
No valid state has been set by load or init-program

0 > Welco


But, of course, nothing else happens.
So how do I get qemu-system-ppc to be the default application for my qemu.bat file?


I just tried using the chmod 755 command on my "qemu.bat" file, to set the executable bit. But when and then open it in a terminal command, but that isn't working either.

MBP15:Qemu-5 daehl$ /Users/daehl/Desktop/Qemu-5/Qemu.bat

/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 1: qemu-system-ppc.exe: command not found
/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 2: -prom-env: command not found
/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 3: -drive: command not found
/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 4: -drive: command not found
/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 5: -sdl: command not found
/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 6: -netdev: command not found
/Users/daehl/Desktop/Qemu-5/Qemu.bat: line 7: -device: command not found


Here's the contents of my Qemu.bat file:

qemu-system-ppc.exe -L pc-bios -boot d -M mac99,via=pmu -m 512 ^
-prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" ^
-drive file=MacOS9.2.2.iso,format=raw,media=cdrom ^
-drive file=MacOS9.2.img,format=raw,media=disk ^
-sdl ^
-netdev user,id=network01 -device sungem,netdev=network01 ^
-device VGA,edid=on
Last edited by daehl on Sun Jan 03, 2021 8:57 pm, edited 1 time in total.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: QEMU does not open

Post by Cat_7 »

Hi,

A qemu.bat file should only be in the Windows version, the macOS version should contain a qemu.command file.

Can you show us the content of your qemu.bat?

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

Re: QEMU does not open

Post by Cat_7 »

Ah, I see,

You use the windows-related guide to create your bat file...
See here for a correct example: https://www.emaculation.com/doku.php/pp ... mu-for-osx

For MacOS hosts, that translates to:

Code: Select all

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

qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 \
-prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" \
-drive file=MacOS9.2.2.iso,format=raw,media=cdrom \
-drive file=MacOS9.2.img,format=raw,media=disk \
-netdev user,id=network01 -device sungem,netdev=network01 \
-device VGA,edid=on
So make a qemu.command file with that content (adjust names and paths to the cd image and hard disk image) and make it executable. Then try again.

Best,
Cat_7
daehl
Space Cadet
Posts: 2
Joined: Sun Jan 03, 2021 8:19 pm

Re: QEMU does not open

Post by daehl »

Well, that explains it! Thanks, still trying to figure this out... I'll give the correct instructions a try ;)
Post Reply