Login  •  Register


The time is now: Sun Mar 29, 2020 2:13 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 3 of 5 [ 110 posts ]    Go to page Previous  1, 2, 3, 4, 5  Next
Print view Previous topic  |  Next topic
Author Message
PostPosted: Wed Mar 04, 2020 9:44 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
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


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2020 12:33 pm 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
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:
#!/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!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2020 12:59 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4809
Location: Sittard, The Netherlands
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


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2020 1:01 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4809
Location: Sittard, The Netherlands
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


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2020 1:24 pm 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
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/viewtopic.php?f=6&t=8822

I tried, but unfortunately I got same result (no server).


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2020 2:45 pm 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
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:
etherhelper/tap0/bridge0/en0


So in preferences, I replaced slirp with the statement above.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Mar 04, 2020 4:42 pm 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
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?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 2:35 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
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!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 6:41 am 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
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?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 7:19 am 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4809
Location: Sittard, The Netherlands
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:
viewtopic.php?f=6&t=10459&p=65038&hilit=tunnelblick#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


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 7:25 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
I have merged the etherhelper and confirmed working under El Capitan.
Build by Xcode and try.

https://github.com/kanjitalk755/macemu


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 1:43 pm 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 4:48 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2841
Location: Emaculation.com
So we should be able to create a launchdaemon config to do the
Code:
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 5:55 pm 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
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!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 6:09 pm 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
adespoton wrote:
So we should be able to create a launchdaemon config to do the
Code:
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!


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Mar 05, 2020 6:47 pm 
Offline
Tinkerer
User avatar

Joined: Thu Apr 06, 2017 9:32 am
Posts: 77
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:
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?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 1:47 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
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


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 2:29 am 
Offline
Student Driver

Joined: Fri Feb 28, 2020 3:10 am
Posts: 24
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 3:48 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
Can you boot single user mode (command+S)?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 3:57 am 
Offline
Student Driver

Joined: Fri Feb 28, 2020 3:10 am
Posts: 24
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 4:23 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 7:42 am 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4809
Location: Sittard, The Netherlands
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


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 10:16 am 
Offline
Granny Smith

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 133
I have added the etherhelper to SheepShaver.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 4:53 pm 
Offline
Student Driver

Joined: Fri Feb 28, 2020 3:10 am
Posts: 24
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Mar 06, 2020 8:52 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5849
Location: Amsterdam, Netherlands
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.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 3 of 5 [ 110 posts ]    Go to page Previous  1, 2, 3, 4, 5  Next


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group