Page 1 of 1

What's the recommended settings for Apple Silicon?

Posted: Tue Nov 12, 2024 8:42 pm
by sentient06
So, I had enough of QEMU's lack of clipboard support and the difficulty sharing files with the host (or even the shared directory messing with my data forks), so I've decided to use SheepShaver to intermediate the work with a few files, so I can use a secondary HD in both emulators.

Thing is, I never used SheepShaver on my current mac, which happens to be an Apple Silicon, M2.

First thing I've noticed.. that GUI for preference editing? Doesn't work. It won't open. I had to set this up manually.

Second problem.. I can't find an updated breakdown of all editing options to do it properly. So I'm relying on old files, the help text from the command line and all that. I remember that at some point SheepShaver distanced itself from the original build so much that a few options were invalid even in the command line. Is that still the case or has it been updated to reflect the existing parameters?

Now, it works. Then I think I read somewhere that we should disable JIT, but I don't recall where that was. Can someone confirm this?

The RAM size. I'm using 1GB, but I reckon Mac OS 9 can handle up to 1.5GB. What's the maximum memory SheepShaver can allocate?

What's the minimal preference file options one needs to get this working? I forgot. Perhaps just rom, drives, ram and.. anything else?

Thanks!

Re: What's the recommended settings for Apple Silicon?

Posted: Wed Nov 13, 2024 10:28 am
by Ronald P. Regensburg
When you do a new SheepShaver setup, follow our setup guide: https://www.emaculation.com/doku.php/sh ... os_x_setup
Download the latest builds/versions of SheepShaver and the SheepShaver folder.
The GUI should work fine, choose "Settings" from the SheepShaver menu.

Re: What's the recommended settings for Apple Silicon?

Posted: Wed Nov 13, 2024 2:02 pm
by sentient06
Ronald P. Regensburg wrote: Wed Nov 13, 2024 10:28 am When you do a new SheepShaver setup, follow our setup guide: https://www.emaculation.com/doku.php/sh ... os_x_setup
Download the latest builds/versions of SheepShaver and the SheepShaver folder.
The GUI should work fine, choose "Settings" from the SheepShaver menu.
That's a nice little feature. I wasn't familiar with it, thanks!

Still, I'd like to update my knowledge on the prefs file settings.

For example, here's a rather incomplete breakdown:

https://github.com/sentient06/Medusa/wi ... X-and-Unix

I know for example that "keycodes true" used to search for a system file that has disappeared a few years ago. I wonder if any other settings have become outdated since?

Another question:

I used to do this to start a VM with different prefs file:

Code: Select all

./SheepShaver.app/Contents/MacOS/SheepShaver ./SS.sheepvm
And SS.sheepvm in this example contains the preferences in a file called "prefs" and it contains a blank "nvram" file that is also generated.

I'm getting this error on SheepShaver v2.5:

Code: Select all

Using ./SS.sheepvm as vmdir.
No file at ./SS.sheepvm/prefs found.
Am I doing it wrong? Or did that change as well?

Re: What's the recommended settings for Apple Silicon?

Posted: Wed Nov 13, 2024 4:35 pm
by Ronald P. Regensburg
If you read the setup manual, you will find that "keycodes true" does not refer to a system file but to a keycodes file that is available in de SheepShaver folder, or that you can download separately. The file is needed if you use other than US-English languages on the host. Please first read documentation in the setup manual and in the download post.

SheepShaver will write all currently used items. The 'old' settings can be edited using SheepShaver Settings. Some settings can be ignored at setup in the version for OSX/macOS as they are not functional there (like audio devices and serial ports). Many new settings ("Advanced features") have been added that are not accessible in SheepShaver Settings and can only be edited manually if needed. See setup manual.

Re: What's the recommended settings for Apple Silicon?

Posted: Wed Nov 13, 2024 4:48 pm
by Ronald P. Regensburg
And your second question:

I never tried to open a .sheepvm VM this way. How did you create the prefs file? Are you sure the file name does not have an extension (like .txt)?

Re: What's the recommended settings for Apple Silicon?

Posted: Wed Nov 13, 2024 8:52 pm
by sentient06
Ronald P. Regensburg wrote: Wed Nov 13, 2024 4:48 pm And your second question:

I never tried to open a .sheepvm VM this way. How did you create the prefs file? Are you sure the file name does not have an extension (like .txt)?
I used the console and did "touch prefs", then I just added regular settings. I use absolute paths for the files. It works on my old mac, but it's an old build of SS, of course.

I've been playing with the console options, which are mostly the same keys prefixed with 2 dashes. Seems to work, although it does create the nvram file and prefs file on the home directory, but I can delete it in a script.

Is the documentation you're refering to in the wiki? I confess I only brushed through the Mac OS guide, I didn't find many manual settings there. I'll look again. Thanks Ronald.

Re: What's the recommended settings for Apple Silicon?

Posted: Wed Nov 13, 2024 11:46 pm
by adespoton
sentient06 wrote: Wed Nov 13, 2024 8:52 pm
Ronald P. Regensburg wrote: Wed Nov 13, 2024 4:48 pm And your second question:

I never tried to open a .sheepvm VM this way. How did you create the prefs file? Are you sure the file name does not have an extension (like .txt)?
I used the console and did "touch prefs", then I just added regular settings. I use absolute paths for the files. It works on my old mac, but it's an old build of SS, of course.

I've been playing with the console options, which are mostly the same keys prefixed with 2 dashes. Seems to work, although it does create the nvram file and prefs file on the home directory, but I can delete it in a script.

Is the documentation you're refering to in the wiki? I confess I only brushed through the Mac OS guide, I didn't find many manual settings there. I'll look again. Thanks Ronald.
For the first bit, it might be worth checking the following source files:
https://github.com/kanjitalk755/macemu/ ... s_unix.cpp
https://github.com/kanjitalk755/macemu/ ... troller.mm
-- this will give you the definitive settings list AND the names of the files where things are saved.

I had some issues 5 or so years back with doing the SheepShaver Sheep.sheepvm thing, and so I switched to doing open -a ./SheepShaver.app Sheep.sheepvm instead, which fixed the issue for me.

Re: What's the recommended settings for Apple Silicon?

Posted: Thu Nov 14, 2024 1:02 pm
by sentient06
adespoton wrote: Wed Nov 13, 2024 11:46 pm For the first bit, it might be worth checking the following source files:
https://github.com/kanjitalk755/macemu/ ... s_unix.cpp
https://github.com/kanjitalk755/macemu/ ... troller.mm
-- this will give you the definitive settings list AND the names of the files where things are saved.

I had some issues 5 or so years back with doing the SheepShaver Sheep.sheepvm thing, and so I switched to doing open -a ./SheepShaver.app Sheep.sheepvm instead, which fixed the issue for me.
Cool, thanks! I'll update my notes on these prefs list. I've noticed a few new ones I was not familiar with.

Since I kind of got into the whole "start QEMU from the console" thing, I've been doing that with SheepShaver as well. I'll just share my SS script here, it may be useful to someone.

I use Cryanc on port 8766 for SS and 8765 for QEMU, so I can run and shut them down separately. Using the same shared folder seem to erase most data forks somewhow, it's a bit annoying. So I parked a writable img file in the shared dir and I can write to it on SS to send files to QEMU. From QEMU to SS I can only send files via mounting a volume one at a time. I want to setup Apple Talk between both, but the SS docs only mention Snow Leopard and Lion settings. Is that still relevant on recent hosts?

Code: Select all

#!/bin/bash
cd "$(dirname "$0")"

c0="\033[0m"
c2="\033[38;5;46m"
c3="\033[38;5;226m"
c4="\033[38;5;214m"
c5="\033[38;5;196m"
c6="\033[38;5;93m"
c7="\033[38;5;32m"

echo -e "${c2}                _     ${c0}"
echo -e "${c2}             ,AM)     ${c0}"
echo -e "${c2}            ,MM\"      ${c0}"
echo -e "${c2}      _,,,_ '\`_.,,_   ${c0}   |   ▗▄▄▖▗▖ ▗▖▗▄▄▄▖▗▄▄▄▖▗▄▄▖  ▗▄▄▖▗▖ ▗▖ ▗▄▖ ▗▖  ▗▖▗▄▄▄▖▗▄▄▖ "
echo -e "${c2}    pMMMMMMMVMMMMMMp. ${c0}   |  ▐▌   ▐▌ ▐▌▐▌   ▐▌   ▐▌ ▐▌▐▌   ▐▌ ▐▌▐▌ ▐▌▐▌  ▐▌▐▌   ▐▌ ▐▌"
echo -e "${c3}   OMMMMMMMMMMMMMMF\`  ${c0}   |   ▝▀▚▖▐▛▀▜▌▐▛▀▀▘▐▛▀▀▘▐▛▀▘  ▝▀▚▖▐▛▀▜▌▐▛▀▜▌▐▌  ▐▌▐▛▀▀▘▐▛▀▚▖"
echo -e "${c3}  [WMMMMMMMMMMMMMP\`   ${c0}   |  ▗▄▄▞▘▐▌ ▐▌▐▙▄▄▖▐▙▄▄▖▐▌   ▗▄▄▞▘▐▌ ▐▌▐▌ ▐▌ ▝▚▞▘ ▐▙▄▄▖▐▌ ▐▌"
echo -e "${c4}  (WMMMMMMMMMMMMMK.   ${c0}   | "
echo -e "${c5}   VMMMMMMMMMMMMMMM.  ${c0}   |  V2.5 by Christian Bauer and Mar\"c\" Hellwig"
echo -e "${c5}   'WMMMMMMMMMMMMMMMW ${c0}   |  PowerPC CPU emulator by Gwenole Beauchesne"
echo -e "${c6}    'WMMMMWWWWMMMMMW  ${c0}   |  "
echo -e "${c7}      \"]j:DP~J@;;X\"   ${c0}"
echo -e $c0
echo -e "\n"

echo "- Starting Cryanc on port 8766."
micro_inetd 8766 /Users/myuser/Development/C/cryanc/carl -p &
BG_PID=$!  # Store the PID of the background process

echo "- Starting SheepShaver."
./SheepShaver.app/Contents/MacOS/SheepShaver \
--ramsize 1073741824 \
--rom "../ROM/UpdateOneRom.rom" \
--disk "../Discs/M86.img" \
--disk "../Discs/ClassicDev.img" \
--cdrom "../Discs/CodeWarrior Tools 6.0.toast" \
--extfs "../Shared" \
--ether "slirp" \
--screen "win/1728/1051" \
--frameskip 0 \
--gfxaccel true \
--keyboardtype 2 \
--dsp "/dev/dsp" \
--mixer "/dev/mixer" \
--title "SheepShaver Mac OS 8.6" \
>/dev/null 2>&1

echo "- SheepShaver process stopped."

echo "- Removing nvram file..."
rm ~/.sheepshaver_nvram

echo "- Removing prefs file..."
rm ~/.sheepshaver_prefs

# Kill the background process
kill $BG_PID
echo "- Cryanc process stopped."
echo "- Done."

Re: What's the recommended settings for Apple Silicon?

Posted: Fri Nov 15, 2024 5:39 pm
by adespoton
sentient06 wrote: Thu Nov 14, 2024 1:02 pm I want to setup Apple Talk between both, but the SS docs only mention Snow Leopard and Lion settings. Is that still relevant on recent hosts?
The method has changed a couple of times since then; I believe it had to change with El Capitan (which added the ability to map a tap device into a network group) and changed again with macOS 14 or so. I can't remember what the current method is; it's possible it involves EtherHelper on the SS side, not sure if that would work for QEMU. You definitely can't use the default SLIRP networking; if you're just wanting two emulators to talk to each other, I believe you can set up a virtual network group and toss some virtual NICs in there and bind them to the specific processes. But I haven't done any of that recently. In the past, WiFi network devices wouldn't work for AppleTalk, as the non-TCP packets get automatically dropped.

Re: What's the recommended settings for Apple Silicon?

Posted: Fri Nov 15, 2024 8:30 pm
by Cat_7
The tap instructions are not valid for current macOS versions, and I haven't tried the etherhelper in a long time.
However, if you are satisfied with AFP over TCP/IP the solution is not that difficult.

Add a line to sheepshaver prefs forwarding port 548 to the host:
redir tcp:548:10.0.2.15:548
Make sure file sharing is running and that enable file sharing over TCP/IP is checked
Run SheepShaver as root from inside the bundle.

Run Qemu, go to chooser and select Server IP address and enter the IP address of the host on which SheepShaver is running.

If you want to run a comparable setup from the qemu side you can either use the vmnet network option, which bridges all networking in Qemu to your host

-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0

or redirect ports to the host.

-device sungem,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::548-:548

In both cases you have to run Qemu as root.
See our guides!

Best,
Cat_7

Re: What's the recommended settings for Apple Silicon?

Posted: Fri Feb 28, 2025 10:15 pm
by celebi23
Cat_7 wrote: Fri Nov 15, 2024 8:30 pm The tap instructions are not valid for current macOS versions, and I haven't tried the etherhelper in a long time.
However, if you are satisfied with AFP over TCP/IP the solution is not that difficult.

Add a line to sheepshaver prefs forwarding port 548 to the host:
redir tcp:548:10.0.2.15:548
Make sure file sharing is running and that enable file sharing over TCP/IP is checked
Run SheepShaver as root from inside the bundle.

Run Qemu, go to chooser and select Server IP address and enter the IP address of the host on which SheepShaver is running.

If you want to run a comparable setup from the qemu side you can either use the vmnet network option, which bridges all networking in Qemu to your host

-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0

or redirect ports to the host.

-device sungem,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::548-:548

In both cases you have to run Qemu as root.
See our guides!

Best,
Cat_7
So, I've tried both if these solutions in SheepShaver, and Qemu. I can't connect to the internet with either application. Here's what I have for my Qemu launch script:

Code: Select all

sudo ./qemu-system-ppc \
-L pc-bios \
-cpu G4 \
-M mac99,via=pmu \
-m 980 \
-boot c \
-device VGA,edid=on,vgamem_mb=64 \
-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0 \
-drive file=Hotline.img,format=raw,media=disk \
-drive file=Files.img,format=raw,media=disk \
-g 1440x1050x32 \
-display cocoa \
-name "Hotline"
and my SheepShaver prefs file:

Code: Select all

disk MacintoshHD.dsk
disk Hotline.img
extfs Unix
screen win/1280/1024
windowmodes 0
screenmodes 0
seriala
serialb 
rom Mac OS ROM
bootdrive 0
bootdriver 0
ramsize 1073741824
frameskip 0
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv true
ignoreillegal true
jit true
jit68k false
keyboardtype 5
hardcursor false
hotkey 0
scale_nearest true
scale_integer false
cpuclock 0
yearofs 0
dayofs 0
mag_rate 1
swap_opt_cmd false
title Hotline
sound_buffer 0
name_encoding 0
init_grab false
ether slirp
keycodes true
keycodefile keycodes
mousewheelmode 1
mousewheellines 3
dsp /dev/dsp
mixer /dev/mixer
idlewait true
redir tcp:548:10.0.2.15:548
I've made sure that File Sharing is on and the TCP/IP box is checked as well. Both applications show my host's correct IP address, Subnet Mask & Router Address. Not sure what's going wrong here. I'm using the latest Experimental Qemu build and the latest SheepShaver build too. I'm not sure what I'm doing wrong here.

Re: What's the recommended settings for Apple Silicon?

Posted: Fri Feb 28, 2025 10:55 pm
by adespoton
celebi23 wrote: Fri Feb 28, 2025 10:15 pm
Cat_7 wrote: Fri Nov 15, 2024 8:30 pm The tap instructions are not valid for current macOS versions, and I haven't tried the etherhelper in a long time.
However, if you are satisfied with AFP over TCP/IP the solution is not that difficult.

Add a line to sheepshaver prefs forwarding port 548 to the host:
redir tcp:548:10.0.2.15:548
Make sure file sharing is running and that enable file sharing over TCP/IP is checked
Run SheepShaver as root from inside the bundle.

Run Qemu, go to chooser and select Server IP address and enter the IP address of the host on which SheepShaver is running.

If you want to run a comparable setup from the qemu side you can either use the vmnet network option, which bridges all networking in Qemu to your host

-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0

or redirect ports to the host.

-device sungem,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::548-:548

In both cases you have to run Qemu as root.
See our guides!

Best,
Cat_7
So, I've tried both if these solutions in SheepShaver, and Qemu. I can't connect to the internet with either application. Here's what I have for my Qemu launch script:

Code: Select all

sudo ./qemu-system-ppc \
-L pc-bios \
-cpu G4 \
-M mac99,via=pmu \
-m 980 \
-boot c \
-device VGA,edid=on,vgamem_mb=64 \
-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0 \
-drive file=Hotline.img,format=raw,media=disk \
-drive file=Files.img,format=raw,media=disk \
-g 1440x1050x32 \
-display cocoa \
-name "Hotline"
and my SheepShaver prefs file:

Code: Select all

disk MacintoshHD.dsk
disk Hotline.img
extfs Unix
screen win/1280/1024
windowmodes 0
screenmodes 0
seriala
serialb 
rom Mac OS ROM
bootdrive 0
bootdriver 0
ramsize 1073741824
frameskip 0
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv true
ignoreillegal true
jit true
jit68k false
keyboardtype 5
hardcursor false
hotkey 0
scale_nearest true
scale_integer false
cpuclock 0
yearofs 0
dayofs 0
mag_rate 1
swap_opt_cmd false
title Hotline
sound_buffer 0
name_encoding 0
init_grab false
ether slirp
keycodes true
keycodefile keycodes
mousewheelmode 1
mousewheellines 3
dsp /dev/dsp
mixer /dev/mixer
idlewait true
redir tcp:548:10.0.2.15:548
I've made sure that File Sharing is on and the TCP/IP box is checked as well. Both applications show my host's correct IP address, Subnet Mask & Router Address. Not sure what's going wrong here. I'm using the latest Experimental Qemu build and the latest SheepShaver build too. I'm not sure what I'm doing wrong here.
I think you may have missed a few things in your setup; "Both applications show my host's correct IP address" is a problem, as, internally, they should have their own unique IP addresses. These will either be on a distinct subnet if you're using SLIrP, or on your host subnet if you're tunneling or bridging.

Furthermore, if you're tunneling or bridging, you're going to need to run the app as root or it likely won't have access to the network device on the host.

See https://www.emaculation.com/doku.php/pp ... networking for setting up networking on QEMU and viewtopic.php?f=6&t=7782 for using SLIrP port forwarding in SheepShaver (don't need to run as root).

The "redir" command essentially works the same as NAT port forwarding (since that's what it is). The first port is the port on the host system, the second port is the mapped port on the guest system. redir tcp:548::548 should do the trick for letting port 548 on your host redirect to port 548 within SheepShaver IF port 548 isn't already in use on the host. If you have AFP enabled on your host system, SheepShaver can't bind to port 548 because it's already in use. You may also want to review https://en.wikipedia.org/wiki/Apple_Filing_Protocol as there are differences between how different AFP versions behave and what they can interact with.

If you want to go deeper into the weeds, https://supratim-sanyal.blogspot.com/20 ... -9-on.html has a good writeup on using VDE (ether vde on SheepShaver) -- BUT, this assumes you have VDE set up on your host system already. Both SheepShaver and QEMU support VDE, so if you've set it up on your host (eg, using brew install vde), you should be able to bind as many emulators to the same virtual network as you want. You'll probably want to explicitly set the MAC address for each virtual network card so they don't collide. There's also the issue of what you're bridging with VDE: you can bridge a bunch of emulated machines together, or you can bridge to the host. To bridge to the host, you probably want to use VDE in conjunction with vmnet. https://medium.com/@srinivasjay/running ... 59b7cca77c is about running docker images, but the network bridging setup on the host applies to QEMU and SheepShaver (and BII) just as well. Anything that can use VDE or vmnet can use a VDE VMNet bridge once it's set up.

Alternatively, if you want to do bridging on QEMU, https://www.sobyte.net/post/2022-10/mac-qemu-bridge/ might be useful.

Re: What's the recommended settings for Apple Silicon?

Posted: Fri Feb 28, 2025 11:30 pm
by celebi23
adespoton wrote: Fri Feb 28, 2025 10:55 pm
celebi23 wrote: Fri Feb 28, 2025 10:15 pm
Cat_7 wrote: Fri Nov 15, 2024 8:30 pm The tap instructions are not valid for current macOS versions, and I haven't tried the etherhelper in a long time.
However, if you are satisfied with AFP over TCP/IP the solution is not that difficult.

Add a line to sheepshaver prefs forwarding port 548 to the host:
redir tcp:548:10.0.2.15:548
Make sure file sharing is running and that enable file sharing over TCP/IP is checked
Run SheepShaver as root from inside the bundle.

Run Qemu, go to chooser and select Server IP address and enter the IP address of the host on which SheepShaver is running.

If you want to run a comparable setup from the qemu side you can either use the vmnet network option, which bridges all networking in Qemu to your host

-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0

or redirect ports to the host.

-device sungem,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::548-:548

In both cases you have to run Qemu as root.
See our guides!

Best,
Cat_7
So, I've tried both if these solutions in SheepShaver, and Qemu. I can't connect to the internet with either application. Here's what I have for my Qemu launch script:

Code: Select all

sudo ./qemu-system-ppc \
-L pc-bios \
-cpu G4 \
-M mac99,via=pmu \
-m 980 \
-boot c \
-device VGA,edid=on,vgamem_mb=64 \
-device sungem,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0 \
-drive file=Hotline.img,format=raw,media=disk \
-drive file=Files.img,format=raw,media=disk \
-g 1440x1050x32 \
-display cocoa \
-name "Hotline"
and my SheepShaver prefs file:

Code: Select all

disk MacintoshHD.dsk
disk Hotline.img
extfs Unix
screen win/1280/1024
windowmodes 0
screenmodes 0
seriala
serialb 
rom Mac OS ROM
bootdrive 0
bootdriver 0
ramsize 1073741824
frameskip 0
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv true
ignoreillegal true
jit true
jit68k false
keyboardtype 5
hardcursor false
hotkey 0
scale_nearest true
scale_integer false
cpuclock 0
yearofs 0
dayofs 0
mag_rate 1
swap_opt_cmd false
title Hotline
sound_buffer 0
name_encoding 0
init_grab false
ether slirp
keycodes true
keycodefile keycodes
mousewheelmode 1
mousewheellines 3
dsp /dev/dsp
mixer /dev/mixer
idlewait true
redir tcp:548:10.0.2.15:548
I've made sure that File Sharing is on and the TCP/IP box is checked as well. Both applications show my host's correct IP address, Subnet Mask & Router Address. Not sure what's going wrong here. I'm using the latest Experimental Qemu build and the latest SheepShaver build too. I'm not sure what I'm doing wrong here.
I think you may have missed a few things in your setup; "Both applications show my host's correct IP address" is a problem, as, internally, they should have their own unique IP addresses. These will either be on a distinct subnet if you're using SLIrP, or on your host subnet if you're tunneling or bridging.

Furthermore, if you're tunneling or bridging, you're going to need to run the app as root or it likely won't have access to the network device on the host.

See https://www.emaculation.com/doku.php/pp ... networking for setting up networking on QEMU and viewtopic.php?f=6&t=7782 for using SLIrP port forwarding in SheepShaver (don't need to run as root).

The "redir" command essentially works the same as NAT port forwarding (since that's what it is). The first port is the port on the host system, the second port is the mapped port on the guest system. redir tcp:548::548 should do the trick for letting port 548 on your host redirect to port 548 within SheepShaver IF port 548 isn't already in use on the host. If you have AFP enabled on your host system, SheepShaver can't bind to port 548 because it's already in use. You may also want to review https://en.wikipedia.org/wiki/Apple_Filing_Protocol as there are differences between how different AFP versions behave and what they can interact with.
The thing is, I'm trying to set up a Hotline Server and need a normal IP address for that, not a local 10.0.x.x kind. That's why I'm trying to go through all of this trouble :lol: I ran both as root before. I changed one small part of my Qemu command:

Code: Select all

sudo ./qemu-system-ppc \
-L pc-bios \
-cpu G4 \
-M mac99,via=pmu \
-m 940 \
-boot c \
-device VGA,edid=on,vgamem_mb=64 \
-netdev vmnet-bridged,id=network01,ifname=en0 \
-device sungem,netdev=network01 \
-drive file=MacintoshHD.img,format=raw,media=disk \
-drive file=Hotline.img,format=raw,media=disk \
-drive file=Files.img,format=raw,media=disk \
-g 1440x1050x32 \
-display cocoa \
-name "Hotline"
I do now see a different IP address but, I still cannot connect to the internet. I also made sure to turn File Sharing off on the host machine but, SheepShaver is still showing the host's IP address and also cannot connect to the internet. Wait, do I need an ethernet connection for this to work or can I do it while connected to WiFi?

Re: What's the recommended settings for Apple Silicon?

Posted: Sat Mar 01, 2025 12:28 am
by adespoton
If you're setting up a hotline server, I'd recommend using QEMU, as SheepShaver is known to lock up after running for a while.

Hotline Server will need ports 5500 and 5501 connectable. Since you're going the bridging route, your guest OS should be assigned its own unique IP on your LAN, and have those ports available.

You've changed your QEMU config to vmnet-bridged. But what are you bridging it TO? With what you listed, it's bridging to en0. Is en0 the name of your active WiFi device in the host?

As far as WiFi vs Ethernet goes -- DDP (AppleTalk networking) isn't supported by WiFi routers unless it is encapsulated in some other protocol such as UDP. WiFi supports TCP, UDP and ICMP (and a few other protocols that don't have to do with moving application data). Since the stuff you're trying to do is on TCP, it should work fine over WiFi.

Once you've verified that all of that is working from another device on your LAN, you'll need to port forward 5500 and 5501 on your router in order for them to be visible on the Internet. You'll want to forward to the IP address that your guest OS shows up as on your LAN.

I've got that same configuration set up, and it works for me.

When you say "I still cannot connect to the Internet", how are you measuring this? Remember that even running Classilla is unlikely to work with most websites these days, but you should be able to ping google.com or connect to a known Hotline server IP address.

Re: What's the recommended settings for Apple Silicon?

Posted: Sat Mar 01, 2025 2:06 am
by celebi23
Gotcha, will go with Qemu then. Yeah, I've confirmed that it is en0.

Sorry, let me be clearer. I can't connect to the internet from with Mac OS 9, in Qemu if I have the bridge set up via the command line option. If I try and connect via Hotline Connect, for instance, it errors out when trying to load a tracker:
Image

And I know my internet connection for the host MacBook Pro is working as I can connect to the same tracker via the Hotline app.

If I try to connect to a specific server, by entering the server address manually, I see this:
Image

It does look like it's trying to bridge the connection because I see this in IE:
Image
It's the correct host's IP address.

But, IE errors out when even trying to connect to Google:
Image

In the TCP/IP control panel, it does list a different IP address, the correct Subnet Mask and Router Address:
Image.

I've tried setting up the port forwarding with my Xfinity router but, I still have not internet connection within the MacOS 9.2.2 guest os. I feel like I'm missing something super obvious but, I'm not sure what is causing this :???:

I'm running these commands to launch Qemu:

Code: Select all

sudo ./qemu-system-ppc \
-L pc-bios \
-cpu G4 \
-M mac99,via=pmu \
-m 940 \
-boot c \
-device VGA,edid=on,vgamem_mb=64 \
-netdev vmnet-bridged,id=network01,ifname=en0 \
-device sungem,netdev=network01 \
-drive file=MacintoshHD.img,format=raw,media=disk \
-drive file=Hotline.img,format=raw,media=disk \
-drive file=Files.img,format=raw,media=disk \
-g 1440x1050x32 \
-display cocoa \
-name "Hotline"
am I missing something here? :???:

Re: What's the recommended settings for Apple Silicon?

Posted: Sun Mar 02, 2025 10:41 pm
by adespoton
Best to continue this in your QEMU thread; I think we've established that SheepShaver isn't the best solution for what you're trying to do.