Any guides for installing 10.4 Tiger under QEMU 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

Post Reply
powerpcfan
Student Driver
Posts: 19
Joined: Fri Sep 16, 2016 1:33 pm

Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by powerpcfan »

Are there any guides for installing 10.4 Tiger under QEMU on Linux? The distro I'm using is Linux Mint 20.1 XFCE
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by Cat_7 »

Getting Qemu to run in Linux is not that different from getting it to run in macOS.
Except that you probably have the option to install it through your package manager.

In Mint, use the synaptic package manager to install:
qemu-system-ppc

Open a terminal. Create a folder named qemu:
mkdir qemu
cd qemu

and create a hard disk image to install Tiger (set the desired size first):
qemu-img create -f qcow2 -o size=10G Tiger.qcow2

Download our latest qemu-for-osx build from here:
viewtopic.php?f=34&t=8848&p=52102#p52102
Extract only the pc-bios folder and copy it into your qemu folder.

Create a text file in your qemu folder, lets say "qemu.sh". Add

qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu \
-m 512 \
-boot d \
-drive file=nameofyourtigerimage,format=raw,media=cdrom \
-drive file=Tiger.qcow2,format=qcow2,media=disk

and save the file. In the terminal make the file executable by:
chmod +x qemu.sh

Run with: ./qemu.sh (or double click qemu.sh)

More info on further use:
https://www.emaculation.com/doku.php/pp ... mu-for-osx

Best,
Cat_7
powerpcfan
Student Driver
Posts: 19
Joined: Fri Sep 16, 2016 1:33 pm

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by powerpcfan »

I can't seem to find any working images of tiger. both dvd images I've tried won't boot. with both images both images qemu just spews "no valid state has been set by load or init program"
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by adespoton »

powerpcfan wrote: Tue Feb 16, 2021 1:02 am I can't seem to find any working images of tiger. both dvd images I've tried won't boot. with both images both images qemu just spews "no valid state has been set by load or init program"
A few things to check:
1. Are you using QEMU-PPC 5.2?
2. Which hardware are you emulating? I use the G3 profile with 512MB RAM.
3. Which DVD images are you using? I've got my own 10.4.0 one that I use, but I'm pretty sure I've used the Tiger_4_6.dmg_.zip one in the past as well.
powerpcfan
Student Driver
Posts: 19
Joined: Fri Sep 16, 2016 1:33 pm

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by powerpcfan »

adespoton wrote: Tue Feb 16, 2021 5:03 pm
powerpcfan wrote: Tue Feb 16, 2021 1:02 am I can't seem to find any working images of tiger. both dvd images I've tried won't boot. with both images both images qemu just spews "no valid state has been set by load or init program"
A few things to check:
1. Are you using QEMU-PPC 5.2?
synaptic says the version is 1:4.2-3ubuntu6.12
adespoton wrote: Tue Feb 16, 2021 5:03 pm2. Which hardware are you emulating? I use the G3 profile with 512MB RAM.
I'm using whatever was given to me in the script file I was told to make in the thread
adespoton wrote: Tue Feb 16, 2021 5:03 pm3. Which DVD images are you using? I've got my own 10.4.0 one that I use, but I'm pretty sure I've used the Tiger_4_6.dmg_.zip one in the past as well.
I tried with "Tiger_4_6.dmg" and "Mac OS X Tiger.iso"
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by adespoton »

Ah; so Synaptic is providing you with QEMU 4.2, which might require a slightly different command line from 5.0 and later which is what the scripts on here are designed to work with. But your issue is that once you've booted into OpenBIOS, it's unable to find a filesystem with an appropriate TBXI EFI bootloader.

Code: Select all

qemu-system-ppc \
-L pc-bios \
-M mac99,via=pmu \
-m 512 \
-boot d \
-drive file=nameofyourtigerimage,format=raw,media=cdrom \
-drive file=Tiger.qcow2,format=qcow2,media=disk
So you might want to try changing this to:

Code: Select all

qemu-system-ppc \
-L pc-bios \
-M mac99 \
-m 512 \
-boot d \
-cdrom "Mac OS X Tiger.iso"
-HDA Tiger.qcow2
after having created a blank disk named Tiger.qcow2 of course.
powerpcfan
Student Driver
Posts: 19
Joined: Fri Sep 16, 2016 1:33 pm

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by powerpcfan »

I still get the same error message
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by Cat_7 »

The tiger cd 1 download from the macintosh garden boots just fine.

What is the content of your current qemu.sh?

Best,
Cat_7
powerpcfan
Student Driver
Posts: 19
Joined: Fri Sep 16, 2016 1:33 pm

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by powerpcfan »

Just an FYI, I switched to windows because I was having other issues with linux that I couldn't deal with, but here is the qemu.bat I'm using

Code: Select all

qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu ^
-m 512 ^
-sdl ^
-boot d ^
-drive file=Mac_OS_X_Tiger.iso,format=raw,media=cdrom ^
-drive file=Tiger.qcow2,format=raw,media=disk
It's the same thing from the windows guide but with the file names changed and I still get the same error.
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by adespoton »

powerpcfan wrote: Wed Feb 17, 2021 10:14 pm Just an FYI, I switched to windows because I was having other issues with linux that I couldn't deal with, but here is the qemu.bat I'm using

Code: Select all

qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu ^
-m 512 ^
-sdl ^
-boot d ^
-drive file=Mac_OS_X_Tiger.iso,format=raw,media=cdrom ^
-drive file=Tiger.qcow2,format=raw,media=disk
It's the same thing from the windows guide but with the file names changed and I still get the same error.
And both the iso and the qcow2 files are in the same folder as the exe and the script?
powerpcfan
Student Driver
Posts: 19
Joined: Fri Sep 16, 2016 1:33 pm

Re: Any guides for installing 10.4 Tiger under QEMU on Linux?

Post by powerpcfan »

adespoton wrote: Wed Feb 17, 2021 10:46 pm And both the iso and the qcow2 files are in the same folder as the exe and the script?
Yes
Post Reply