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 [2019/08/02 22:11] – [Qemu installation] cat_7ppc-osx-on-qemu-for-osx [2020/05/23 04:03] – [Networking] cat_7
Line 145: 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.
 +
 +=== Peer to peer networking between two Qemu instances ===
 +Qemu can use socket networking to connect two peers. The peers will have no internet access, but can exchange data between each-other. Set one guest to be a listener for network traffic:
 +
 +  *-device sungem,netdev=net1,mac=52:54:00:12:34:56 -netdev socket,id=net1,listen=:1234
 +
 +Set the other guest to connect to the listener:
 +
 +  *-device sungem,netdev=net1,mac=52:54:00:12:34:66 -netdev socket,id=net1,connect=127.0.0.1:1234
 +
 +For both instances, set the TCP/IP settings manually to a free ip address in your IP range and set the subnetmask to 255.255.255.0. No other settings have to be made. 
  
 === Getting files in and out of your emulated Mac through a network connection === === Getting files in and out of your emulated Mac through a network connection ===
Line 152: Line 163:
   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 ====