Emaculation.com

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
ppc-osx-on-qemu-for-osx [2018/07/22 11:30] – [Creating new disk image in OSX with DiskUtility] cat_7ppc-osx-on-qemu-for-osx [2019/01/03 01:16] – [Installing Qemu system ppc for OSX] cat_7
Line 1: Line 1:
-===== Qemu for OSX =====+===== Qemu PPC for OSX =====
  
-==== Installing Qemu for OSX ====+==== Installing Qemu system ppc for OSX ====
  
-Qemu can run PPC Mac OS 9.0, 9.1, 9.2 and PPC OSX 10.0, 10.1, 10.2, 10.3, 10.4 and 10.5+This guide covers installing and running qemu-system-ppc with Mac OS and OSX PPC guests on OSX hosts. Qemu-system-ppc can run PPC Mac OS 9.0 to 9.2 and PPC OSX 10.0 to 10.5
 ==== Requirements ==== ==== Requirements ====
   * Qemu program \\   * Qemu program \\
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 51: Line 53:
  
 (*)The mac model entry accepts 3 options for the via parameter: \\ (*)The mac model entry accepts 3 options for the via parameter: \\
-mac99,via=pmu (this is default, supporting usb mouse and keyboard)\\+mac99,via=pmu (this option supports usb mouse and keyboard)\\
 mac99,via=pmu-adb (this allows some older Mac OS/Mac OS server builds to use a keyboard and mouse through the adb bus)\\ mac99,via=pmu-adb (this allows some older Mac OS/Mac OS server builds to use a keyboard and mouse through the adb bus)\\
-mac99,via=cuda (this allow use of the older, now less supported cuda) \\+mac99,via=cuda (this is the default setting, allowing the use of the older, now less supported cuda) \\
  
   * 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 99: Line 101:
 However, you can also use the realtek 8139 device. This requires installation of the appropriate drivers. You can download them from the [[http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=6&Level=5&Conn=4&DownTypeID=3&GetDown=false|Realtek site]], or all drivers in one iso from [[http://www.open.ou.nl/hsp/downloads3/MacOSRealtekDrivers.zip |here]] \\ However, you can also use the realtek 8139 device. This requires installation of the appropriate drivers. You can download them from the [[http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=6&Level=5&Conn=4&DownTypeID=3&GetDown=false|Realtek site]], or all drivers in one iso from [[http://www.open.ou.nl/hsp/downloads3/MacOSRealtekDrivers.zip |here]] \\
    
-There are two ways to get networking going in OSX: through slirp or tap networking+There are two ways to get networking going in OSX: through slirp or tap networking:
  
 === Slirp-based networking === === Slirp-based networking ===
Line 130: Line 132:
  
  
-=== Running two qemu instances with networking===+=== Running two qemu instances with networking ===
  
 If you want to run two installations of Mac OS/OSX, Qemu needs to be able to tell the network devices apart. You can add a mac address to the networking device: If you want to run two installations of Mac OS/OSX, Qemu needs to be able to tell the network devices apart. You can add a mac address to the networking device:
Line 138: Line 140:
   * -netdev user,id=network01 -device sungem,netdev=network01,mac=52:54:00:12:34:66   * -netdev user,id=network01 -device sungem,netdev=network01,mac=52:54:00:12:34:66
 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.
 +
 +=== Getting files in and out of your emulated Mac through a network connection ===
 +
 +OSX 10.3/10.4 guests: Make sure you have file sharing enabled on your host and that you share some folder. Find the current IP address of your host: open the system report and click Networking. The IP address should show behind the active network connection. \\
 +Start Qemu, click Go/Connect to server. Enter 
 +  afp://ip-address-of-your-host. 
 +At Connect as select Registered user and enter your user name and password for your host. Then select a shared folder from the list and click OK. You can now read and write files to the shared folder that appeared on your desktop.\\
 +
 +==== Booting from a real CD ====
 +
 +To boot from a real CD, you first need to insert the CD and unmount it using e.g., Diskutility. \\
 +Next, run Qemu as root. So add sudo in front of ./qemu-system-ppc and set -cdrom /dev/cdrom in your command file.\\
 +Example command line:\\
 +
 +  #!/bin/bash
 +  cd "$(dirname "$0")"
 +  sudo ./qemu-system-ppc -L pc-bios -M mac99 -m 512 -boot d -prom-env 'auto-boot?=true' -prom-env 'boot-args=-v' -prom-env 'vga-ndrv?=true' -cdrom /dev/cdrom -netdev user,id=network01 -device sungem,netdev=network01
 +
 +
 +If the CD was not unmounted correctly, Qemu tells you the commands you need to enter (in e.g., another terminal window) to unmount the CD. For example:\\
 +
 +  qemu-system-ppc: -cdrom /dev/cdrom: If device /dev/disk5 is mounted on the desktop, unmount it first before using it in QEMU
 +  qemu-system-ppc: -cdrom /dev/cdrom: Command to unmount device: diskutil unmountDisk /dev/disk5
 +  qemu-system-ppc: -cdrom /dev/cdrom: Command to mount device: diskutil mountDisk /dev/disk5
 + 
 +
 +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 163: Line 193:
 Type “info block” to find the name of the CD drive in Qemu (most likely: ide1-cd0) \\ Type “info block” to find the name of the CD drive in Qemu (most likely: ide1-cd0) \\
 Type “eject ide1-cd0” \\ Type “eject ide1-cd0” \\
-Type “change ide1-cd0 Driveletter:/path/name-of-cd-image.iso” (note the forward slashes!) \\+Type “change ide1-cd0 /path/to/name-of-cd-image.iso” (note the forward slashes!) \\
 Close the Qemu Monitor by selecting View/VGA \\ Close the Qemu Monitor by selecting View/VGA \\
  
 ==== Mounting a real cd ==== ==== 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. \\ NOTE: you need to unmount the real cd from the desktop (using e.g., disk utility) before using it in Qemu. \\
  
Line 185: Line 214:
  
 -Sound support\\ -Sound support\\
--Support for a PMU (power management unit)\\ 
  
 You can download some of these experimental builds from our forum: http://www.emaculation.com/forum/viewtopic.php?f=34&t=8848&p=52102#p52102 You can download some of these experimental builds from our forum: http://www.emaculation.com/forum/viewtopic.php?f=34&t=8848&p=52102#p52102