Skip to content

Instantly share code, notes, and snippets.

@davidbalbert
Last active February 24, 2023 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidbalbert/ff6cfc53b14c9cd4c88713614276df62 to your computer and use it in GitHub Desktop.
Save davidbalbert/ff6cfc53b14c9cd4c88713614276df62 to your computer and use it in GitHub Desktop.
Install and run Mac OS X DP2 in QEMU
#!/bin/sh
# To create and format a 10 GB hard drive image
dd if=/dev/zero of=hd.img bs=1048576 count=10240
pdisk hd.img # `i` for initialize then `w` for write
# To boot from install CD, add:
# -drive file=dp2.iso,index=2,format=raw,media=cdrom \
# -prom-env 'boot-device=ide1:9,\\BootX' \
# Verbose mode:
# -prom-env 'boot-args=-v debug=0xffe kdp=2' \
# OpenFirmware prompt:
# -prom-env 'auto-boot?=false' \
qemu-system-ppc \
-m 512 \
-serial mon:stdio \
-drive file=hd.img,index=0,format=raw,media=disk \
-netdev user,id=net0 -device sungem,netdev=net0 \
-g 1024x768x32 \
@themacintoshnerd
Copy link

Screenshot 2023-02-20 at 7 30 57 PM

gives me a kernel panic

@davidbalbert
Copy link
Author

Huh, I haven't run this script in a long time. I might try again over weekend if I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment