Last active
February 24, 2023 22:03
-
-
Save davidbalbert/ff6cfc53b14c9cd4c88713614276df62 to your computer and use it in GitHub Desktop.
Install and run Mac OS X DP2 in QEMU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
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
gives me a kernel panic