/dev/cdrom works but .iso file doesn't?

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
cellularmitosis
Space Cadet
Posts: 3
Joined: Wed May 06, 2020 4:09 am

/dev/cdrom works but .iso file doesn't?

Post by cellularmitosis »

Hey guys, thanks in advance for your help.

I'm running qemu on a Macbook Pro running Mojave, trying to setup Tiger under PowerPC emulation.

When I use '-cdrom tiger.iso', I get the dreaded "No valid state has been set by load or init-program".

However, if I burn that .iso to a DVD and use '-cdrom /dev/cdrom', qemu boots up the tiger installer just fine :mrgreen:

What am I doing wrong with the .iso file?

I've tried both homebrew qemu as well as building from the 5.0.0 sources.

For reference, this is the command line which booted the physical DVD correctly:

Code: Select all

qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 -cdrom /dev/cdrom -netdev user,id=mynet0 -device sungem,netdev=mynet0 -prom-env "auto-boot?=true"  -prom-env "boot-args=-v"
However it still works with fewer options:

Code: Select all

qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 -cdrom /dev/cdrom
If I go round-trip with the .iso (burn it to DVD, then re-rip the DVD using dd), the md5 sums match:

Code: Select all

$ md5sum tiger.iso tiger-rip.iso 
28b3352b8b125469f23ed9c3e386f4a3  tiger.iso
28b3352b8b125469f23ed9c3e386f4a3  tiger-rip.iso
Thanks!
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: /dev/cdrom works but .iso file doesn't?

Post by Cat_7 »

Hi,

You gave us a lot of info, but did not provide the command line you used when trying to boot from the iso.
Can we reproduce this is issue by downloading the iso you used from somewhere? If you downloaded it from the macintoshgarden, I seem to remember that the 10.4 iso available there will indeed not boot with Qemu.

Code: Select all

qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 -cdrom /dev/cdrom
This still works because most options you left out are already default settings.

Best,
Cat_7
cellularmitosis
Space Cadet
Posts: 3
Joined: Wed May 06, 2020 4:09 am

Re: /dev/cdrom works but .iso file doesn't?

Post by cellularmitosis »

Thank you for the quick reply!

The iso-based command line used was the same, but with "/dev/cdrom" replaced by "tiger.iso".

I believe the .iso was downloaded from isoriver.com: https://isoriver.com/download-mac-os-x- ... 4-iso-dmg/

I have not tried the macgarden iso file, but I will download it to see if it matches the md5 sum of my .iso.

I believe this .iso is formatted with HFS, rather than ISO9660. Perhaps qemu is expecting ISO9660?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: /dev/cdrom works but .iso file doesn't?

Post by Cat_7 »

The iso from isoriver you referred to is indeed not bootable with Qemu.

Best,
Cat_7
cellularmitosis
Space Cadet
Posts: 3
Joined: Wed May 06, 2020 4:09 am

Re: /dev/cdrom works but .iso file doesn't?

Post by cellularmitosis »

Years later, I wanted to follow up on this, as I dusted off my Tiger qemu rabbit hole and found success.

Use download number 31 from https://macintoshgarden.org/apps/mac-osx-mac-os-10-ppc, a file named Tiger_4_6.dmg_.zip, which is 2.54GB.

Unzip the file, then (on a Mac) use hdiutil to convert the dmg to a cdr:

Code: Select all

hdiutil convert Tiger_4_6.dmg -format UDTO -o tiger-dvd
The resulting file will be named tiger-dvd.cdr.

The minimal qemu command to boot this DVD (just to test that it works) is:

Code: Select all

qemu-system-ppc -M mac99,via=pmu -m 512 -boot d -cdrom tiger-dvd.cdr
Thanks again Cat_7 for your help on my thread as well as many other threads!
ball
Student Driver
Posts: 16
Joined: Thu Jul 07, 2011 5:24 am

Re: /dev/cdrom works but .iso file doesn't?

Post by ball »

Unfortunately the link to the dmg you downloaded was deleted and replaced with a non-functioning ISO.

Well, unfortunate for me, anyway. I'm about to buy a gun and shoot myself in the head. Far easier than trying to find 20yr old equipment like CD burners.
ball
Student Driver
Posts: 16
Joined: Thu Jul 07, 2011 5:24 am

Re: /dev/cdrom works but .iso file doesn't?

Post by ball »

Oh thank God I finally got something to boot.

I had to use the wayback machine to get the dmg you used then convert it.

https://macintoshgarden.org/sites/macin ... dmg__0.zip

Literally the only image on the interwebs that works (after conversion)
Post Reply