OS/2, eCS & ArcaOS - Technical > Networking

OS/2 4.52 to VirtualBox networking

(1/2) > >>

RickCHodgin:
I'm currently using a very clunky methodology to get files into my OS/2 guest running in VirtualBox.  What do I need to do to get my OS/2 new install setup to access Windows networks, or see my host machine's IP address so I can at least setup an FTP server to send/receive files?  I see that VirtualBox offers its own add-ons to allow tighter integration.  Has anyone set these up?  Does this expose local host hard drives as guest network drives as in other OSes?  I've never set it up before.

Has anyone done much sockets-based client/server/peer programming in OS/2?  Is there sample code for that?  Maybe a messenger type program for peer-to-peer chat with a central server login?

UPDATE:  I found this tutorial on EDM/2.

Valery Sedletski:
To get files into VBox OS/2 guest, you can use the VBox additions shared folders IFS
I'm currently developing. see https://www.os2world.com/forum/index.php/topic,1905.0.html
for more details. It is not finished, yet, but it works just fine for copying files from/to VBox and
accessing your host disks.

Currently, VBox has only NAT networking option, so you can access the internet and local
network from within the OS/2 guest. Though, I'm not sure if windows shares will work. They
require your OS/2 guest to have the same network mask as your host LAN has. Though, with
NAT networking, guest IP addresses are assigned from 10.2.0.0/24 subnet, which could not
match your LAN's netmask.

Except for NAT networking, there is also TUN/TAP networking. There is a TAP driver for OS/2
writen by Willibald Meyer, who is also GenMac author. This driver was included with the old
VBox 1.6.x port. It seems to have issues with permission to include to newer VBox versions,
so we didn't included it. Also, TAPOs2 support on VBox side is currently broken in OS/2 port
of VBox. So, this feature is not working, currently.

The above applies to OS/2 port of VBox. If you have the OS/2 guest on other host, like
Windows/Linux, then host networking should work, You just need to disable NAT (which is
enabled by default), and enable "Internal network" feature.

If you just want to set up the ftp server on host, then it should work with NAT networking.
Also, copying files with scp/ssh should work too. (If you enter this command from the OS/2
guest. With NAT, you cannot access the guest from the host. For that, you need the "Internal
network" option. It is like "virtual switch" option in VirtualPC.).

Andy Willis:

--- Quote from: Valery Sedletski on November 02, 2018, 11:47:56 pm ---With NAT, you cannot access the guest from the host.

--- End quote ---

Is this a limitation currently in the OS/2 version that the port forwarding is not working?

Valery Sedletski:
2Andy Willis: I don't know about any port forwarding in VBox NAT. It seems to be missing. At least, it's the 1st time I hear about such a thing.

Andy Willis:

--- Quote from: Valery Sedletski on November 03, 2018, 10:23:55 pm ---2Andy Willis: I don't know about any port forwarding in VBox NAT. It seems to be missing. At least, it's the 1st time I hear about such a thing.

--- End quote ---

https://www.virtualbox.org/manual/ch06.html#natforward

I've used it in Linux and Windows hosts.

Navigation

[0] Message Index

[#] Next page

Go to full version