いんくらyochさんの日記

興味あることの忘備録

Ubuntu20.04でqemuによるOSX SnowLeopardのインストール

昨日に続き今度はx86_64でSnowLeopardをインストールしてみた。
f:id:yoch:20220209192453j:plain
起動コマンド

qemu-system-x86_64 \
   -enable-kvm \
   -machine q35 \
   -m 2048 \
   -cpu Penryn \
   -usb \
   -device usb-kbd \
   -device usb-mouse \
   -smbios type=2 \
   -kernel chameleon_svn2783_boot \
   -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \
   -device ide-hd,bus=ide.2,drive=MacHDD \
   -drive id=MacHDD,if=none,file=snowLeopard.qcow2 \
   -device e1000-82545em,netdev=hub0port0,id=mac_vnet0 \
   -netdev user,id=hub0port0

構築には以下を追加して、ddコマンド(bs=2048)で抜き出したDVDのisoイメージをマウントしたらできた。

   -device ide-cd,bus=ide.0,drive=MacDVD \
   -drive id=MacDVD,if=none,snapshot=on,file=osxSLeopard.iso \

インストール先はqemu-imgで空のボリュームを作成し、インストーラ起動後ディスクユーティリティで初期化した。
PPCTigerより軽快に動作している。