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-windows [2018/02/17 03:12] – [Qemu installation] cat_7ppc-osx-on-qemu-for-windows [2018/06/20 12:01] – [Qemu installation] cat_7
Line 27: Line 27:
   * Paste the code below into the file (all on one line!):   * Paste the code below into the file (all on one line!):
  
-  qemu-system-ppc.exe -L pc-bios -boot d -m 512 -M mac99 -prom-env "auto-boot?=true" -prom-env  +  qemu-system-ppc.exe -L pc-bios -boot d -m 512 -M mac99,via=pmu -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 -device usb-mouse -device usb-kbd -sdl -netdev user,id=network01 -device sungem,netdev=network01 +  "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 -sdl -netdev user,id=network01 -device sungem,netdev=network01 
  
   * Save qemu.bat    * Save qemu.bat 
Line 37: Line 37:
 -L pc-bios defines the location of bios files to be used.\\ -L pc-bios defines the location of bios files to be used.\\
 -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,via=pmu defines the mac model used(*).\\
 -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 "auto-boot?=true" -prom-env "boot-args=-v" define boot parameters for openbios and Mac OSX. The “-v” makes the boot process verbose\\ -prom-env "auto-boot?=true" -prom-env "boot-args=-v" define boot parameters for openbios and Mac OSX. The “-v” makes the boot process verbose\\
Line 43: Line 43:
 -drive file=MacOS9.2.iso,format=raw,media=cdrom defines the name, location, format, and type of a cdrom (or dvd) image file to be used\\ -drive file=MacOS9.2.iso,format=raw,media=cdrom defines the name, location, format, and type of a cdrom (or dvd) 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\\ -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\\
--device usb-mouse -device usb-kbd make Qemu present a usb-mouse and keyboard to the emulated system\\ 
 -sdl instructs Qemu to use SDL for the graphical display\\ -sdl instructs Qemu to use SDL for the graphical display\\
 -netdev user,id=network01 -device sungem,netdev=network01  tell qemu to use the sungem network device on a qemu-internal DHCP server\\ -netdev user,id=network01 -device sungem,netdev=network01  tell qemu to use the sungem network device on a qemu-internal DHCP server\\
 +
 +(*)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-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) \\
  
   * Double-click qemu.bat. This starts Qemu and boots the MacOS9.2.iso installation CD image.   * Double-click qemu.bat. This starts Qemu and boots the MacOS9.2.iso installation CD image.
Line 95: Line 99:
 You need to install the OpenVPN tap driver, bridge it with your normal ethernet connection and use the following in the qemu command line: You need to install the OpenVPN tap driver, bridge it with your normal ethernet connection and use the following in the qemu command line:
  
-  * -device sungem,netdev=network01 -net tap,ifname=Ethernet (and replace "Ethernet" with the name of the tap device network connection)+  * -netdev tap,ifname=TapEthernet1,id=network01 -device sungem,netdev=network01 (and replace "TapEthernet1" with the name of the tap device network connection)
  
 === Running two qemu instances with networking=== === Running two qemu instances with networking===
Line 104: Line 108:
 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,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 then 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.\\ 
 + 
 +To allow two qemu instances to "see" eachother on the network, you can e.g. install a second tap device and bridge both tap devices with the default network connection. You must then also use different mac addresses for each connection: 
 + 
 +  * -netdev tap,ifname=TapEthernet1,id=network01 -device sungem,netdev=network01,mac=52:54:00:12:34:56 
 +  * -netdev tap,ifname=TapEthernet2,id=network01 -device sungem,netdev=network01,mac=52:54:00:12:34:66 
  
 ===== Advanced usage ====== ===== Advanced usage ======