no valid state has been set by load or init-program

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
renate60
Space Cadet
Posts: 3
Joined: Mon Nov 11, 2019 10:27 am

no valid state has been set by load or init-program

Post by renate60 »

:sad:
Hallo,
I use Qemu package 4.1 from https://www.emaculation.com/forum/viewt ... =34&t=8848. My Host is High Sierra - Mac mini midi 2011
I downloaded MacOS 9.2 from Macintosh Garden and from MacOS9Lives. The cd is booting with qemu.command. I can initialize the hdd and install. Then I shutdown the Machine.
My qemu.command is how you describe in Tutorial.
https://www.emaculation.com/doku.php/pp ... mu-for-osx.
I made # to cd and changed to boot c. And then when I boot, it comes - no valid state...

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

./qemu-system-ppc -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=MacOS9.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 \

The first time it worked and I could boot. But now always the same. I downloaded the qemu file again, unzipped and alway no valid state. I think it does not find the ata driver for hdd but what can I do? Update driver in OS 9 requires reboot but in Qemu there is no reboot possible.
trapexit
Space Cadet
Posts: 3
Joined: Mon Apr 08, 2019 12:35 pm

Re: no valid state has been set by load or init-program

Post by trapexit »

You can't just comment the drive out like that. Remove the line all together.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: no valid state has been set by load or init-program

Post by Ronald P. Regensburg »

Or reverse the disk and cd order.

From the tutorial:
To boot the installed Mac OS, you need to edit the qemu.command file:
- Change the “-boot d” argument to “-boot c”.
- Reverse the order in which your disk and cd rom entry are listed in qemu.command.
So, when booting with “-boot c”, make sure your hard disk image file is listed first. If you have no need for the cd rom disk to be available, you can remove the entry from the command line. Save the file. Double-click qemu.command and Mac OS will boot from the hard disk.
renate60
Space Cadet
Posts: 3
Joined: Mon Nov 11, 2019 10:27 am

Re: no valid state has been set by load or init-program

Post by renate60 »

that I was trying too but also no valid state.
renate60
Space Cadet
Posts: 3
Joined: Mon Nov 11, 2019 10:27 am

Re: no valid state has been set by load or init-program

Post by renate60 »

I did this
./qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 -hda <hd image file> -cdrom <iso file of installation media> \
-netdev user,id=mynet0 -device sungem,netdev=mynet0
and it bootet from iso cd..
No reverse order of the entry.
And after that, it booted from hd. It does not like the change of entries on my machine. Now it works and I hope, it will tomorrow too.
Thanks
Post Reply