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/08/11 12:36] – [Qemu installation] cat_7ppc-osx-on-qemu-for-osx [2019/04/24 09:14] – [Qemu installation] 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 25: Line 25:
  
   * Open your favorite text editor and create a file called qemu.command in your qemu folder.   * Open your favorite text editor and create a file called qemu.command in your qemu folder.
-  * Paste the code below into the file (from qemu-system-ppc (4th line) on all text should be on one line!):+  * Paste the code below into the file:
  
   #!/bin/bash   #!/bin/bash
   cd "$(dirname "$0")"   cd "$(dirname "$0")"
      
-  qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 -prom-env 'auto-boot?=true' -prom-env  +  .\qemu-system-ppc -L pc-bios -boot d -M mac99,via=pmu -m 512 
-  'boot-args=-v' -prom-env 'vga-ndrv?=true' -drive file=MacOS9.2.iso,format=raw,media=cdrom -drive file=MacOS9.2.img,format=raw,media=disk -netdev user,id=network01 -device sungem,netdev=network01+  -prom-env 'auto-boot?=true' -prom-env 'boot-args=-v' -prom-env 'vga-ndrv?=true' 
 +  -drive file=MacOS9.2.iso,format=raw,media=cdrom 
 +  -drive file=MacOS9.2.img,format=raw,media=disk 
 +  -netdev user,id=network01 -device sungem,netdev=network01 
 +  -device VGA,edid=on \
  
   * Save qemu.command and make it executable:   * Save qemu.command and make it executable:
Line 41: Line 45:
 #!/bin/bash tells OSX this is a bash script\\ #!/bin/bash tells OSX this is a bash script\\
 cd "$(dirname "$0")" set the path for the executable to current folder\\ cd "$(dirname "$0")" set the path for the executable to current folder\\
-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-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.\\
Line 51: Line 55:
 -drive file=MacOS9.2.img,format=raw,media=disk defines the name, location, format, and type of a hard disk image file to be used\\ -drive file=MacOS9.2.img,format=raw,media=disk defines the name, location, format, and type of a hard disk image file to be used\\
 -netdev user,id=network01 -device sungem,netdev=network01 tells qemu to use the sungem network device on a qemu-internal DHCP server\\ -netdev user,id=network01 -device sungem,netdev=network01 tells qemu to use the sungem network device on a qemu-internal DHCP server\\
 +-device VGA,edid=on presents additional resolutions to choose from in the guest\\ 
  
 (*)The mac model entry accepts 3 options for the via parameter: \\ (*)The mac model entry accepts 3 options for the via parameter: \\
Line 101: Line 106:
 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 132: Line 137:
  
  
-=== 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 140: Line 145:
   * -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 ==== ==== Booting from a real CD ====
  
-To boot from a real, you need to insert the CD and unmount it using e.g., Diskutility. \\+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.\\ 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:\\ Example command line:\\
Line 152: Line 164:
  
  
-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:\\+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: If device /dev/disk5 is mounted on the desktop, unmount it first before using it in QEMU
Line 191: Line 203:
 ==== 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 208: Line 219:
  
 -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