How to launch Mac OS X Puma on Linux ?

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
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Good evening everyone !

I'm on Linux Mint & I can't launch Qemu to emulate Mac OS X 10.1 Puma. I followed the instructions on the official page here

I entered this command:

Code: Select all

qemu-system-ppc -L pc-bios -boot d -M mac99 -m 512 -hda "/home/sebiohazard/HDD/MacOSX.img" -cdrom "/home/sebiohazard/OS/MacOSX.iso"
Qemu launches but freezes after this screen... I don't know what to do ?!

Image

Greetings !
User avatar
adespoton
Forum All-Star
Posts: 4273
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: How to launch Mac OS X Puma on Linux ?

Post by adespoton »

What happens if you try:

Code: Select all

qemu-system-ppc -boot d -M mac99 -m 512 -cdrom "/home/sebiohazard/OS/MacOSX.iso" -hda "/home/sebiohazard/HDD/MacOSX.img"
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello !

Yes I also think of reversing the HDD with the CDROM but same result it remains frozen...
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: How to launch Mac OS X Puma on Linux ?

Post by Cat_7 »

Your command line works OK over here. Perhaps there is something wrong with the iso.
Please remove:

-hda "/home/sebiohazard/HDD/MacOSX.img"

from your command line and add these two arguments below and tell us what happens:

-prom-env "boot-args=-v" -serial stdio

Best,
Cat_7
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello !

The ISO of Mac OS X Puma works I tried it on Windows & the installation went well.

I launched Qemu with the additional command:

Code: Select all

-prom-env "boot-args=-v" -serial stdio
Qemu launches with a different screen but then freezes...

Qemu's returns are as follows:

Code: Select all

WARNING: Image format was not specified for '/home/sebiohazard/HDD/MacOSX.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.

>> =============================================================
>> OpenBIOS 1.1 [Jan 17 2018 23:39]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 512M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,G4
milliseconds isn't unique.
>> switching to new context:

The Installer has unexpectedly quit. (error 1)
Greetings !
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: How to launch Mac OS X Puma on Linux ?

Post by Cat_7 »

The qemu you seem to be using in Linux is rather old, judging by the openbios date of 2018.

How did you install it?

Best,
Cat_7
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

With the following command:

Code: Select all

sudo apt install qemu-kvm
Greetings !
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: How to launch Mac OS X Puma on Linux ?

Post by Cat_7 »

I don't know what might be causing that. Perhaps compiling your own version of Qemu can help.

Best,
Cat_7
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Thanks for your help I looked if there is a forum for Qemu but I found nothing...
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Mac OS X emulation under Linux is very complicated I think...
User avatar
adespoton
Forum All-Star
Posts: 4273
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: How to launch Mac OS X Puma on Linux ?

Post by adespoton »

Did you try starting from https://wiki.qemu.org/Main_Page ? There's good documentation there for Linux.

Once you've familiarized yourself with how to set up and run qemu 5.0.0, you can head on over to https://wiki.qemu.org/Documentation/Platforms/PowerPC for specific documentation about qemu-ppc.
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

adespoton wrote:Did you try starting from https://wiki.qemu.org/Main_Page ? There's good documentation there for Linux.
Hello yes of course I mentioned this link at the beginning of this post...

Greetings !
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello !

I managed to install Mac OS X 10.2 Jaguar strangely using the same command lines as for Mac OS X 10.1 Puma:

Code: Select all

qemu-system-ppc -L pc-bios -boot d -M mac99 -m 512 -hda "/home/sebiohazard/HDD/MacOSX.img" -cdrom "/home/sebiohazard/OS/MacOSX CD1.iso"
The installation requires a second CD so you have to restart Qemu but this time by booting on the HDD with this command:

Code: Select all

qemu-system-ppc -L pc-bios -boot c -M mac99 -m 512 -hda "/home/sebiohazard/HDD/MacOSX.img" -cdrom "/home/sebiohazard/OS/MacOSX CD2.iso"
In this article it is written that the installation of Mac OS X 10.0 & 10.1 is not possible... it is strange because under Windows I managed to install Puma ?!

Greetings !
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Sorry I forgot to mention that the sound does not work with Mac OS X 10.2 Jaguar...
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: How to launch Mac OS X Puma on Linux ?

Post by Cat_7 »

Sound doesn't work with any versions you install through your package manager. The code to enable sound is not in the official qemu source.

The article you refer to is old and doesn't reflect the current state of affairs.

You might try -M g3beige in stead of -M mac99 to install 10.1

Best,
Cat_7
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

OK thank you I will try...

By cons I do not know how to get the latest version of Qemu on Linux ?

Greetings !
win.exe
Tinkerer
Posts: 42
Joined: Tue Apr 07, 2020 4:59 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by win.exe »

To get the latest source code for qemu execute

Code: Select all

 git clone git://git.qemu-project.org/qemu.git
You have to install build dependencies

Code: Select all

 sudo apt-get install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev
Then execute the following below

Code: Select all

cd qemu
./configure --target-list=ppc-softmmu #This will take a while don’t give up
make
cd ppc-softmmu

You new qemu-system-ppc should be here.
User avatar
mabam
Master Emulator
Posts: 497
Joined: Wed Apr 10, 2013 9:32 am

Re: How to launch Mac OS X Puma on Linux ?

Post by mabam »

madreamer wrote:To get the latest source code for qemu execute

Code: Select all

 git clone git://git.qemu-project.org/qemu.git
If you want the screamer build, compile it from this source:

Code: Select all

git clone -b screamer --single-branch git://github.com/mcayland/qemu.git
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello thank you for your help!

Unfortunately I don't know how to compile Qemu Screamer... I found this link here I ran the command lines but it doesn't work...

Greetings !
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello !

I found an old post that explains how to compile Qemu Screamer on Linux here. I managed to compile it but when I launch Qemu in the terminal it is the old version which starts...

How do I launch Qemu Screamer ?

Greetings !
User avatar
UbuntuXP
Tinkerer
Posts: 68
Joined: Sat Feb 08, 2014 8:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by UbuntuXP »

Make sure you're in the QEMU Screamer source directory and run with:

Code: Select all

$ ./qemu-system-ppc $ARGS
"Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."

Doug Gwyn
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello !

Yes yes I am in the right folder but it is always the version of Qemu installed that launches...
User avatar
UbuntuXP
Tinkerer
Posts: 68
Joined: Sat Feb 08, 2014 8:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by UbuntuXP »

Are you prefixing the command with "./"? In case you didn't know, adding the "./" prefix to a command tells the shell (typically bash) to execute the program in the current directory.
"Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."

Doug Gwyn
User avatar
Sebiohazard
Mac Mechanic
Posts: 157
Joined: Tue Aug 27, 2019 2:15 pm

Re: How to launch Mac OS X Puma on Linux ?

Post by Sebiohazard »

Hello UbuntuXP !

Thank you for your help I am a happy man it finally works ! Installation of Mac OS X 10.1 Puma on Linux Mint with functional sound !

By story I have another question... the compilation of Qemu Screamer has created a lot of files & folders, I would like to save only those which are necessary for the functioning of Qemu ?!
How to know ?

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

Re: How to launch Mac OS X Puma on Linux ?

Post by Cat_7 »

From the source folder copy ppc-softmmu/qemu-system-ppc and the pc-bios folder into a new folder. Put you command file and other files, such as disks etc into the new folder. Edit your command file. See whether things work.

Then delete the source folder.

Best,
Cat_7
Post Reply