Mac OS 9.2.2 install on top of Linux openbios-ppc not found

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
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Mac OS 9.2.2 install on top of Linux openbios-ppc not found

Post by performa »

Hello all, I am trying to install Mac OS 9.2.2 using QEMU PPC emulation inside of my Linux Ubuntu VM on top of my MacBook Pro running OS 10.13.3 (this is for a class project so I need to maintain this setup).

I installed qemu successfully inside the Linux VM, downloaded the OS 9.2.2 image, and followed the directions here: https://www.emaculation.com/doku.php/pp ... mu-for-osx
however upon trying to execute the 'qemu.command' script, I am getting the error:

qemu: hardware error: qemu could not load PowerPC bios 'openbios-ppc'

Image

How do I get the required openbios-ppc working? Is it possible to install OS 9 using my setup?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by Cat_7 »

Hi,

How did you install qemu? Did you compile it? Or did you install it from the Ubuntu repository?

The error seems to suggest qemu can't find the file openbios-ppc.
This file, among others, should be in a folder called pc-bios. If you have that folder you can tell Qemu its location by using the -L parameter in your command line like this: -L /path/to/pc-bios folder.

Best,
Cat_7
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

thanks cat_7,

I installed it from the Ubuntu repository.
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

Cat_7 wrote:Hi,

How did you install qemu? Did you compile it? Or did you install it from the Ubuntu repository?

The error seems to suggest qemu can't find the file openbios-ppc.
This file, among others, should be in a folder called pc-bios. If you have that folder you can tell Qemu its location by using the -L parameter in your command line like this: -L /path/to/pc-bios folder.

Best,
Cat_7
I discovered that the openbios-ppc file is in the /usr/share/qemu directory
I altered the qemu.command file to include the -L /usr/share/qemu as below:



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

qemu-system-ppc -L /usr/share/qemu -boot d -M mac99 -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.2.img,format=raw,media=disk -device usb-mouse -device usb-kbd -netdev user,id=network01 -device sungem,netdev=network01



however, still getting same error.


So I tried to download and install openbios from https://www.openfirmware.info/OpenBIOS

However when I get to the step:

$ ./config/scripts/switch-arch sparc32 sparc64 x86 ppc amd64

I get error:

Configuring OpenBIOS on amd64 for builtin-qemu-ppc
ERROR: no powerpc powerpc64 cross-compiler found !
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

I was able to install the openbios-ppc using "sudo apt-get install openbios-ppc"

I am no longer getting openbios-ppc error!

However, now I get an error after QEMU loads:
"No valid state has been set by load or init-program"

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

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by Cat_7 »

Hi,

That openbios is really old (2016). It might not even be capable of booting Mac OS 9.
Download this: http://www.open.ou.nl/hsp/downloads3/Qe ... 022018.zip
Unzip the file and use the openbios-ppc file that is included in the pc-bios folder.

I don't know how old the qemu version is that you installed. That could also lead to problems. it would be best if you compiled qemu from the source.

But first try with the new openbios-ppc.

Best,
Cat_7
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

Cat_7 wrote:Hi,

That openbios is really old (2016). It might not even be capable of booting Mac OS 9.
Download this: http://www.open.ou.nl/hsp/downloads3/Qe ... 022018.zip
Unzip the file and use the openbios-ppc file that is included in the pc-bios folder.

I don't know how old the qemu version is that you installed. That could also lead to problems. it would be best if you compiled qemu from the source.

But first try with the new openbios-ppc.

Best,
Cat_7

Thank you Cat_7
I had success replacing qemu's openbios-ppc file with the one from the link you provided.. I am now able to somewhat boot from the OS 9 iso file. However the qemu window shows the error "MacOS: unable to find a usable NVRAM partition- using offset 0x1400"

Image

I then get the Mac startup screen but it hangs. Also the mouse control is quirky, as moving the mouse only allows the pointer to move rapidly across the top and along the bottom of screen.

Image

The terminal window in my Linux VM has the following errors:

Image

I installed the latest version of qemu 2.12.0-rc0.
I am using the qemu.command script:

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

qemu-system-ppc -boot d -M mac99 -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.2.img,format=raw,media=disk -device usb-mouse -device usb-kbd
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by Cat_7 »

Hi,

Both the first and last image show normal behaviour.
The problematic mouse is caused by the fact that you are running Qemu in an Ubuntu virtual machine. I have no solution for that.

Do you have to run inside that virtual machine? We provide OSX builds as well.
As you previously downloaded one, try whether qemu boots your Mac OS image correctly on your host.

I currently have no idea where that error during boot might come from.

Best,
Cat_7
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

Thanks a lot for your help cat_7,

I decided to just install Qemu on top of my bare metal OS X on my MacBook Pro.

I was able to install Mac OS 9.2.2 in Qemu and it boots up fine, however, I notice that there is no sound and I am not able to connect to the internet.

Are these issues solvable? I didn't see much in the qemu forums here.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by Cat_7 »

you haven't found this?

https://www.emaculation.com/doku.php/pp ... mu-for-osx

Download this version for sound support:
http://www.open.ou.nl/hsp/downloads3/Qe ... 122027.zip



Best,
Cat_7
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

Cat_7 wrote:you haven't found this?

https://www.emaculation.com/doku.php/pp ... mu-for-osx

Best,
Cat_7
Yes, those are the directions that I used to install Qemu and get OS 9.2.2 running. I added the "-netdev user,id=network01 -device sungem,netdev=network01" line to the qemu.command script but still not getting luck with networking connections: Internet Explorer says "Security failure: The server reply is invalid"

Also, I don't see anything in there about audio issues
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

Update: it appears that some sites do work.. I can go to www.msn.com but not www.apple.com
Perhaps this is due to outdated encryption protocols in OS 9?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by Cat_7 »

Exactly. Install Classilla as a more up to date browser.

Please check my update to the previous post about sound support.

Best,
Cat_7
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by performa »

Thanks again Cat-7,

I am assuming that to be able to use a "CD" on OS 9 I would have to make a .iso file of the CD and replace the name of the OS9.iso installer file with the CD name in the qemu.command file? Or would inserting a CD into a CD drive work properly (I'm not able to test as my MacBook Pro doesn't have a built- in optical drive)
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Mac OS 9.2.2 install on top of Linux openbios-ppc not fo

Post by adespoton »

Go to the file menu when qemu is running and select the iso file you want to load/eject.
Post Reply