如何在QEMU中安装Mac OS X Server 1.0

如何在QEMU中安装Mac OS X Server 1.0

十二月 07, 2025

0. 废话在前

Mac OS X Server 1.0(1999 年 3 月发布)是苹果第一次把 NeXT 的 OS 搬到自家 PowerPC 硬件上,底层内核是 Darwin 1.0,界面却是 Platinum 风格。因为只支持 G3/G4 且需要专用版 BootX,真机早就跑不动,QEMU 成了唯一还能“复活”它的方式。

1. 准备材料(全部公开可下载)

文件 用途 直链(不限速)
QEMU ≥ 8.0 虚拟机本体 https://www.qemu.org/download/
Mac OS X Server 1.0 Install CD 正式系统盘 MacOSXServer10.iso (MD5: 515b56ec11…)
Mac OS X Server 1.2v3 Install CD 仅借 Drive Setup 分区 osxsrv12v3_cd.iso (MD5: cc903a3eb9…)
BootX_custom.dmg 打过 OF 补丁的引导盘 https://github.com/steventroughtonsmith/BootX/releases/download/v1.0/BootX_custom.dmg

2. 造盘 & 分区(一次完成,终身受益)

1
2
# 创建 2 GB 虚拟盘,vmdk 兼容性最好
qemu-img create -f vmdk osxsrv10.vmdk 2G

用 Server 1.2v3 的 Live CD 启动一次,只为分区:

1
2
3
4
qemu-system-ppc -M mac99,via=pmu-adb -cpu g3 -m 256 \
-hda osxsrv10.vmdk \
-cdrom osxsrv12v3_cd.iso \
-boot d

进入桌面后:

  1. 打开「Mac OS X Server 1.2」→「Utilities」→「Drive Setup」
  2. 选中 QEMU 虚拟盘 → Erase → 格式选 Mac OS Server UFS(注意不是 HFS+)
  3. 桌面 → Mac OS X Server 1.2 → Install Mac OS X Server
    一路点到“选择目标磁盘”→ 选中刚才格式化的 UFS 分区 → Continue。
  4. 弹出红字 “fatal error” → 点击 Quit → 立刻 Shut Down 虚拟机(不要 让它修复或重试)

3. 安装 Server 1.0(分两阶段)

3.1 阶段一:把底座系统拷进硬盘

1
2
3
4
5
6
7
qemu-system-ppc -sdl -g 640x480x8 -M g3beige -cpu g3 \
-drive file=osxsrv10.vmdk,index=0,media=disk \
-drive file=MacOSXServer10.iso,index=1,media=cdrom \
-drive file=BootX_custom.dmg,index=2,media=disk,format=raw \
-prom-env "boot-device=ide2:2,\\BootX" \
-prom-env "boot-file=ide1:11,\\mach_kernel" \
-prom-env "boot-args=-v"
  • 出现安装界面 → 一路 Continue → 拷贝完成后 立即关机(不要让它重启进 GUI)。
  • 此时硬盘里已有 /usr /System /private 等目录,但还没 OOBE。

3.2 阶段二:从硬盘继续 OOBE

把 OpenFirmware 变量改成从硬盘引导:

1
2
3
4
5
6
7
qemu-system-ppc -sdl -g 640x480x8 -M g3beige -cpu g3 \
-drive file=osxsrv10.vmdk,index=0,media=disk \
-drive file=MacOSXServer10.iso,index=1,media=cdrom \
-drive file=BootX_custom.dmg,index=2,media=disk,format=raw \
-prom-env "boot-device=ide2:2,\\BootX" \
-prom-env "boot-file=ide0:10,\\mach_kernel" \
-prom-env "boot-args=-v"
  • 走完 OOBE(语言、时区、root 密码)
  • 第二次重启后进入 Darwin 1.0 登录界面 → 用 root 登录
  • 必现 IDE 报错:点 Ignore,窗口不会立刻消失,等 10 秒 自动关闭,属正常。

4. 截图 & 彩蛋

  • 登录后打开 /System/Library/CoreServices → 双击 About This Mac 就能看到 Darwin 1.0 字样,截一张做封面。
  • 想 24-bit 色深:把 -g 640x480x8 换成 -vnc :0,宿主机用 VNC Viewer 连 localhost:5900,窗口大小随意调。
  • 鼠标无缝:删 /System/Library/Extensions/ApplePS2Controller.kext,再挂 -usb -device usb-mouse,QEMU 2.x 以后支持。

5. 备份与回滚

阶段一拷完文件后,把 osxsrv10.vmdk 复制一份 osxsrv10_phase1_done.vmdk,后面玩崩了直接:

1
cp osxsrv10_phase1_done.vmdk osxsrv10.vmdk

即可秒回第一阶段,比重新安装快 10 倍。

6. 常见坑速查

现象 原因 解决
停在 Still waiting for root device 分区格式不是 UFS 重分,必须选 Mac OS Server UFS
安装界面花屏 色深太高 -g 640x480x8
登录后键盘无响应 ADB 与 PMU 冲突 -M g3beige 而不是 mac99
关机挂死 旧版 Mach 无 ACPI halt 或 QEMU 监视器 quit