Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ppc-osx-on-qemu-for-osx [2018/05/20 00:13] – [Currently known issues] cat_7 | ppc-osx-on-qemu-for-osx [2018/08/11 12:36] – [Qemu installation] cat_7 | ||
---|---|---|---|
Line 13: | Line 13: | ||
Installations of other versions of Mac OS or OSX (roughly) follow the same path. \\ | Installations of other versions of Mac OS or OSX (roughly) follow the same path. \\ | ||
+ | |||
+ | If you need to boot from a real CD, see the section Booting from a real CD below. \\ | ||
==== Qemu installation ==== | ==== Qemu installation ==== | ||
Line 28: | Line 30: | ||
cd " | cd " | ||
| | ||
- | qemu-system-ppc -L pc-bios -boot d -M mac99 -m 512 -prom-env ' | + | qemu-system-ppc -L pc-bios -boot d -M mac99, |
- | ' | + | ' |
* Save qemu.command and make it executable: | * Save qemu.command and make it executable: | ||
Line 42: | Line 44: | ||
-L pc-bios points qemu to some required files, including openbios-ppc and the vga driver qemu_vga.ndrv. \\ | -L pc-bios points qemu to some required files, including openbios-ppc and the vga driver qemu_vga.ndrv. \\ | ||
-boot d defines to boot from a drive entry marked as a cdrom, “-boot c” would define to boot from a drive entry marked as disk.\\ | -boot d defines to boot from a drive entry marked as a cdrom, “-boot c” would define to boot from a drive entry marked as disk.\\ | ||
- | -M mac99 defines the mac model used.\\ | + | -M mac99, |
-m 512 defines the amount of memory (in Mb) for OS9/OSX.\\ | -m 512 defines the amount of memory (in Mb) for OS9/OSX.\\ | ||
-prom-env ' | -prom-env ' | ||
Line 48: | Line 50: | ||
-drive file=MacOS9.2.iso, | -drive file=MacOS9.2.iso, | ||
-drive file=MacOS9.2.img, | -drive file=MacOS9.2.img, | ||
- | -device usb-mouse and -device usb-kbd make Qemu present an usb mouse and usb keyboard to the emulated system\\ | ||
-netdev user, | -netdev user, | ||
+ | |||
+ | (*)The mac model entry accepts 3 options for the via parameter: \\ | ||
+ | mac99, | ||
+ | mac99, | ||
+ | mac99, | ||
* Double-click qemu.command. This starts Qemu and boots the MacOS9.2.iso installation CD image. | * Double-click qemu.command. This starts Qemu and boots the MacOS9.2.iso installation CD image. | ||
Line 55: | Line 61: | ||
To install Mac OS, you first need to partition the hard disk, so after you booted from the CD go into the " | To install Mac OS, you first need to partition the hard disk, so after you booted from the CD go into the " | ||
- | You can then start the installation of Mac OS. Shut down Mac OS after the installation has finished. | + | You can then start the installation of Mac OS. Shut down Mac OS after the installation has finished.\\ |
+ | Please note that the initialization step has to be repeated for any NEW disk added to Mac OS. | ||
==== Booting the installed Mac OS ==== | ==== Booting the installed Mac OS ==== | ||
Line 133: | Line 140: | ||
* -netdev user, | * -netdev user, | ||
Please note that adding a mac address other than the default to the network device leads to the discovery of a new network card in OSX. You need to configure that card through the network preferences. | Please note that adding a mac address other than the default to the network device leads to the discovery of a new network card in OSX. You need to configure that card through the network preferences. | ||
+ | |||
+ | ==== Booting from a real CD ==== | ||
+ | |||
+ | To boot from a real, you need to insert the CD and unmount it using e.g., Diskutility. \\ | ||
+ | Next, run Qemu as root. So add sudo in front of ./ | ||
+ | Example command line:\\ | ||
+ | |||
+ | #!/bin/bash | ||
+ | cd " | ||
+ | sudo ./ | ||
+ | |||
+ | |||
+ | If the CD is not unmounted correctly, Qemu will tell you the commands you need to enter (in e.g., another terminal window) to unmount the CD. For example:\\ | ||
+ | |||
+ | qemu-system-ppc: | ||
+ | qemu-system-ppc: | ||
+ | qemu-system-ppc: | ||
+ | |||
+ | |||
+ | The CD might stay unmounted after you stop Qemu. You can use diskutility to mount it again and eject it. Or use the terminal command Qemu suggests for mounting the CD. \\ | ||
+ | |||
==== Creating new disk image in OSX with DiskUtility ==== | ==== Creating new disk image in OSX with DiskUtility ==== | ||
Line 151: | Line 179: | ||
+ | ==== Changing the mounted cdrom image ==== | ||
+ | In Mac OS guest: First drag any mounted CD from the desktop into the trash. | ||
+ | |||
+ | Open the Qemu Monitor by selecting View/Compat monitor from the Qemu menu \\ | ||
+ | Type “info block” to find the name of the CD drive in Qemu (most likely: ide1-cd0) \\ | ||
+ | Type “eject ide1-cd0” \\ | ||
+ | Type “change ide1-cd0 / | ||
+ | Close the Qemu Monitor by selecting View/VGA \\ | ||
+ | |||
+ | ==== Mounting a real cd ==== | ||
+ | |||
+ | NOTE: you cannot mount Mac formatted CD's, but other formats work \\ | ||
+ | NOTE: you need to unmount the real cd from the desktop (using e.g., disk utility) before using it in Qemu. \\ | ||
+ | |||
+ | Open the Qemu Monitor by selecting View/Compat monitor from the Qemu menu \\ | ||
+ | Type “info block” to find the name of the CD drive in Qemu (most likely: ide1-cd0) \\ | ||
+ | Type “change ide1-cd0 / | ||
+ | Close the Qemu Monitor by selecting View/VGA from the Qemu menu \\ | ||
Line 169: | Line 215: | ||
==== Various utilities ==== | ==== Various utilities ==== | ||
- | Script to prepare a hard disk for use with Server 1.23 or Developer preview 2: | + | === Script to prepare a hard disk image for use with OSX Server 1.2v3 or Developer preview 2. === |
+ | |||
+ | * Remove the # in front of the desired disksize:\\ | ||
+ | |||
+ | #!/bin/sh \\ | ||
- | # | + | TARGET_IMAGE=Mac_OS_X_Server_1.0-4G.img \\ |
- | TARGET_IMAGE=Mac_OS_X_Server_1.0-4G.img | + | #1G \\ |
+ | DISKSIZE_IN_BLOCKS=2097152 \\ | ||
- | #1G \ | + | #2G \\ |
- | DISKSIZE_IN_BLOCKS=2097152 | + | #DISKSIZE_IN_BLOCKS=4194304\\ |
- | #2G \ | + | #4G \\ |
- | # | + | # |
- | #4G \ | + | PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr $DISKSIZE_IN_BLOCKS - 512 - 16384 - 64` \\ |
- | # | + | |
- | PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr | + | echo $PRIMARY_PARTITIONSIZE_IN_BLOCKS \\ |
- | echo $PRIMARY_PARTITIONSIZE_IN_BLOCKS \ | + | pdisk $TARGET_IMAGE -initialize \\ |
+ | pdisk $TARGET_IMAGE -createPartition MOSX_OF3_Booter Apple_HFS 64 16384 \\ | ||
+ | pdisk $TARGET_IMAGE -createPartition SecondaryLoader Apple_Loader 16448 512 \\ | ||
+ | pdisk $TARGET_IMAGE -createPartition " | ||
- | pdisk $TARGET_IMAGE -initialize | + | \\ |
- | pdisk $TARGET_IMAGE -createPartition MOSX_OF3_Booter Apple_HFS 64 16384 \ | + | |
- | pdisk $TARGET_IMAGE -createPartition SecondaryLoader Apple_Loader 16448 512 \ | + | |
- | pdisk $TARGET_IMAGE -createPartition " | + | |