Emaculation.com
 

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ppc-osx-on-qemu-for-osx [2019/03/01 03:05]
cat_7 [Qemu installation]
ppc-osx-on-qemu-for-osx [2019/09/16 23:31] (current)
cat_7 [Networking]
Line 30: Line 30:
   cd "​$(dirname "​$0"​)"​   cd "​$(dirname "​$0"​)"​
   ​   ​
-  qemu-system-ppc -L pc-bios -boot d -M mac99,​via=pmu -m 512 \+  ​./qemu-system-ppc -L pc-bios -boot d -M mac99,​via=pmu -m 512 \
   -prom-env '​auto-boot?​=true'​ -prom-env '​boot-args=-v'​ -prom-env '​vga-ndrv?​=true'​ \   -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.iso,​format=raw,​media=cdrom \
   -drive file=MacOS9.2.img,​format=raw,​media=disk \   -drive file=MacOS9.2.img,​format=raw,​media=disk \
   -netdev user,​id=network01 -device sungem,​netdev=network01 \   -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 44: 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 54: 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 150: Line 152:
   afp://​ip-address-of-your-host. ​   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.\\ 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.\\
 +
 +=== Forwarding ports to the host ===
 +You can provide services running on the guest to the host by forwarding ports to the host. To provide access to a webserver running in the guest you can use: \\
 +
 +  * -netdev user,​id=network01,​hostfwd=tcp::​80-:​80
 +
 +The webserver running on the guest is then accessible through e.g., http://​localhost or http://​name-or-ip-adress-of-machine from other machines running on your network.
  
 ==== Booting from a real CD ==== ==== Booting from a real CD ====
Line 198: Line 207:
 Type “change ide1-cd0 /​path/​to/​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 \\
 +
 +Also see the qemu documentation here: https://​www.linux-kvm.org/​page/​Change_cdrom \\
  
 ==== Mounting a real cd ==== ==== Mounting a real cd ====
ppc-osx-on-qemu-for-osx.1551438312.txt.gz · Last modified: 2019/03/01 03:05 by cat_7
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki