New System 7 setup on OSx Catalina

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

Here are the steps I took.

I duplicated the disk image:
  • $ cp -p MacOS81.img MacOS81_2.img
And assigned:
  • BasiliskII#1: disk MacOS81.img (in the file "~/config1")
    BasiliskII#2: disk MacOS81_2.img (in the file "~/config2")
Then boot:
  • BasiliskII#1: $ Basilisk.app/Contents/MacOS/BasiliskII --config ~/config1
    BasiliskII#2: $ Basilisk.app/Contents/MacOS/BasiliskII --config ~/config2
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

kanjitalk755 wrote:I tried dsumorok's 32-bit BasiliskII with the etherhelper.
Host: El Capitan (tuntaposx installed)
Guest: Mac OS 8.1

BasiliskII#1: ether etherhelper/tap0/bridge0/en0
BasiliskII#2: ether etherhelper/tap1/bridge0/en0

....

What should I do?
All good, I think you are nearly there!

The TAP devices can just be opened, if an application did already offer (a matching) port.
Here is my script for just one Basilisk, which need to be extended for 2 times ether helper version, 2 times TAP and matched to your environment:

Code: Select all

#!/bin/bash
sudo open -a /Users/MickeyMouse/LinuxAdmin/BasiliskII_32bit-etherhelper-SDL.app & sleep 10
sudo ifconfig bridge0 create
sudo ifconfig bridge0 addm en0
sudo ifconfig bridge0 up
sudo ifconfig bridge0 addm tap0


But the ether helper version has some code in, to count upwards the tab devices. - There could be a pitfall. - Please check Daniel's thoughts on TAP handling: https://github.com/dsumorok/macemu/wiki/OSX-Networking

As mentioned, you can just only do "sudo ifconfig bridge0 addm tap0", if the application(s) was already launched before.

Let me know how it works, as I am also excited! - Would try it myself, but this machine here is already catalinaed and I'm on the road for this week.

May the bits be with you!
User avatar
Cat_7
Expert User
Posts: 6121
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: New System 7 setup on OSx Catalina

Post by Cat_7 »

Hi,

Lets try to prevent confusion: The etherhelper versions do not need the script for creation of the bridge, activation of tap devices etc, they do that themselves after you give permission to run them. The only problem is that the second tap device does not get added to the bridge.

@Knuddlemac: I'm wondering what parameter you have after "ether" in the preferences file. If it is tap0 or tap1, you are not using the etherhelper.

Best,
cat_7
User avatar
Cat_7
Expert User
Posts: 6121
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: New System 7 setup on OSx Catalina

Post by Cat_7 »

Hi,

I guess that perhaps duplicating the disk image might be bad idea?
Are at least the machine names in the sharing setup different?

Best,
Cat_7
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

Cat_7 wrote:I guess that perhaps duplicating the disk image might be bad idea?
Are at least the machine names in the sharing setup different?
I forgot to write about it.
After duplicating, I set different Computer Name each other in File Sharing control panel and started sharing.

BTW, I found this thread.
https://www.emaculation.com/forum/viewt ... f=6&t=8822

I tried, but unfortunately I got same result (no server).
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

Hi Cat_7,
Cat_7 wrote: Lets try to prevent confusion: The etherhelper versions do not need the script for creation of the bridge, activation of tap devices etc, they do that themselves after you give permission to run them. The only problem is that the second tap device does not get added to the bridge.
Well, I can't confirm this or I have a prerelease version from Daniel installed. When I'll be back at my machine @home, I can check what version I am running. But the script is necessary. I know this 4 sure, because I was experimenting with that topic last Sunday and changing the script resulted in no login screen from the Apple share.

Anyway, so for Kanijtalk to test either this or that way could lead to success.
Cat_7 wrote:@Knuddlemac: I'm wondering what parameter you have after "ether" in the preferences file. If it is tap0 or tap1, you are not using the etherhelper.
That info I have surprisingly at hand:

Code: Select all

etherhelper/tap0/bridge0/en0
So in preferences, I replaced slirp with the statement above.
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

kanjitalk755 wrote:I tried, but unfortunately I got same result (no server).
What did you put in the BII Ethernet settings?
Could you ping the other host via TCP Ping on the same bridge?
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

When I checked with AGNetTools, both AppleTalk Addresses were the same.
After discarding one of the AppleTalk Preferences and restarting, each had a different address.
The server is now displayed in the Chooser and able to be mounted!
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

Great news, kommunication from one container to the other works!
Now I‘d assume each container could also select AppleTalk file shares in the local net.
More info can be found asking your favorrized search engine for e.g. ‚A2SERVER‘.

Now the trick would be, gettong your BIK emu extended to also support the AppleTak protocol and finding KEXTs.

How are chances for the first part, looking at Daniels sources?
User avatar
Cat_7
Expert User
Posts: 6121
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: New System 7 setup on OSx Catalina

Post by Cat_7 »

Daniel's helper depends on tuntaposx. The helper only facilitates creating the bridge and adding a tap device and ethernet connection to that bridge automatically so you don't have to run the script. That is why you have to enter your admin password when it starts.

The problem with finding kext that are notarized is that (I believe) Apple is moving (has already moved?) to no longer allowing such kexts to be loaded at all. I do have a kext that is notarized, but it will still not load...
The problem with the 64 bit versions of the etherhelper builds is also related to Apple's security measures: The error 9 they produce indicates a permissions problem as with the non-notarized 64-bit builds of Basilisk earlier. Only the 32 version "works" for now, but that will be history soon.

As said elsewhere in this thread:
https://www.emaculation.com/forum/viewt ... ick#p65038
Tunnelblick is capable of creating tap devices in Catalina that can be activated by Basilisk.
Those tap devices are created after Tunnelblick is started. A mostly empty (dummy) vpn profile is needed to start it. I haven't found a way to make the tap devices persistent over restarts, so Tunnelblick has to be started every time OSX is restarted. I can be closed, however, after the tap devices have been created.

Tunnelblick is open source, so perhaps the tap-creating part could be lifted from the source?

Best,
Cat_7
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

I have merged the etherhelper and confirmed working under El Capitan.
Build by Xcode and try.

https://github.com/kanjitalk755/macemu
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

EDIT:
DO NOT TRY FOLLOWING THINGS.
It was reported that Catalina would not boot.

----------
I succeeded AppleTalk test under Mojave(10.14.6) by installing notalized TAP kext.

How To:

Disable SIP.

Download Tunnelblick from:
https://tunnelblick.net

$ open ~/Downloads/Tunnelblick*.dmg
$ sudo cp -r /Volumes/Tunnelblick/Tunnelblick.app/Contents/Resources/tap-notarized.kext /Library/Extensions/tap-notarized.kext

Run at every boot:
$ sudo kextload -b net.tunnelblick.tap

Once successful, re-enable SIP.
Last edited by kanjitalk755 on Fri Mar 06, 2020 3:29 am, edited 1 time in total.
User avatar
adespoton
Forum All-Star
Posts: 4208
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: New System 7 setup on OSx Catalina

Post by adespoton »

So we should be able to create a launchdaemon config to do the

Code: Select all

sudo kextload -b net.tunnelblick.tap
bit -- but does SIP need to be disabled for kextloading to work?

Also, we should just be able to lift the notarized kext from tunnelblick and distribute it in a BII/SS-friendly package, shouldn't we? We can make an installer that drops the launchdaemon config if TunnelBlick doesn't exist already, even.
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

kanjitalk755 wrote:I have merged the etherhelper and confirmed working under El Capitan.
Build by Xcode and try.
https://github.com/kanjitalk755/macemu
Awesome, I must be close to paradise and can't wait to see it happen on my screen!
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

adespoton wrote:So we should be able to create a launchdaemon config to do the

Code: Select all

sudo kextload -b net.tunnelblick.tap
bit -- but does SIP need to be disabled for kextloading to work?

Also, we should just be able to lift the notarized kext from tunnelblick and distribute it in a BII/SS-friendly package, shouldn't we? We can make an installer that drops the launchdaemon config if TunnelBlick doesn't exist already, even.
Indeed, that would then be the BII deluxe version. - Last time I xchanged mail with the developer from Tunnelblick, notarization was still missing. - Later on Cat_7 was successful installing notarized KEXTs, but my attempt failed. Presumably because of the security mechanism.

I won't have the time this night and have to try the install tomorrow. 8:[

Thanks to Kanijatalk, for pushing us to the next level!
User avatar
KnuddlMac
Granny Smith
Posts: 123
Joined: Thu Apr 06, 2017 9:32 am
Location: Southern Bavaria

Re: New System 7 setup on OSx Catalina

Post by KnuddlMac »

kanjitalk755 wrote:I have merged the etherhelper and confirmed working under El Capitan.
Build by Xcode and try.

https://github.com/kanjitalk755/macemu
I'll be late for my appointment, but anyway...

I've tried a build and failed with:

Code: Select all

clang: error: no such file or directory: '/Users/MickeyMouse/Library/Developer/Xcode/DerivedData/BasiliskII-gbwiqbmiynilbmbiifcwzeuddcrg/Build/Products/Release/gencpu_output/defs68k.c'
clang: error: no input files
Could someone please provide me with a hint, how to fix the missing input file?
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

adespoton wrote:bit -- but does SIP need to be disabled for kextloading to work?
I noticed to be incomplete under Mojave.
I got the alert telling file sharing failure after re-enabling SIP.
But the file server is listed in Chooser and can be mounted.
KnuddlMac wrote:Could someone please provide me with a hint, how to fix the missing input file?
I don't know your development environment, but discard macemu directory and re-download from GitHub.
I executed that, built and ran successfully.
macOS10.14.6
Xcode11.3.1
RichCini
Inquisitive Elf
Posts: 38
Joined: Fri Feb 28, 2020 3:10 am

Re: New System 7 setup on OSx Catalina

Post by RichCini »

kanjitalk755 wrote:I succeeded AppleTalk test under Mojave(10.14.6) by installing notalized TAP kext.

How To:

Disable SIP.

Download Tunnelblick from:
https://tunnelblick.net

$ open ~/Downloads/Tunnelblick*.dmg
$ sudo cp -r /Volumes/Tunnelblick/Tunnelblick.app/Contents/Resources/tap-notarized.kext /Library/Extensions/tap-notarized.kext

Run at every boot:
$ sudo kextload -b net.tunnelblick.tap

Once successful, re-enable SIP.
I tried doing this with Catalina and it kind of worked, except on reboot I think it deleted the kext and now I get a frozen boot (stops at the login progress bar). Can’t start in safe mode either. Booting in recovery mode has other problems now, and I can’t reverse the kextload command (which is kextutil on Catalina). Yikes. What a mess.
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

Can you boot single user mode (command+S)?
RichCini
Inquisitive Elf
Posts: 38
Joined: Fri Feb 28, 2020 3:10 am

Re: New System 7 setup on OSx Catalina

Post by RichCini »

Right now I’m doing a system restore from the Catalina installer. Hopefully that will fix it.

It’s odd — on the first reboot the kext disappeared even though it was notarized and I authorized the install. It might be better to just install the full Tunnelblick app but don’t configure it. That way you can authorize it from the desktop.
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

I installed and tried Tunnelblick.app once, erased it, and installed only kext again.
That may not have caused the problem.
Because of the danger, it seems better not to try this method.
User avatar
Cat_7
Expert User
Posts: 6121
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: New System 7 setup on OSx Catalina

Post by Cat_7 »

Hi,

Tunnelblick provides uninstallers on their website, so use them to completely remove it.

I have no issue at all with SIP which has never been disabled in my Catalina installation from the start (in Virtualbox). I just load the kext from the /Library/Extensions folder, start Basilisk from inside the bundle and add the tap device to the bridge.

As I have a permanent bridge0 with en0 as member, I can run the current Basilisk build (so not the etherhelper enabled one) like this:

#!/bin/bash
sudo kextutil -b net.tunnelblick.tap
sudo /Users/hsp/BasiliskII/BasiliskII.app/Contents/MacOS/BasiliskII & sleep 5
sudo ifconfig bridge0 addm tap0

The new etherhelper-enabled Basilisk runs fine in Catalina, and of course the helper makes things easier:
Just run it after loading the tunnelblick kext.

Thanks!
Cat_7
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: New System 7 setup on OSx Catalina

Post by kanjitalk755 »

I have added the etherhelper to SheepShaver.
RichCini
Inquisitive Elf
Posts: 38
Joined: Fri Feb 28, 2020 3:10 am

Re: New System 7 setup on OSx Catalina

Post by RichCini »

Now that my system is back up, I decided to make a current build from kanjitalk755. Same issue with missing files. Using XCode 11.3.1 on Catalina 10.15.3. Need to dig into the missing files...the file referenced by the OP doesn't exist in the src folder.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: New System 7 setup on OSx Catalina

Post by Ronald P. Regensburg »

Do you encounter errors about missing files while building? I just built BasiliskII from kanjitalk755 source without issues using Xcode 11.3.1 on Catalina 10.15.3.
Post Reply