Unable to boot to Mac OS 9.1 under Kali 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
vlad557776
Tinkerer
Posts: 97
Joined: Thu May 30, 2019 7:06 am

Unable to boot to Mac OS 9.1 under Kali Linux

Post by vlad557776 »

Hi.

So I really wanted to get DP1 up and got up my Kali Linux VM to install DP1 on there.

So I typed apt-get install qemu qemu-kvm qemu-system-ppc to install QEMU, then ran my qemu.sh to boot into 9.1 because 9.2.2 refuses to boot and...

Code: Select all

MacOS: unable to find a usable NVRAM partition - using offset 0x1400
MacOS: Boot Failure! (0xF3C481F6)
MacOS: unable to find an interrupt controller node.
EXIT
0 > _
Just the same issue I had under Windows CMD.

Here's my qemu.sh:

Code: Select all

#!/bin/bash

qemu-system-ppc \
-g 800x600x32 \
-boot d \
-M g3beige \
-m 512M \
-cpu G3 \
-prom-env 'auto-boot?=true' \
-prom-env 'boot-args=-v' \
-prom-env 'boot-device=cd:,\\:tbxi' \
-prom-env 'boot-command=dev /
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
boot' \
-netdev user,id=vlan0 \
-device sungem,netdev=vlan0 \
-usb \
-device usb-kbd \
-device usb-mouse \
-drive file="MacOSXDP1.img",\
format=raw,index=0,media=disk \
-drive file="macos_91_ppc.iso",\
format=raw,index=2,media=cdrom \
-drive file="DP1.iso",\
format=raw,index=3,media=cdrom \
-name "Mac OS X Developer Preview 1" \
-no-reboot
Because my VM doesn't have a big drive, the directory with ISOs is on my Windows host and shared with the Linux guest.

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

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by UbuntuXP »

It's been several months (maybe a year or two by now) since I first succeeded installing Mac OS X Developer Preview 1, so I've forgotten some details, but basically it boils down to manually preparing the disk you want to install Mac OS X DP1 on, and booting the Mac OS X Install CD with:

Code: Select all

boot cd:9,\\:tbxi
Wish I could be more help though.
"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
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by adespoton »

I also question using Kali as a platform for running Mac emulators. Kali is a locked-down security distro loaded with attack tools. I'ts been painstakingly configured for penetration testing from a secure platform.

If you want a VM to run emulators in, you'd do better with Mint or another lightweight windowing distro.
vlad557776
Tinkerer
Posts: 97
Joined: Thu May 30, 2019 7:06 am

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by vlad557776 »

Thanks, UbuntuXP, but I can't partition the disk because Mac OS 9 doesn't boot. I'm asking this because of that specific issue.

adespoton, okay, I'll go and install Mint.
vlad557776
Tinkerer
Posts: 97
Joined: Thu May 30, 2019 7:06 am

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by vlad557776 »

So, I just installed Mint and it still refuses to work. I think the problem is in the last prom-env, but I don't know how to fix it.
darthnvader
Mac Mechanic
Posts: 178
Joined: Sun Feb 07, 2016 4:40 pm

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by darthnvader »

You can't boot OS 9 with a g3beige target in Qemu.

You need to use the mac99 machine model to boot OS 9, I.E.

Code: Select all

qemu-system-ppc -M mac99
vlad557776
Tinkerer
Posts: 97
Joined: Thu May 30, 2019 7:06 am

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by vlad557776 »

Great! Now 9.1 boots. Not 9.2.2, but screw it.

I ran into another error - when I try to run "Install Mac OS X", it instantly crashes with a type 2 error.

How do I fix it?
darthnvader
Mac Mechanic
Posts: 178
Joined: Sun Feb 07, 2016 4:40 pm

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by darthnvader »

vlad557776 wrote:Great! Now 9.1 boots. Not 9.2.2, but screw it.

I ran into another error - when I try to run "Install Mac OS X", it instantly crashes with a type 2 error.

How do I fix it?
Are you trying to run "Install Mac OS X" from OS 9?

That's likely not going to work, we have no NVRAM in qemu-ppc, and the installer will try to reboot the system to the CD/DVD drive, but reboot doesn't work from OS 9.

If you want to install OS X, just boot from the OS X install CD/DVD or image:

Code: Select all

qemu-system-ppc -cdrom OSXINSTALL.img -boot d
vlad557776
Tinkerer
Posts: 97
Joined: Thu May 30, 2019 7:06 am

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by vlad557776 »

Thanks for trying to help me, but it WON'T work.

You see, the release I'm trying to install, DP1, boots into a Classic environment - version 8.6 - which isn't supported by QEMU.

I'll try booting off the DP1 partition, but the QEMU install guide tells me I have to run it until it fails and then reboot to the DP1's installer.

EDIT: So, I tried to boot into DP1's installer, but it just hangs at "Still waiting for root device"
User avatar
UbuntuXP
Tinkerer
Posts: 68
Joined: Sat Feb 08, 2014 8:15 pm

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by UbuntuXP »

To successfully install Mac OS X DP1, the disk must be partitioned just right or the install CD won't recognize it (I think the installer "tags" the partition it installs to somehow). I don't remember if I had to partition the disk in Mac OS 9 or Mac OS X, but here's the list of partitions from my Mac OS X DP1 disk for reference (it's a 4GB disk image):

Code: Select all

[macosxdp1-vm:~] root# pdisk /dev/rsd0h -dump
/dev/rsd0h  map block size=512
   #:                 type name                length   base    ( size )
   1:  Apple_partition_map Apple                   63 @ 1
   2:     Apple_Driver_ATA*Macintosh               54 @ 64
   3:     Apple_Driver_ATA*Macintosh               74 @ 118
   4:   Apple_Driver_IOKit Macintosh              512 @ 192
   5:        Apple_Patches Patch Partition        512 @ 704
   6:            Apple_HFS MOSX_OF3_Booter      16384 @ 1216    (  8.0M)
   7:         Apple_Loader SecondaryLoader       1024 @ 17600
   8:            Apple_UFS Mac OS X Dev. Preview 5/99 8267574 @ 18624   (  3.9G)
   9:            Apple_HFS untitled            102400 @ 8286198 ( 50.0M)
  10:           Apple_Free                          0+@ 8388598

Device block size=512, Number of Blocks=8388608
DeviceType=0x0, DeviceID=0x0
Drivers-
1: @ 64 for 21, type=0x701
2: @ 118 for 34, type=0xf8ff
P.S. To boot Mac OS X DP1, the machine must be set to g3beige and not mac99.
"Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."

Doug Gwyn
darthnvader
Mac Mechanic
Posts: 178
Joined: Sun Feb 07, 2016 4:40 pm

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by darthnvader »

vlad557776 wrote:Thanks for trying to help me, but it WON'T work.

You see, the release I'm trying to install, DP1, boots into a Classic environment - version 8.6 - which isn't supported by QEMU.

I'll try booting off the DP1 partition, but the QEMU install guide tells me I have to run it until it fails and then reboot to the DP1's installer.

EDIT: So, I tried to boot into DP1's installer, but it just hangs at "Still waiting for root device"
Never tried to boot DP1, if others have installed it, maybe they can offer some advice....

The "Still waiting for root device" means that the Kernel doesn't have proper drivers for the root install media. So if you are trying to boot from qemu's virtual CD/DVD drive, the issue is the kernel doesn't have proper drivers for our emulated CD/DVD drive.

Try with both -M g3beige or -M mac99, as DP1 may have better support for the g3beige target, and may have drivers for the CD/DVD drive.

Also, you could try and boot from the install image attached to the HD bus and see if the kernel has better support for that.

Code: Select all

qemu-system-ppc -hda OSXINSATLL.img -boot c
rscaboyke
Student Driver
Posts: 24
Joined: Thu May 10, 2007 7:54 am

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by rscaboyke »

with g3beige, I managed to boot rhapsodyserver 01 being extremely slow tough and it was on macosx high Sierra not linux ! by which I want to conclude that DP1 is newer than rapshodyserver, so wouldn't know why DP1 couldn't be installed. But indeed just classic 8.6 will give error that the drive is locked, so no ignition there.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by Cat_7 »

In Windows, this will get you to the point where the first installation finishes and the DP1 system can boot from HD. Note you have to enter the " PowerMac1,1" etc. info manually as the Windows command prompt will not parse the lines below correctly:
-prom-env 'boot-command=dev /
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
boot'

At step 3, the CD is then not found to continue the installation....

#Step 1: Boot Mac OS Server v1.2 iso: Format disk DP1.img to OSX server and start installation. Let it fail.
qemu-system-ppc-29052020.exe ^
-g 800x600x32 -M mac99,via=pmu-adb -m 128 -L pc-bios -sdl -boot d ^
-prom-env "auto-boot?=true" ^
-prom-env "boot-args=-v" ^
-drive file="C:\Mac-images\OSXServer1.2v3.iso",format=raw,index=0,media=cdrom ^
-drive file="C:\Mac-disks\DP1.img",format=raw,index=2,media=disk

#Shut down the machine.

#Step 2: Boot from DP1 cd.
qemu-system-ppc-29052020.exe ^
-g 800x600x32 -M g3beige -m 512M -cpu G3 -L pc-bios -sdl -boot d ^
-prom-env "auto-boot?=false" ^
-usb -device usb-kbd -device usb-mouse ^
-prom-env "boot-device=cd:9,\\:tbxi" ^
-drive file="C:\Mac-disks\DP1.img",format=raw,index=0,media=disk ^
-drive file="C:\Mac-images\DP1.iso",format=raw,index=2,media=cdrom

#At prompt, enter:
dev /
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
boot

#Wait for installer to finish with "Writing Open Firmware Info"

#Step 3: Boot from HD.
qemu-system-ppc-29052020.exe ^
-g 800x600x32 -M g3beige -m 512M -cpu G3 -L pc-bios -sdl -boot c ^
-prom-env "auto-boot?=false" ^
-prom-env "boot-args=-v" ^
-usb -device usb-kbd -device usb-mouse ^
-drive file="C:\Mac-disks\DP1.img",format=raw,index=0,media=disk ^
-drive file="C:\Mac-images\DP1.iso",format=raw,index=2,media=cdrom

#At prompt enter:
dev /
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
boot



This will boot from HD, but the installer will not find the CD to continue....

Perhaps someone has some idea about how to get DP1 to recognise the CD at the third step.
I had to redo all steps when the installation cannot finish to give it another go.

Best,
Cat_7
vlad557776
Tinkerer
Posts: 97
Joined: Thu May 30, 2019 7:06 am

Re: Unable to boot to Mac OS 9.1 under Kali Linux

Post by vlad557776 »

Okay, I managed to get to the exact same place. Guess I'll just buy a real old Mac and install it there. I'll try under Linux and WSL later, but rn I'm too lazy.
Post Reply