OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Networking => Topic started by: Eugene Tucker on January 31, 2024, 07:12:13 pm

Title: [SOLVED] Networking not working In Virtual Box
Post by: Eugene Tucker on January 31, 2024, 07:12:13 pm
For some reason in my virtual machine (new) Networking does not work. the system set it up for an Intel network card while the card is a Realtek.
Title: Re: Networking not working In Virtual Box
Post by: Martin Iturbide on January 31, 2024, 09:10:39 pm
Hello Eugene.

Feel free to post the picture of you networking settings on the VirtualBox host.

- Which OS is your VirtualBox host ? Windows, or are you using the older VirtualBox Host for OS/2?
- If OS/2-ArcaOS is the guest. Does it gives you a booting error that does not recognize the card?

In my case I have a Windows 11 Host, the Guest OS is presented with an "Intel PRO 1000" card, and ArcaOS 5.1 loads the "MMLEM.OS2" driver on boot. (picture attached)

Regards
Title: Re: Networking not working In Virtual Box
Post by: Eugene Tucker on February 10, 2024, 04:30:21 pm
My host is the same Windows 11 and card show up as the same one. I am sorry for the late reply as just got out of the hospital.
Title: Re: Networking not working In Virtual Box
Post by: Martin Iturbide on February 11, 2024, 02:33:17 pm
Hi Eugene.

- Does ArcaOS (or OS/2) complains that he can not find IP, some DHCP message waiting, when it boots as a guest?
- Which network river is installed on the OS/2 guest?
- Did it used to work in the past and suddenly stopped working? or it never worked from the start?

Regards
Title: Re: Networking not working In Virtual Box
Post by: Eugene Tucker on February 11, 2024, 06:26:48 pm
Martin, thanks for the response but I got it working.
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: david.l.hart on March 16, 2024, 03:04:03 am
I have a site called OS Collector at https://oscollector.wordpress.com/  where I have shared virtualbox settings for many of my Virtualbox VMs.

Each OS has a screen shot of the Virtualbox settings.  In most cases things are pretty straight forward but I have some interesting OS installs including OS/2 V1 up to ArcaOS 5.1, Mac Rhapsody, Unixware, DesqviewX and more.

Some of these do not work on any network since there is no driver but there was a time when we had no network  :o

It also has some tips to get some of things to work in VrtualBox.

Enjoy.
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Martin Iturbide on March 16, 2024, 05:15:15 am
Hi David
I have a site called OS Collector at https://oscollector.wordpress.com/  where I have shared virtualbox settings for many of my Virtualbox VMs.

That's a very nice site. I guess you already know that some time ago we tried to do some empty OVAs for ArcaOS 5.0 (https://www.os2world.com/forum/index.php/topic,3260.msg40510.html#msg40510). Maybe you can include those on your site. Those empty OVAs helps the user to create an empty VM in VirtualBox, but with all the VM setting already in place.

Regards
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: david.l.hart on March 16, 2024, 07:39:29 pm
I guess I forgot about that.  Wordpress doesn't have a way to host files directly so I put them on a google drive and shared it from the page.  There is a VirtualBox blank template OVA for ArcaOS 5.x.  This template should work for most any OS2 version from Warp 3 up to ArcaOS 5.1.

the Template appliance has some info in the VM description on adjusting some settings for each host machine.

I know that when I first installed many operating systems using VirtualBox Networking was a problem and it seemed that switching from NAT to bridged fixed some of those.

Time permitting I can add some other appliances for abandoned software.  There are archives around that have the installs for many operating systems.

The link to the OVA template with good settings is on the page https://oscollector.wordpress.com/arcaos-5-1-x/ after the screen shot of the VM settings.
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Glenn on April 03, 2024, 01:10:27 pm
I do not know if this is related, but after installing tons of programs onto a virtual ArcaOS 5.1 that I just reinstalled, I found the two following problems:
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Roderick Klein on April 03, 2024, 02:42:02 pm
I do not know if this is related, but after installing tons of programs onto a virtual ArcaOS 5.1 that I just reinstalled, I found the two following problems:
  • The PATH and LIBPATH, still limited in size in config.sys, quickly go over their maximum length. It has been the same for ages, but I would be grateful if a good programmer (which I am not) could make a program into which one enters folder names that should be part of libpath (especially), then another folder for collecting all libraries, and then the program picks up all these libraries, copies them to that collection folder, favors newer versions when two files have the same name, or even prevents some files from being copied if they are known to create conflicts. But that is an entirely different topic.
  • As mentioned on the old HPFS386 topic that I have to resurrect, some usual folders / files required for HPFS386 are missing. Again, not the same topic.
  • Now let's get to the topic at hand. I did not have any network. Somehow the different interfaces are present / installed with one of them activated for DHCP, but there is no DHCPSTRT starting automatically. And yet I did install networking.. Starting DHCPSTRT by hand after getting to the WPS works, but why the heck is it not started during boot-up time? Could anyone tell me exactly how their DHCPSTRT line looks like in their config.sys ?

1. The path and libpath length will not be modified, put it simple OS limitation. If you want to use extended paths for development stuff. You need to use beginpath and beginlibpath.
2. I did not read this topic. But you might need to disable earlymeminit=true in the config.sys, I am not 100% is HPFS386 works with that setting on. Warning however. Switching this option off can result in drivers such as ACPI.PSD, UNIAUD ETC not loading. Switching this option off reduces the amount of RAM for loading kernel  and drivers to about 16 MB of RAM. Which can result in system crashes!
3. Check \mptn\bin\setup.cmd
That gets loaded from the config.sys.

Roderick Klein
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Tom on April 03, 2024, 02:52:37 pm
Starting DHCPSTRT by hand after getting to the WPS works, but why the heck is it not started during boot-up time? Could anyone tell me exactly how their DHCPSTRT line looks like in their config.sys ?[/li][/list]

dhcpstrt is not in config.sys but inside ?:\mptn\bin\setup.cmd:

dhcpstrt -i lan0 0d 0

Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Glenn on April 03, 2024, 04:38:46 pm
Starting DHCPSTRT by hand after getting to the WPS works, but why the heck is it not started during boot-up time? Could anyone tell me exactly how their DHCPSTRT line looks like in their config.sys ?[/li][/list]

dhcpstrt is not in config.sys but inside ?:\mptn\bin\setup.cmd:

dhcpstrt -i lan0 0d 0

That is weird, because dhcpstrt is indeed present in this setup file... yet if I do not start it manually once the WPS has loaded, the DHCP monitor is empty with a message that DHCP has not been started..
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Dave Yeo on April 03, 2024, 04:49:49 pm
You should have a line like,
Code: [Select]
CALL=X:\OS2\CMD.EXE /Q /C X:\MPTN\BIN\MPTSTART.CMD >NULin config.sys with MPTSTART.CMD calling X:\MPTN\BIN\SETUP.cmd
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Pete2 on April 03, 2024, 07:47:33 pm
@Glenn: re length of PATH and LIBPATH. Many programs add their own directory to the system path so you can start them from the command line. If you will only ever use a program object you can remove this entry from PATH; if there's a LIBPATH entry you can remove this and add a BEGINLIBPATH setting to the program object. If you do want to start the program from a command line, one workaround is to create a batch file which can go somewhere in your PATH, which can set BEGINLIBPATH and launch the program. e.g.if foo.exe installs into c:`programs\foo and puts its DLLs in c:\programs\foo\lib, foo.cmd could be

@echo off
set BEGINLIBPATH=c:\programs\foo\lib
c:\programs\foo.exe %1

(I expect this isn't the best you can do - maybe others will correct.)
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Dave Yeo on April 04, 2024, 12:13:01 am
Always good to leave the possibility to chain commands.

@echo off
set BEGINLIBPATH=c:\programs\foo\lib;%BEGINLIBPATH%
c:\programs\foo.exe %1
exit
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Glenn on April 04, 2024, 01:02:08 am
You should have a line like,
Code: [Select]
CALL=X:\OS2\CMD.EXE /Q /C X:\MPTN\BIN\MPTSTART.CMD >NULin config.sys with MPTSTART.CMD calling X:\MPTN\BIN\SETUP.cmd
The line is there, and yet the DHCP monitor has "DHCP client is not running".. When I run DHCPSTRT, the first line in the monitor is "initialized interface lan1"...
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Dave Yeo on April 04, 2024, 02:49:56 am
Do you have 2 network cards installed in the VM? Can you post your x:\mptn\bin\setup.cmd?
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Glenn on April 04, 2024, 02:36:25 pm
Do you have 2 network cards installed in the VM? Can you post your x:\mptn\bin\setup.cmd?
I even have 4... First one I keep for NAT, the others for bridged mode - second one for docking station wired, third for laptop's wifi, fourth for laptop's internal wired. I swap second and fourth when I have wired ethernet on the go, without my docking station.

Contents of setup.cmd:

route -fh
arp -f
ifconfig lo 127.0.0.1
REM ifconfig lan0 nil metric 1 mtu 1500
REM ifconfig lan1 nil
REM ifconfig lan2 nil metric 1 mtu 1500
ifconfig lan3 192.168.1.200 netmask 255.255.255.0 metric 1 mtu 1500
REM ifconfig lan4 nil metric 1 mtu 1500
REM ifconfig lan5 metric 1 mtu 1500
REM ifconfig lan6 metric 1 mtu 1500
REM ifconfig lan7 metric 1 mtu 1500
dhcpstrt -i lan1
REM ifconfig sl0
ipgate off
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: Tom on April 04, 2024, 04:43:11 pm
Do you have 2 network cards installed in the VM? Can you post your x:\mptn\bin\setup.cmd?
I even have 4... First one I keep for NAT, the others for bridged mode - second one for docking station wired, third for laptop's wifi, fourth for laptop's internal wired. I swap second and fourth when I have wired ethernet on the go, without my docking station.

Contents of setup.cmd:

route -fh
arp -f
ifconfig lo 127.0.0.1
REM ifconfig lan0 nil metric 1 mtu 1500
REM ifconfig lan1 nil
REM ifconfig lan2 nil metric 1 mtu 1500
ifconfig lan3 192.168.1.200 netmask 255.255.255.0 metric 1 mtu 1500
REM ifconfig lan4 nil metric 1 mtu 1500
REM ifconfig lan5 metric 1 mtu 1500
REM ifconfig lan6 metric 1 mtu 1500
REM ifconfig lan7 metric 1 mtu 1500
dhcpstrt -i lan1
REM ifconfig sl0
ipgate off

You might want to add "-d 0" (without the quotes) at the end of the line with dhcpstrt. That parameter specifies the maximum time dhcpstrt waits for an IP address from the DHCP server. Specifying 0 (zero) makes it keep on trying in the background (so effectively no maximum wait period after which it gives up).

Code: [Select]
dhcpstrt -i lan1 -d 0 (note the space between d and zero)
Title: Re: [SOLVED] Networking not working In Virtual Box
Post by: CalYY on April 07, 2024, 04:21:46 pm
 I need to have below at end of startup.cmd to get full performance:

if exist %etc%\inetcfg.ini CALL inetcfg.exe -set all
call d:\mptn\bin\setup.cmd

you may need a dhcp line as well if does not start from elsewhere