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/04/29 00:44] – [Qemu installation] cat_7 | ppc-osx-on-qemu-for-osx [2018/06/20 12:01] – [Qemu installation] cat_7 | ||
---|---|---|---|
Line 28: | Line 28: | ||
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 40: | Line 40: | ||
cd " | cd " | ||
qemu-system-ppc starts qemu with all the following as parameters: | qemu-system-ppc starts qemu with all the following as parameters: | ||
- | -L pc-bios points qemu to some required files, including openbios and the vga driver. \\ | + | -L pc-bios points qemu to some required files, including openbios-ppc and the vga driver |
-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 48: | ||
-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 59: | ||
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 ==== | ||
- | To boot the installed Mac OS, you need to edit the qemu.command file: Change the "-boot d" argument to "-boot c" | + | To boot the installed Mac OS, you need to edit the qemu.command file: \\ |
+ | |||
+ | * Change the "-boot d" argument to "-boot c" | ||
+ | * Reverse | ||
+ | |||
+ | So, when booting with "-boot c", make sure your hard disk image file is listed first. If you have no need for the cd rom disk to be available, you can remove the entry from the command line. Save the file. Double-click qemu.command and Mac OS will boot from the hard disk. \\ | ||
Done. | Done. | ||
Line 97: | Line 107: | ||
* -netdev user, | * -netdev user, | ||
- | === Bridging a tap device === | + | === Bridging a tap device |
For OSX Mountain Lion and above, supporting network bridging: install tuntaposx and add the first line to your qemu command line, run qemu with sudo, and execute the other lines in another terminal window: | For OSX Mountain Lion and above, supporting network bridging: install tuntaposx and add the first line to your qemu command line, run qemu with sudo, and execute the other lines in another terminal window: | ||
Line 107: | Line 117: | ||
* sudo ifconfig bridge0 addm tap0 | * sudo ifconfig bridge0 addm tap0 | ||
* sudo ifconfig bridge0 up | * sudo ifconfig bridge0 up | ||
+ | |||
+ | === Bridging a tap device: the easy way === | ||
+ | |||
+ | Create a network bridge in your OSX host network settings and add your network device to the bridge. Install tuntaposx. | ||
+ | |||
+ | Change the script with which you boot qemu: | ||
+ | * remove: -netdev user, | ||
+ | * add: -netdev tap, | ||
+ | |||
+ | Save the boot script and run it as root.\\ | ||
+ | If you want, you can leave the bridge intact after you quit Qemu, so it is already available next time you run Qemu with tap networking.\\ | ||
+ | |||
=== Running two qemu instances with networking=== | === Running two qemu instances with networking=== | ||
Line 115: | Line 137: | ||
and make sure you add a different mac address to the second instance: | and make sure you add a different mac address to the second instance: | ||
* -netdev user, | * -netdev user, | ||
- | Please note that adding a mac address 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 |
==== Creating new disk image in OSX with DiskUtility ==== | ==== Creating new disk image in OSX with DiskUtility ==== | ||
Line 148: | Line 170: | ||
You can download some of these experimental builds from our forum: http:// | You can download some of these experimental builds from our forum: http:// | ||
+ | |||
+ | |||
+ | ==== Various utilities ==== | ||
+ | |||
+ | === 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 \\ | ||
+ | |||
+ | #1G \\ | ||
+ | DISKSIZE_IN_BLOCKS=2097152 \\ | ||
+ | |||
+ | #2G \\ | ||
+ | # | ||
+ | |||
+ | #4G \\ | ||
+ | # | ||
+ | |||
+ | PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr $DISKSIZE_IN_BLOCKS - 512 - 16384 - 64` \\ | ||
+ | |||
+ | 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 " | ||
+ | |||
+ | \\ | ||
+ | |||