Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HHC00137E Error opening TUN/TAP device C8-5B-76-A5-4A-B3: No such file or directory #695

Open
prenard opened this issue Dec 21, 2024 · 68 comments
Assignees
Labels
BUG The issue describes likely incorrect product functionality that likely needs corrected. IN PROGRESS... I'm working on it! (Or someone else is!) Ongoing Issue is long-term. Variant of IN PROGRESS: it's being worked on but maybe not at this exact moment. Researching... The issue is being looked into or additional information is being gathered/located. (Unknown) Unresolved. It might be a bug. It might not. We don't know. We couldn't reproduce it. W Possible Windows only issue, that seems to occur more easily/frequently on Windows.

Comments

@prenard
Copy link

prenard commented Dec 21, 2024

Hello.

I am using Hercules 4.8-DEV on Windows 11 and I try to implement network connectivity using CTCI-WIN.

I have added in my Hercules.conf following lines:

NETDEV C8-5B-76-A5-4A-B3
1D00.2   LCS --dev C8-5B-76-A5-4A-B3 192.168.137.121

And I get during start of Hercules:

HHC02204I NETDEV         set to C8-5B-76-A5-4A-B3
HHC04100I TunTap64.dll version ** UNPAID TRIAL COPY **  3.7.0.5409 initiated
HHC00137E Error opening TUN/TAP device C8-5B-76-A5-4A-B3: No such file or directory
HHC00007I Previous message from function 'TUNTAP_CreateInterface' at tuntap.c(251)
HHC00900E 0:1D00 LCS: Error in function TUNTAP_CreateInterface:
HHC00007I Previous message from function 'LCS_Init' at ctc_lcs.c(450)
HHC01463E 0:1D01 device initialization failed

I have tested the same configuration with TT64Test.exe and ping tests work without any problem!

Carte Ethernet Ethernet:

   Suffixe DNS propre à la connexion. . . : home
   Description. . . . . . . . . . . . . . : Intel(R) Ethernet Connection I219-LM
   Adresse physique . . . . . . . . . . . : C8-5B-76-A5-4A-B3
   DHCP activé. . . . . . . . . . . . . . : Oui
   Configuration automatique activée. . . : Oui
   Adresse IPv6 de liaison locale. . . . .: fe80::c66:b0d:f17b:bb08%7(préféré)
   Adresse IPv4. . . . . . . . . . . . . .: 192.168.137.254(préféré)
   Masque de sous-réseau. . . . . . . . . : 255.255.255.0
   Bail obtenu. . . . . . . . . . . . . . : samedi 21 décembre 2024 17:16:56
   Bail expirant. . . . . . . . . . . . . : dimanche 22 décembre 2024 17:21:19
   Passerelle par défaut. . . . . . . . . : 192.168.137.1
   Serveur DHCP . . . . . . . . . . . . . : 192.168.137.1
   IAID DHCPv6 . . . . . . . . . . . : 130571126
   DUID de client DHCPv6. . . . . . . . : 00-01-00-01-2E-B7-EB-3E-C8-5B-76-A5-4A-B3
   Serveurs DNS. . .  . . . . . . . . . . : 192.168.137.1
   NetBIOS sur Tcpip. . . . . . . . . . . : Activé

Any help would be appreciated.

Thanks.

@Fish-Git Fish-Git self-assigned this Dec 21, 2024
@Fish-Git Fish-Git added the BUG The issue describes likely incorrect product functionality that likely needs corrected. label Dec 21, 2024
@Fish-Git
Copy link
Member

Fish-Git commented Dec 21, 2024

Please see our "SUBMITTING PROBLEM REPORTS" web page.   It explains the information that we need (require) in order to properly diagnose such issues.

In this particular specific case, that would be:

  1. Your complete Hercules log file, from startup to shutdown.
  2. Your complete TT64Test.exe output, showing the results of your multi-directional Ping Test.
  3. Your complete Hercules configuration file.

Knowing what guest operating system you're trying to run under Hercules would also be nice (z/OS? Which version?), as well as seeing its corresponding network configuration members too (e.g. TCPPARMS PROF2), would also be nice.

@Fish-Git Fish-Git added the QUESTION... A question was asked but has not been answered yet, -OR- additional feedback is requested. label Dec 21, 2024
@Fish-Git
Copy link
Member

Fish-Git commented Dec 21, 2024

And I get during start of Hercules:

. . .
HHC02204I NETDEV         set to C8-5B-76-A5-4A-B3
HHC04100I TunTap64.dll version ** UNPAID TRIAL COPY **  3.7.0.5409 initiated
HHC00137E Error opening TUN/TAP device C8-5B-76-A5-4A-B3: No such file or directory
. . .

How did you start Hercules? Did you use HercGUI? Or did you start it yourself from the command line (i.e. Command Prompt window)?

If you started it yourself from the command line, did you start it from an elevated (administrator) Command Prompt window? (i.e. did you right-click on the windows Start Menu entry for "Command Prompt" and select "Run as administrator?")   Which HHC00018x message appears in your Hercules log file?

       HHC00018I Hercules is running in elevated mode
or:  HHC00018W Hercules is NOT running in elevated mode

If the second (warning) message is being issued, then that's your problem: you're not running Hercules in elevated (administrator) mode. Hercules must be run with admin/root privileges if your guest needs networking capabilities. This need is clearly mentioned in our documentation.

Otherwise, if the first (informational) message is being issued, then something else is wrong and we will have to investigate further.

@prenard
Copy link
Author

prenard commented Dec 22, 2024

I start Hercules using Administrator level from the command line.
Where can I find Hercules log? When it is started with admin level it is not possible to scroll up in Hercules window to see start messages.

@prenard
Copy link
Author

prenard commented Dec 22, 2024

I have added -o option in start command to get the log!

Here is the Hercules log with "HHC00018I Hercules is running in elevated mode" message & "HHC00137E Error opening TUN/TAP device C8-5B-76-A5-4A-B3: No such file or directory" message:

06:13:41 HHC01413I Hercules version 4.8.0.11358-SDL-DEV-g3de32a79
06:13:41 HHC01414I (C) Copyright 1999-2024 by Roger Bowler, Jan Jaeger, and others
06:13:41 HHC01417I *** Hercules-Helper Test Build ***
06:13:41 HHC01415I Build date: Nov 28 2024 at 19:08:38
06:13:41 HHC01417I Built with: Microsoft Visual Studio 2022 (MSVC 194234435 0)
06:13:41 HHC01417I Build type: Windows MSVC AMD64 host architecture build
06:13:41 HHC01417I Modes: S/370 ESA/390 z/Arch
06:13:41 HHC01417I Max CPU Engines: 8
06:13:41 HHC01417I Using   shared libraries
06:13:41 HHC01417I Using   Fish threads Threading Model
06:13:41 HHC01417I Using   Error-Checking Mutex Locking Model
06:13:41 HHC01417I With    Shared Devices support
06:13:41 HHC01417I With    Dynamic loading support
06:13:41 HHC01417I With    External GUI support
06:13:41 HHC01417I With    Partial TCP keepalive support
06:13:41 HHC01417I With    IPV6 support
06:13:41 HHC01417I With    HTTP Server support
06:13:41 HHC01417I With    sqrtl support
06:13:41 HHC01417I With    Signal handling
06:13:41 HHC01417I With    Watchdog monitoring
06:13:41 HHC01417I With    CCKD BZIP2 support
06:13:41 HHC01417I With    HET BZIP2 support
06:13:41 HHC01417I With    ZLIB support
06:13:41 HHC01417I With    Regular Expressions support
06:13:41 HHC01417I With    Object REXX support
06:13:41 HHC01417I Without Regina REXX support
06:13:41 HHC01417I With    Automatic Operator support
06:13:41 HHC01417I Without National Language Support
06:13:41 HHC01417I With    CCKD64 Support
06:13:41 HHC01417I With    Transactional-Execution Facility support
06:13:41 HHC01417I With    "Optimized" instructions
06:13:41 HHC01417I With    OPTION_USE_SKAIP_AS_LOCK
06:13:41 HHC01417I With    OPTION_SIE2BK_FLD_COPY
06:13:41 HHC01417I With    OPTION_IODELAY_KLUDGE
06:13:41 HHC01417I With    OPTION_MVS_TELNET_WORKAROUND
06:13:41 HHC01417I With    OPTION_SIE_PURGE_DAT_ALWAYS
06:13:41 HHC01417I With    OPTION_NOASYNC_SF_CMDS
06:13:41 HHC01417I Machine dependent assists: cmpxchg1 cmpxchg4 cmpxchg8 cmpxchg16 hatomics=msvcIntrinsics
06:13:41 HHC01417I Running on: T460-WS-11 (Windows 11 Professionnel 24H2-10.0.26100 Intel(R) x64) LP=4, Cores=2, CPUs=1
06:13:41 HHC01417I Built with crypto external package version 1.0.0.52-ga5096e5
06:13:41 HHC01417I Built with decNumber external package version 3.68.0.102-g3aa2f45
06:13:41 HHC01417I Built with SoftFloat external package version 3.5.0.106-gc114c53
06:13:41 HHC01417I Built with telnet external package version 1.0.0.62-ge0e2a91
06:13:41 HHC00100I Thread id 000015e0, prio 5, name 'impl_thread' started
06:13:41 HHC00100I Thread id 00001b00, prio 4, name 'logger_thread' started
06:13:41 HHC00018I Hercules is running in elevated mode
06:13:41 HHC02323W This build of Hercules has only partial TCP keepalive support
06:13:41 HHC00007I Previous message from function 'impl' at impl.c(1431)
06:13:41 HHC00150I Crypto module loaded (C) Copyright 2003-2024 by Bernard van der Helm & Juergen Winkelmann
06:13:41 HHC00151I Activated facility: Message Security Assist
06:13:41 HHC00151I Activated facility: Message Security Assist Extension 1, 2, 3, 4, 5 and 7
06:13:41 HHC17528I REXX(OORexx) VERSION: REXX-ooRexx_5.0.0(MT)_64-bit 6.05 23 Dec 2022
06:13:41 HHC17529I REXX(OORexx) SOURCE:  WindowsNT
06:13:41 HHC17525I REXX(OORexx) Rexx has been started/enabled
06:13:41 HHC17500I REXX(OORexx) Mode            : Command
06:13:41 HHC17500I REXX(OORexx) MsgLevel        : Off
06:13:41 HHC17500I REXX(OORexx) MsgPrefix       : Off
06:13:41 HHC17500I REXX(OORexx) ErrPrefix       : Off
06:13:41 HHC17500I REXX(OORexx) Resolver        : On
06:13:41 HHC17500I REXX(OORexx) SysPath    (12) : On
06:13:41 HHC17500I REXX(OORexx) RexxPath   ( 0) :
06:13:41 HHC17500I REXX(OORexx) Extensions ( 8) : .REXX;.rexx;.REX;.rex;.CMD;.cmd;.RX;.rx
06:13:41 HHC00111I Thread CPU Time IS available (_POSIX_THREAD_CPUTIME=1)
06:13:41 HHC00100I Thread id 000038c4, prio 2, name 'Processor CP00' started
06:13:41 HHC00100I Thread id 0000146c, prio 7, name 'timer_thread' started
06:13:41 HHC00811I Processor CP00: architecture mode z/Arch
06:13:41 HHC02204I ARCHLVL        set to z/Arch
06:13:41 HHC00898I Facility( 044_PFPO ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 006_ASN_LX_REUSE ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 053_LOAD_STORE_ON_COND_2 ) Enabled for z/Arch
06:13:41 HHC00898W Facility( 054_EE_CMPSC ) *Enabled for z/Arch
06:13:41 HHC00007I Previous message from function 'facility_enable_disable' at facility.c(4621)
06:13:41 HHC00898I Facility( 058_MISC_INSTR_EXT_2 ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 080_DFP_PACK_CONV ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 058_MISC_INSTR_EXT_2 ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 129_ZVECTOR ) Enabled for z/Arch
06:13:41 HHC00898W Facility( 130_INSTR_EXEC_PROT ) *Enabled for z/Arch
06:13:41 HHC00007I Previous message from function 'facility_enable_disable' at facility.c(4621)
06:13:41 HHC00898I Facility( 134_ZVECTOR_PACK_DEC ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 135_ZVECTOR_ENH_1 ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 148_VECTOR_ENH_2 ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 152_VECT_PACKDEC_ENH ) Enabled for z/Arch
06:13:41 HHC00898I Facility( 192_VECT_PACKDEC_ENH_2 ) Enabled for z/Arch
06:13:41 HHC02204I CPUMODEL       set to 3931
06:13:41 HHC02204I CPUVERID       set to 00
06:13:41 HHC02204I CPUSERIAL      set to 000611
06:13:41 HHC02204I LPARNAME       set to HERCULES
06:13:41 HHC02204I LPARNUM        set to 01
06:13:41 HHC02204I CPUIDFMT       set to 1
06:13:41 HHC17003I MAIN     storage is 12G (mainsize); storage is not locked
06:13:41 HHC00100I Thread id 000026f8, prio 2, name 'Processor CP01' started
06:13:41 HHC00811I Processor CP01: architecture mode z/Arch
06:13:41 HHC00100I Thread id 000029cc, prio 2, name 'Processor CP02' started
06:13:41 HHC00811I Processor CP02: architecture mode z/Arch
06:13:41 HHC02204I NUMCPU         set to 3
06:13:41 HHC02204I MAXCPU         set to 4
06:13:41 HHC00827I Processor CP00: engine 00 type 0 set: CP
06:13:41 HHC00827I Processor CP01: engine 01 type 0 set: CP
06:13:41 HHC00827I Processor CP02: engine 02 type 0 set: CP
06:13:41 HHC00827I Processor CP03: engine 03 type 0 set: CP
06:13:41 HHC02204I ENGINES        set to CP,CP,CP,CP
06:13:41 HHC02204I CNSLPORT       set to 3270
06:13:41 HHC04100I TunTap64.dll version ** UNPAID TRIAL COPY **  3.7.0.5409 initiated
06:13:42 HHC04100I TunTap64.dll version ** UNPAID TRIAL COPY **  3.7.0.5409 initiated
06:13:42 HHC00137E Error opening TUN/TAP device C8-5B-76-A5-4A-B3: No such file or directory
06:13:42 HHC00007I Previous message from function 'TUNTAP_CreateInterface' at tuntap.c(251)
06:13:42 HHC01463E 0:0E21 device initialization failed

 
 
And the TTTest log with successful pings:

06:19:03.579 ** CAdapter(NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6})::FinishOpenAdapter: WARNING: SetOID( OID_GEN_CURRENT_PACKET_FILTER = NDIS_PACKET_TYPE_PROMISCUOUS ) failed; rc=1: Fonction incorrecte.
06:19:03.616 ** CAdapter(NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6})::IntSyncDeviceIoControl: DeviceIoControl(-2147483648) failed; rc=1: Fonction incorrecte.
06:19:03.616 ** CAdapter(NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6})::FinishOpenAdapter: WARNING: SetOID( OID_GEN_CURRENT_PACKET_FILTER = NDIS_PACKET_TYPE_PROMISCUOUS ) failed; rc=1: Fonction incorrecte.
06:19:03.636 Begin TTTest.exe, version: "** UNPAID TRIAL COPY **  3.7.0.5409" (3.7.0.5409): "64-bit Release version" on Sunday, December 22, 2024 06:19:03 AM ...
06:19:03.636 Copyright (C) 2002-2020, Software Development Laboratories.
06:19:03.636
06:19:03.637 Running in Elevated (Administrator) mode on "T460-WS-11" Windows Windows 10 Professional 64-bit build 26100 (MP=4).
06:19:03.637
06:19:03.637 Using WinPCap Packet.DLL, version "4.1.0.2980" (4.1.0.2980), driver version "4.1.0.2980" ...
06:19:03.637
06:19:03.637 Using FishPack64.dll, version: "** UNPAID TRIAL COPY **  3.7.0.5409" (3.7.0.5409): "64-bit Release version" ...
06:19:03.637 Copyright (C) 2002-2020, Software Development Laboratories
06:19:03.637
06:19:03.638 Using TunTap64.dll, version: "** UNPAID TRIAL COPY **  3.7.0.5409" (3.7.0.5409): "64-bit Release version" ...
06:19:03.638 Copyright (C) 2002-2020, Software Development Laboratories
06:19:03.638
06:19:03.638 Using FishLib64-M90a.dll, version: "2.15.5.5188" (2.15.5.5188): "64-bit Release version" ...
06:19:03.638 Copyright (C) 2004-2019, Software Development Laboratories
06:19:03.638
06:19:03.639 ---------  The following relevant DosDevices are defined ---------
06:19:03.639
06:19:03.642 NPF_{09808181-0A89-4261-867C-424D461F9955}
06:19:03.642 NPF_{0CBCA5FA-EE32-4EA7-9D74-EB4C407CD078}
06:19:03.642 NPF_{5742FD59-B269-4272-BF03-5A404050F8FB}
06:19:03.642 NPF_{61B54154-1500-4098-AE74-CD6B1539D821}
06:19:03.642 NPF_{746C537F-66B1-4F0D-8111-237A6778EB51}
06:19:03.642 NPF_{88943885-445E-48FC-A51E-5AD649165B93}
06:19:03.642 NPF_{8C557544-32F2-49A6-A702-805215380C31}
06:19:03.642 NPF_{90657DA5-FB95-4F08-936D-01BA286F6142}
06:19:03.642 NPF_{9DADAEE0-16E3-4EE2-B78E-C9132F0D47B0}
06:19:03.642 NPF_{A2958407-CA50-4D07-A0CD-FE111225BC50}
06:19:03.642 NPF_{A647F5D2-1C57-4B6B-87ED-F21D55871C5A}
06:19:03.642 NPF_{B5F13FE8-C7B4-46D0-94C8-E4871C0407C3}
06:19:03.642 NPF_{BB3084BA-B1D4-4031-954E-7CD12BB672D3}
06:19:03.642 NPF_{C29E0490-5604-4338-B773-6D504F756ED6}
06:19:03.642 NPF_{F58F6D4B-7D26-4B39-99EF-D0B0E21F64D5}
06:19:03.642 NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6}
06:19:03.642 {09808181-0A89-4261-867C-424D461F9955}
06:19:03.642 {0CBCA5FA-EE32-4EA7-9D74-EB4C407CD078}
06:19:03.642 {5742FD59-B269-4272-BF03-5A404050F8FB}
06:19:03.643 {5d624f94-8850-40c3-a3fa-a4fd2080baf3}#vwifimp_wfd#5&2b0f7c43&0&11#{ad498944-762f-11d0-8dcb-00c04fc3358c}
06:19:03.643 {5d624f94-8850-40c3-a3fa-a4fd2080baf3}#vwifimp_wfd#5&2b0f7c43&0&11#{cac88484-7515-4c03-82e6-71a87abac361}
06:19:03.643 {5d624f94-8850-40c3-a3fa-a4fd2080baf3}#vwifimp_wfd#5&2b0f7c43&0&12#{ad498944-762f-11d0-8dcb-00c04fc3358c}
06:19:03.643 {5d624f94-8850-40c3-a3fa-a4fd2080baf3}#vwifimp_wfd#5&2b0f7c43&0&12#{cac88484-7515-4c03-82e6-71a87abac361}
06:19:03.643 {61B54154-1500-4098-AE74-CD6B1539D821}
06:19:03.643 {746C537F-66B1-4F0D-8111-237A6778EB51}
06:19:03.643 {88943885-445E-48FC-A51E-5AD649165B93}
06:19:03.643 {8C557544-32F2-49A6-A702-805215380C31}
06:19:03.643 {90657DA5-FB95-4F08-936D-01BA286F6142}
06:19:03.643 {A647F5D2-1C57-4B6B-87ED-F21D55871C5A}
06:19:03.643 {B5F13FE8-C7B4-46D0-94C8-E4871C0407C3}
06:19:03.643 {BB3084BA-B1D4-4031-954E-7CD12BB672D3}
06:19:03.643 {C29E0490-5604-4338-B773-6D504F756ED6}
06:19:03.643 {FBA44068-7D84-4D36-A7B9-F685B32BB1F6}
06:19:03.643
06:19:03.643 -------------------------  Network Information  -------------------------
06:19:03.643
06:19:03.643   Host Name . . . . . . . . . : T460-WS-11
06:19:03.643   Node Type . . . . . . . . . : Hybrid
06:19:03.643   DNS Servers . . . . . . . . : 192.168.137.1
06:19:03.643   IP Routing Enabled. . . . . : no
06:19:03.643
06:19:03.643   Network Address          Netmask  Gateway Address        Interface  Metric
06:19:03.643           0.0.0.0          0.0.0.0    192.168.137.1  192.168.137.254      25
06:19:03.643         127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1     331
06:19:03.643         127.0.0.1  255.255.255.255        127.0.0.1        127.0.0.1     331
06:19:03.644   127.255.255.255  255.255.255.255        127.0.0.1        127.0.0.1     331
06:19:03.644     192.168.137.0    255.255.255.0  192.168.137.254  192.168.137.254     281
06:19:03.644   192.168.137.254  255.255.255.255  192.168.137.254  192.168.137.254     281
06:19:03.644   192.168.137.255  255.255.255.255  192.168.137.254  192.168.137.254     281
06:19:03.644         224.0.0.0        240.0.0.0        127.0.0.1        127.0.0.1     331
06:19:03.644         224.0.0.0        240.0.0.0  192.168.137.254  192.168.137.254     281
06:19:03.644   255.255.255.255  255.255.255.255        127.0.0.1        127.0.0.1     331
06:19:03.644   255.255.255.255  255.255.255.255  192.168.137.254  192.168.137.254     281
06:19:03.649
06:19:03.649   Default gateway:  192.168.137.1  (2C-30-33-E8-F2-2A)
06:19:03.649
06:19:03.649 --------------------------  Detected Adapters  --------------------------
06:19:03.649
06:19:03.649 Connection          = Ethernet
06:19:03.649 AdapterName         = NPF_{61B54154-1500-4098-AE74-CD6B1539D821}
06:19:03.649 Description         = Intel(R) Ethernet Connection I219-LM
06:19:03.649 PhysAddr            = C8-5B-76-A5-4A-B3
06:19:03.649 LinkType            = NdisMedium802_3
06:19:03.649 Default Adapter?    = Yes
06:19:03.649 MediaConnected?     = Yes
06:19:03.649 PromiscuousMode?    = Yes
06:19:03.649 DHCP Enabled?       = Yes
06:19:03.650 LinkSpeed           = 1.0 Gbps
06:19:03.650 MaxPacketLen        = 1514
06:19:03.650 IPAddr              = 192.168.137.254
06:19:03.650 IPAddrMask          = 255.255.255.0
06:19:03.650 GatewayIPAddr       = 192.168.137.1
06:19:03.650 dwIndex             = 0x00000007
06:19:03.650 Checksum offloading = as follows:
06:19:03.650
06:19:03.650    V4Transmit.TcpChecksum:  ENABLED
06:19:03.650    V4Transmit.UdpChecksum:  ENABLED
06:19:03.650    V4Transmit.IpChecksum:   ENABLED
06:19:03.650
06:19:03.650    V4Receive.TcpChecksum:   ENABLED
06:19:03.650    V4Receive.UdpChecksum:   ENABLED
06:19:03.650    V4Receive.IpChecksum:    ENABLED
06:19:03.650
06:19:03.650    V6Transmit.TcpChecksum:  ENABLED
06:19:03.650    V6Transmit.UdpChecksum:  ENABLED
06:19:03.650
06:19:03.650    V6Receive.TcpChecksum:   ENABLED
06:19:03.650    V6Receive.UdpChecksum:   ENABLED
06:19:03.650
06:19:03.661 Connection          = Connexion réseau Bluetooth
06:19:03.661 AdapterName         = NPF_{C29E0490-5604-4338-B773-6D504F756ED6}
06:19:03.661 Description         = Bluetooth Device (Personal Area Network)
06:19:03.661 PhysAddr            = E4-B3-18-85-52-86
06:19:03.661 LinkType            = NdisMedium802_3
06:19:03.661 Default Adapter?    = No
06:19:03.661 MediaConnected?     = No                   ** CABLE UNPLUGGED **
06:19:03.661 PromiscuousMode?    = Yes
06:19:03.661 DHCP Enabled?       = Yes
06:19:03.661 LinkSpeed           = 3.0 Mbps
06:19:03.663 MaxPacketLen        = 1514
06:19:03.663 IPAddr              = 0.0.0.0
06:19:03.663 IPAddrMask          = 0.0.0.0
06:19:03.663 GatewayIPAddr       = 0.0.0.0
06:19:03.663 dwIndex             = 0x00000012
06:19:03.663 Checksum offloading = no
06:19:03.663
06:19:03.673 Connection          = Wi-Fi
06:19:03.673 AdapterName         = NPF_{0CBCA5FA-EE32-4EA7-9D74-EB4C407CD078}
06:19:03.673 Description         = Intel(R) Dual Band Wireless-AC 8260
06:19:03.673 PhysAddr            = E4-B3-18-85-52-82
06:19:03.673 LinkType            = NdisMedium802_3
06:19:03.673 Default Adapter?    = No
06:19:03.673 MediaConnected?     = No                   ** CABLE UNPLUGGED **
06:19:03.674 PromiscuousMode?    = Yes
06:19:03.674 DHCP Enabled?       = Yes
06:19:03.674 LinkSpeed           = 1.5 Mbps
06:19:03.674 MaxPacketLen        = 1514
06:19:03.674 IPAddr              = 0.0.0.0
06:19:03.674 IPAddrMask          = 0.0.0.0
06:19:03.674 GatewayIPAddr       = 192.168.137.1
06:19:03.674 dwIndex             = 0x00000004
06:19:03.674 Checksum offloading = as follows:
06:19:03.674
06:19:03.674    V4Transmit.TcpChecksum:  no
06:19:03.674    V4Transmit.UdpChecksum:  no
06:19:03.674    V4Transmit.IpChecksum:   no
06:19:03.674
06:19:03.674    V4Receive.TcpChecksum:   no
06:19:03.674    V4Receive.UdpChecksum:   no
06:19:03.674    V4Receive.IpChecksum:    no
06:19:03.674
06:19:03.674    V6Transmit.TcpChecksum:  no
06:19:03.674    V6Transmit.UdpChecksum:  no
06:19:03.674
06:19:03.674    V6Receive.TcpChecksum:   no
06:19:03.674    V6Receive.UdpChecksum:   no
06:19:03.674
06:19:03.684 Connection          = Connexion au réseau local* 1
06:19:03.684 AdapterName         = NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6}
06:19:03.684 Description         = Microsoft Wi-Fi Direct Virtual Adapter
06:19:03.684 PhysAddr            = E4-B3-18-85-52-83
06:19:03.684 LinkType            = NdisMedium802_3
06:19:03.684 Default Adapter?    = No
06:19:03.684 MediaConnected?     = No                   ** CABLE UNPLUGGED **
06:19:03.684 PromiscuousMode?    = No                   ** WARNING **
06:19:03.684 DHCP Enabled?       = Yes
06:19:03.684 LinkSpeed           = 1.5 Mbps
06:19:03.684 MaxPacketLen        = 1514
06:19:03.684 IPAddr              = 0.0.0.0
06:19:03.684 IPAddrMask          = 0.0.0.0
06:19:03.684 GatewayIPAddr       = 0.0.0.0
06:19:03.684 dwIndex             = 0x00000014
06:19:03.684 Checksum offloading = as follows:
06:19:03.684
06:19:03.684    V4Transmit.TcpChecksum:  no
06:19:03.684    V4Transmit.UdpChecksum:  no
06:19:03.684    V4Transmit.IpChecksum:   no
06:19:03.684
06:19:03.684    V4Receive.TcpChecksum:   no
06:19:03.684    V4Receive.UdpChecksum:   no
06:19:03.684    V4Receive.IpChecksum:    no
06:19:03.684
06:19:03.684    V6Transmit.TcpChecksum:  no
06:19:03.684    V6Transmit.UdpChecksum:  no
06:19:03.684
06:19:03.684    V6Receive.TcpChecksum:   no
06:19:03.684    V6Receive.UdpChecksum:   no
06:19:03.684
06:19:03.686 ** CAdapter(NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6})::IntSyncDeviceIoControl: DeviceIoControl(-2147483648) failed; rc=1: Fonction incorrecte.
06:19:03.687 ** CAdapter(NPF_{FBA44068-7D84-4D36-A7B9-F685B32BB1F6})::FinishOpenAdapter: WARNING: SetOID( OID_GEN_CURRENT_PACKET_FILTER = NDIS_PACKET_TYPE_PROMISCUOUS ) failed; rc=1: Fonction incorrecte.
06:19:03.693 Connection          = Connexion au réseau local* 2
06:19:03.693 AdapterName         = NPF_{746C537F-66B1-4F0D-8111-237A6778EB51}
06:19:03.694 Description         = Microsoft Wi-Fi Direct Virtual Adapter #2
06:19:03.694 PhysAddr            = E6-B3-18-85-52-82
06:19:03.694 LinkType            = NdisMedium802_3
06:19:03.694 Default Adapter?    = No
06:19:03.694 MediaConnected?     = No                   ** CABLE UNPLUGGED **
06:19:03.694 PromiscuousMode?    = Yes
06:19:03.694 DHCP Enabled?       = No
06:19:03.694 LinkSpeed           = 1.5 Mbps
06:19:03.694 MaxPacketLen        = 1514
06:19:03.694 IPAddr              = 0.0.0.0
06:19:03.694 IPAddrMask          = 0.0.0.0
06:19:03.694 GatewayIPAddr       = 0.0.0.0
06:19:03.694 dwIndex             = 0x00000008
06:19:03.694 Checksum offloading = as follows:
06:19:03.694
06:19:03.694    V4Transmit.TcpChecksum:  no
06:19:03.694    V4Transmit.UdpChecksum:  no
06:19:03.694    V4Transmit.IpChecksum:   no
06:19:03.694
06:19:03.694    V4Receive.TcpChecksum:   no
06:19:03.694    V4Receive.UdpChecksum:   no
06:19:03.694    V4Receive.IpChecksum:    no
06:19:03.694
06:19:03.694    V6Transmit.TcpChecksum:  no
06:19:03.694    V6Transmit.UdpChecksum:  no
06:19:03.694
06:19:03.694    V6Receive.TcpChecksum:   no
06:19:03.694    V6Receive.UdpChecksum:   no
06:19:03.694
06:19:03.708 ** UNPAID TRIAL COPY **
06:19:03.708
06:19:15.500 *** Interface tun0 enabled/up... (ip=192.168.137.121, mac=02-00-5E-A8-89-79)
06:19:15.500
06:19:15.500 ** UNPAID TRIAL COPY **
06:19:15.500
06:19:21.350
06:19:21.350 ** START ** UNPAID TRIAL COPY ** PING TEST **
06:19:21.350
06:19:21.351  ping  -c 3  -i 1000  -s 32  -w 500  www.linux.org [104.26.14.72]
06:19:21.351
06:19:21.351  Sending ping #1 bytes=32 to www.linux.org [104.26.14.72]...
06:19:21.362  Reply to ping #1 received from 104.26.14.72: bytes=32 time=15ms TTL=56
06:19:22.354  Sending ping #2 bytes=32 to www.linux.org [104.26.14.72]...
06:19:22.363  Reply to ping #2 received from 104.26.14.72: bytes=32 time=15ms TTL=56
06:19:23.359  Sending ping #3 bytes=32 to www.linux.org [104.26.14.72]...
06:19:23.368  Reply to ping #3 received from 104.26.14.72: bytes=32 time=<1ms TTL=56
06:19:24.369
06:19:24.369  Ping statistics for www.linux.org [104.26.14.72]:
06:19:24.369
06:19:24.369      3 Pings Sent
06:19:24.369      3 Replies Received (Minimum = 0ms, Maximum = 15ms, Average = 10ms)
06:19:24.369      0 Pings Timeouts
06:19:24.369      0 Duplicate Replies
06:19:24.369      0 Pings Lost (0%)
06:19:24.369
06:19:24.369  Ping test successful.
06:19:24.369
06:19:24.369 ** END ** UNPAID TRIAL COPY ** PING TEST **
06:19:24.369

@prenard
Copy link
Author

prenard commented Dec 22, 2024

Hercules.cnf with "0E20.2 CTCI 192.168.137.121 0.0.0.0 -n 192.168.137.254"

@prenard
Copy link
Author

prenard commented Dec 22, 2024

Try to fix my problem, I have modified my configuration to use OSD and now I go further...

In my Hercules.conf => 0400.3 QETH iface C8-5B-76-A5-4A-B3 ipaddr 192.168.137.122/32 chpid F0 debug
=> devices 0400-0402 are ok now!

My TCPIP configuration:

 INTERFACE TUNNEL                   
    DEFINE IPAQENET CHPIDTYPE OSD   
    PORTNAME PORTA                  
    IPADDR 192.168.137.122          

 ROUTE 192.168.137.0  255.255.255.0   =         TUNNEL MTU 1492  
 ROUTE DEFAULT                  192.168.137.1   TUNNEL MTU 1492  

 START TUNNEL

VTAM definition for PORTA:

OSATRL1 VBUILD TYPE=TRL                                              
* TUNNEL PORT TO FEDORA                                              
OSATRL1E TRLE LNCTL=MPC,READ=(0400),WRITE=(0401),DATAPATH=(0402),    
               PORTNAME=PORTA,                                       
               MPCLEVEL=QDIO                                         

When I IPL my zOS 3.1 system, I start TCPIP and I get:

D U,,,0400                                                   
IEE457I 09.08.50 UNIT STATUS 325                             
UNIT TYPE STATUS        VOLSER     VOLSTATE      SS          
0400 OSA  O                                       0          
0401 OSA  O                                       0          
0402 OSA  O                                       0          
0403 OSA  OFFLINE                                 0          
EZZ4340I INITIALIZATION COMPLETE FOR INTERFACE TUNNEL                   
EZZ4343I ERROR E006 REGISTERING IP ADDRESS 192.168.137.122 FOR INTERFACE
 TUNNEL                                                                 
EZZ4341I DEACTIVATION COMPLETE FOR INTERFACE TUNNEL                     
E006 =

E006
The IP address table is full. Remove some of your TCP/IP addresses. See [Table 1](https://www.ibm.com/docs/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.ioaz100/sumry.htm#sumry__funlim) for the limits of each OSA type.
Netstat dev:

EZZ2778I IntfName: TUNNEL            IntfType: IPAQENET   IntfStatus: Not Activ
         e                                                                     
EZZ2778I     PortName: PORTA     Datapath: Unknown  DatapathStatus: Not Active 
                                                                               
EZZ2778I     CHPIDType: OSD            SMCR: Yes                               
EZZ2778I     SMCD: Yes                                                       
EZZ2764I     IpBroadcastCapability: No                                       
EZZ2778I     CfgRouter: Non                 ActRouter: Unknown               
EZZ2778I     CfgMtu: None                   ActMtu: Unknown                  
EZZ2778I     IpAddr: 192.168.137.122/0                                       
EZZ2822I     VLANid: None                   VLANpriority: Unknown            
EZZ2670I     InbPerf: Balanced                                               
EZZ2825I     SecClass: 255                  MonSysplex: No                   
EZZ2669I     Isolate: No                    OptLatencyMode: No               
EZZ2810I   Multicast Specific:                                               
EZZ2811I     Multicast Capability: Unknown                                   
EZZ2812I     Group             RefCnt      SrcFltMd                          
EZZ2813I     -----             ------      --------                          
EZZ2814I     224.0.0.1         0000000001  Exclude                           
EZZ2808I       SrcAddr: None                                                 
EZZ3080I   Interface Statistics:                                             
EZZ3081I     BytesIn                           = 0                           
EZZ3082I     Inbound Packets                   = 0                           
EZZ3083I     Inbound Packets In Error          = 0                           
EZZ3084I     Inbound Packets Discarded         = 0                           
EZZ3085I     Inbound Packets With No Protocol  = 0                           
EZZ3086I     BytesOut                          = 0                           
EZZ3087I     Outbound Packets                  = 0                           
EZZ3088I     Outbound Packets In Error         = 4          
EZZ3089I     Outbound Packets Discarded        = 0          

Hercules log:

08:56:04 HHC03806E 0:0401 QETH: : Cannot register guest IP address 192.168.137.122
08:56:04 HHC00007I Previous message from function 'register_ipv4' at qeth.c(693)
08:56:04 HHC03991D 0:0400 QETH: RRH_TYPE_IPA: IPA_CMD_SETIP (IPv4): Response
08:56:04 HHC03981D 0:0400 QETH: TH : +0000> 00E00000 0000000E 00000014 00000060  ...............`  .\.............-
08:56:04 HHC03981D 0:0400 QETH: TH : +0010> 0FFC0001                             ....              ....            
08:56:04 HHC03981D 0:0400 QETH: RRH: +0000> 00000000 C17E0001 00000000 00000000  .....~..........  ....A=..........
08:56:04 HHC03981D 0:0400 QETH: RRH: +0010> 00240020 00002005 0001010B 00000000  .$. .. .........  ................
08:56:04 HHC03981D 0:0400 QETH: RRH: +0020> 00000000                             ....              ....            
08:56:04 HHC03981D 0:0400 QETH: PH : +0000> 01000020 00000040                    ... ...@          .......         
08:56:04 HHC03981D 0:0400 QETH: IPA: +0000> B1000008 E0060100 01010004 00001571  ...............q  ....\...........
08:56:04 HHC03981D 0:0400 QETH: IPA: +0010> 00000451                             ...Q              ....            
08:56:04 HHC03981D 0:0400 QETH: Cmd: +0000> C0A8897A FFFFFF00 00000000           ...z........      {yi:........    
08:56:04 HHC03991D 0:0401 QETH: RRH_TYPE_ULP: PUK_TYPE_DISABLE (ULP_DISABLE): Request
08:56:04 HHC03981D 0:0401 QETH: TH : +0000< 00E00000 0000000F 00000014 00000055  ...............U  .\..............
08:56:04 HHC03981D 0:0401 QETH: TH : +0010< 10000001                             ....              ....            
08:56:04 HHC03981D 0:0401 QETH: RRH: +0000< 00000000 417E0001 00000004 00000003  ....A~..........  .....=..........
08:56:04 HHC03981D 0:0401 QETH: RRH: +0010< 00240015 00001505 D8C5E3F3 00000000  .$..............  ........QET3....
08:56:04 HHC03981D 0:0401 QETH: RRH: +0020< 00000000                             ....              ....            
08:56:04 HHC03981D 0:0401 QETH: PH : +0000< 01000015 00000040                    .......@          .......         
08:56:04 HHC03981D 0:0401 QETH: PUK: +0000< 000C4103 00090000 00000000           ..A.........      ............    
08:56:04 HHC03981D 0:0401 QETH: PUS: +0000< 00090403 05000101 09                 .........         .........       
08:56:04 HHC03991D 0:0402 QETH: Halting data device
08:56:04 HHC03991D 0:0402 QETH: Activate Queues: QDSIG_HALT received
08:56:04 HHC03991D 0:0402 QETH: Activate Queues: Exit
08:56:04 HHC03991D 0:0402 QETH: Data device halted
08:57:48 HHC03991D 0:0401 QETH: RRH_TYPE_CM: PUK_TYPE_TAKEDOWN (CM_TAKEDOWN): Request
08:57:48 HHC03981D 0:0401 QETH: TH : +0000< 00E00000 00000010 00000014 00000055  ...............U  .\..............
08:57:48 HHC03981D 0:0401 QETH: TH : +0010< 10000001                             ....              ....            
08:57:48 HHC03981D 0:0401 QETH: RRH: +0000< 00000000 817E0001 00000000 00000000  .....~..........  ....a=..........
08:57:48 HHC03981D 0:0401 QETH: RRH: +0010< 00240015 00001505 D8C5E3F1 00000000  .$..............  ........QET1....
08:57:48 HHC03981D 0:0401 QETH: RRH: +0020< 00000000                             ....              ....            
08:57:48 HHC03981D 0:0401 QETH: PH : +0000< 01000015 00000040                    .......@          .......         
08:57:48 HHC03981D 0:0401 QETH: PUK: +0000< 000C4105 00090000 00000000           ..A.........      ............    
08:57:48 HHC03981D 0:0401 QETH: PUS: +0000< 00090404 05D8C5E3 F3                 .........         .....QET3       
08:57:48 HHC03991D 0:0401 QETH: RRH_TYPE_CM: PUK_TYPE_DISABLE (CM_DISABLE): Request
08:57:48 HHC03981D 0:0401 QETH: TH : +0000< 00E00000 00000011 00000014 00000055  ...............U  .\..............
08:57:48 HHC03981D 0:0401 QETH: TH : +0010< 10000001                             ....              ....            
08:57:48 HHC03981D 0:0401 QETH: RRH: +0000< 00000000 817E0001 00000000 00000000  .....~..........  ....a=..........
08:57:48 HHC03981D 0:0401 QETH: RRH: +0010< 00240015 00001505 D8C5E3F1 00000000  .$..............  ........QET1....
08:57:48 HHC03981D 0:0401 QETH: RRH: +0020< 00000000                             ....              ....            
08:57:48 HHC03981D 0:0401 QETH: PH : +0000< 01000015 00000040                    .......@          .......         
08:57:48 HHC03981D 0:0401 QETH: PUK: +0000< 000C4103 00090000 00000000           ..A.........      ............    
08:57:48 HHC03981D 0:0401 QETH: PUS: +0000< 00090403 05000101 06                 .........         .........       
08:57:48 HHC03991D 0:0401 QETH: qeth_halt_or_clear: noop!
08:57:48 HHC03983D 0:0401 QETH: Shutdown Notify
08:57:48 HHC00979D 0:0401 QETH: END: +0000< 0000C000 80000000                    ........         ..{.....        
08:57:48 HHC03991D 0:0401 QETH: qeth_halt_or_clear: noop!
08:57:51 HHC03991D 0:0400 QETH: Halting read device
08:57:51 HHC03991D 0:0400 QETH: Read device halted

@prenard
Copy link
Author

prenard commented Dec 22, 2024

Trying another coding:

0400.3 QETH iface C8-5B-76-A5-4A-B3 ipaddr 192.168.137.122 netmask 255.255.255.0 chpid F0 debug

But exactly same problem => E006

@prenard
Copy link
Author

prenard commented Dec 22, 2024

Same problem if using OSA or OSD type instead of QETH

@Fish-Git
Copy link
Member

Where can I find Hercules log?

Wherever your -o logfile, --output=logfile or --logfile=logfile option specified:

(It is recommended that you always specify a log file option.)
 

When it is started with admin level it is not possible to scroll up in Hercules window to see start messages

Whether you start Hercules in admin mode or not, you should still be able to scroll the Hercules window. That is to say, admin mode does not prevent scrolling.  You can always scroll:

(Note: normal scrolling is available on all systems. Extended scrolling however, is only available on Windows.)

Whether you will be able to scroll up all the way to the very beginning (i.e. back to to the very first message that Hercules issued) or not, depends on how many messages Hercules has issued thus far. Hercules only maintains (only keeps) a 1MB buffer of recently issued messages. If there have been more than 1MB of messages issued, then the buffer "wraps around" and the older messages are overlaid with new messages.

But that is SOLELY for scrolling from the Hercules window (panel). The Hercules LOG file is completely different. The Hercules log file always contains ALL messages that Hercules has ever issued. It is a simple text that Hercules continuously writes to as it runs.

It is the Hercules LOG file that I need to see, not the screen messages.

@Fish-Git
Copy link
Member

Fish-Git commented Dec 22, 2024

Hercules.cnf with "0E20.2 CTCI 192.168.137.121 0.0.0.0 -n 192.168.137.254"

FYI:  You do not need to paste the contents of your files in your response.  GitHub allows you to upload (attach) files to your comment/response:

I would like to see your entire configuration file please.

@Fish-Git
Copy link
Member

You still have not told me what guest you are trying to run.  It is z/OS?  What version of z/OS?  Is it z/OS 3.1?

@prenard
Copy link
Author

prenard commented Dec 22, 2024

I plan to run z/OS 3.1 & z/VM 7.3
Last tests were done with z/OS 3.1

@prenard
Copy link
Author

prenard commented Dec 22, 2024

Main problem now is:

EZZ4343I ERROR E006 REGISTERING IP ADDRESS 192.168.137.122 FOR INTERFACE TUNNEL

When TCPIP is starting OSD interface generating in Hercules log:


08:56:04 HHC03806E 0:0401 QETH: : Cannot register guest IP address 192.168.137.122
08:56:04 HHC00007I Previous message from function 'register_ipv4' at qeth.c(693)

See above posts.

@Fish-Git
Copy link
Member

Fish-Git commented Dec 22, 2024

My TCPIP configuration:

 INTERFACE TUNNEL                   
    DEFINE IPAQENET CHPIDTYPE OSD   
    PORTNAME PORTA                  
    IPADDR 192.168.137.122          

 ROUTE 192.168.137.0  255.255.255.0   =         TUNNEL MTU 1492  
 ROUTE DEFAULT                  192.168.137.1   TUNNEL MTU 1492  

 START TUNNEL

Please forgive me, but I do not know much about z/OS.  I am skilled at Hercules, but I am not skilled at every operating system that Hercules is able to run!  (There are simply too many operating systems in existence for me to be an expert at each one!)

With that said, here is my own ADCD.Z31A.TCPPARMS(PROF2) member that I am using that seems to work fine for me:

Please notice three things:

1, I am using INBPERF DYNAMIC.  (Is that important?  I don't know!)
2. I commented out the "include adcd.Z31A.tcpparms(zpdtdev1)" statement.  (Is that important?  I don't know!)
3. My START command for the defined interface, follows after the ITRACE, IPCONFIG ... etc statements.  (Is that important?  I don't know!)

I also had to modify several other TCPPARMS members as well (GBLIPNOD, GBLTDATA and TCPDATA), as well as my ADCD.Z31A.PROCLIB ( TCPIP ) member too:

(Notice that I changed the //SYSTCPD DD ... statement at the end, to point to my TCPPARMS(TCPDATA) member in ADCD.&SYSVER.. where all of my DNS servers are listed.   Is that important?  I don't know!)

 
 

THE BOTTOM LINE IS...   Your problem appears likely be a guest operating system (i.e. z/OS) configuration error, and likely not a problem with Hercules.

MAYBE.

Examining Hercules's qeth.c code near line 693, it appears Hercules supports only a maximum of 32 different IP addresses (per OSA device??), so you need to do what you can to reduce that amount.  THAT (too many z/OS ip addresses being registered) is what is causing error HHC03806E.

I do not know why it was failing when LCS devices were being used.  I haven't tried using LCS devices in many years.  I know LCS devices worked just fine in earlier versions of z/OS, but it might be that modern (current) versions of z/OS not longer support CTCI or LCS devices?  Maybe modern versions of z/OS now only support OSA devices?  I don't know!  :(

As I said, I am not skilled at z/OS.  :(

I am only skilled(?) at Hercules.

I hope that helps!

@Fish-Git Fish-Git added IN PROGRESS... I'm working on it! (Or someone else is!) Researching... The issue is being looked into or additional information is being gathered/located. and removed QUESTION... A question was asked but has not been answered yet, -OR- additional feedback is requested. labels Dec 22, 2024
@prenard
Copy link
Author

prenard commented Dec 22, 2024

I use now QETH and not LCS anymore.
I have checked the tcpip configuration on zos which is correct (it works using zD&T).
There is a problem when the ip address has to be registered in the OSA card... I suspect a problem of authorization...
Did you test your configuration on Windows 11?

@Fish-Git
Copy link
Member

Fish-Git commented Dec 22, 2024

I do not know why it was failing when LCS devices were being used.  I haven't tried using LCS devices in many years.  I know LCS devices worked just fine in earlier versions of z/OS, but it might be that modern (current) versions of z/OS not longer support CTCI or LCS devices?  Maybe modern versions of z/OS now only support OSA devices?  I don't know!  :(

FYI:

1. Removal of support for configuring LAN Channel Station (LCS) interfaces in TCP/IP technology:
This function is no longer supported in z/OS 3.1. Configuration for this function remains in the Network Configuration Assistant, however, for stacks in 3.1 and later level images, configuration will not be generated for LCS interfaces.

So it looks like, starting with z/OS 3.1, you must use only OSA devices. That explains why your original attempt was failing.

@Fish-Git
Copy link
Member

Fish-Git commented Dec 22, 2024

Did you test your configuration on Windows 11?

I still use Windows 7, and it works just fine, both natively as well as a guest under z/VM.

I do have both Windows 10 and Windows 11 installed as VMware virtual machines. But since they both run as absolute pigs (PAINFULLY slow!), (but then maybe it's VMware causing that?), I rarely -- if ever -- use them. But I honestly don't see why they wouldn't work there too. I'll give it a try when I find the time.

But whether it works or not on Windows 11, that would still be a Windows problem, not a Hercules problem.  I can only help resolve Hercules problems.

@Fish-Git
Copy link
Member

I do have both Windows 10 and Windows 11 installed as VMware virtual machines. But since they both run as absolute pigs (PAINFULLY slow!), (but then maybe it's VMware causing that?), I rarely -- if ever -- use them. But I honestly don't see why they wouldn't work there too. I'll give it a try when I find the time.

I tried to setup my Win11 virtual machine to IPL z/OS 3.1, but unfortunately I could not. Apparently my version of VMware has some limit regarding the size that the files can be when copying over files from the host to the guest (and as we all know, some z/OS dasds can be quite large, even when using compressed dasd). Basically, it kept issuing a completely worthless error dialog saying, effectively, "Something went wrong". It would only do this on the largest dasds (several GB). Other dasds (and shadow files) less than. say 1GB, would copy over just fine.

So I was unable to create and IPLable z/OS 3.1 system on my Windows 11 VMware virtual machine to test whether there are any issues with Hercules/CTCI-WIN and Windows 11 with respect to QETH (OSA) devices. Sorry!

But I saw your question posted to the Hercules forum "Who is using Hercules with QETH (OSA QDIO) network connectivity on Windows 11?", and noticed that:

  1. Several people responded in the affirmative and that they weren't having any problems. and:
  2. NO ONE has yet to responded saying they've been having any problems whatsoever.

So I can only conclude from this that it must be something unusual about your particular Windows 11 system that is causing your problem. What it is, I don't know. I wouldn't know where to even begin!

But since it has been pretty much proven that the problem is NOT a Hercules related issue (or, for that matter, a CTCI-WIN related issue either), there is nothing more I can do for you. I'm afraid you're on your own for this one, prenard. Sorry!  :(

Closing as "Unknown" and "WON'T FIX".

@Fish-Git Fish-Git added (*WON'T FIX*) The requested change was rejected or the described behavior is by design. (Unknown) Unresolved. It might be a bug. It might not. We don't know. We couldn't reproduce it. and removed BUG The issue describes likely incorrect product functionality that likely needs corrected. IN PROGRESS... I'm working on it! (Or someone else is!) Researching... The issue is being looked into or additional information is being gathered/located. labels Dec 23, 2024
@prenard
Copy link
Author

prenard commented Dec 29, 2024

With Windows 11 - French:

C:\Users\patri>echo %time%
8:16:57,95

@prenard
Copy link
Author

prenard commented Dec 29, 2024

Hercules configuration on Windows 11 French:

hercules.cnf.txt
dasd_user.cnf.txt
dasd_zOS_V3R1-2311.cnf.txt
dasd_zVM_V7R3-2311.cnf.txt

@prenard
Copy link
Author

prenard commented Dec 29, 2024

For information:

Same z/OS 3.1 TCPIP configuration works on Uduntu 24-10 / Hercules 4.8-DEV with QETH

So, it is really a problem of implementation on Windows 11 / CTCI-Win

@alvaro-vantis-pt
Copy link

Hi prenard, I'm having a similar issue trying to configure a QETH device on linux system using a tap link. Are you using a TAP or a TUN? Can you show me the DEVICE statement that you used on your hercules configuration file?

Thanks

@mcisho
Copy link
Contributor

mcisho commented Dec 31, 2024

The Hercules config used by prenard was attached by him to this issue a couple of days ago. However, whether QETH uses a TUN or a TAP interface is controlled by the Hercules guest, the Hercules config has no influence.

@alvaro-vantis-pt
Copy link

He attached the one he used in windows and it's not working. I've asked the one he used on linux where he said that it's working. On linux, you have to configure tun0 or tap0 on hercules config. I'm trying to use as a tap0 device but it's not working. I can't find any example on internet about the using of tap0.

@mcisho
Copy link
Contributor

mcisho commented Jan 1, 2025

As I said, whether a TUN or a TAP interface is used with QETH depends on the guest operating system running under Hercules. If the guest is z/OS -type system a TUN interface must be used, other guest types might use TUN or TAP interfaces depending on the guests configuration.

Perhaps if you were to provide a description of what's "not working", and attach your complete Hercules config and the complete Hercules log showing that "it's not working", we might know what help to provide.

@prenard
Copy link
Author

prenard commented Jan 1, 2025

On Windows 11 with Hercules 4.8-DEV, I found in the log:

17:23:54 HHC90000D DBG: ** Win32 porting error: invalid call to 'w32_select' from qeth.c(861): mixed set(s)

Maybe it is the cause of message?:

17:23:54 HHC00137E Error opening TUN/TAP device 192.168.137.3: No such file or directory

@mcisho mcisho closed this as completed Jan 1, 2025
@mcisho
Copy link
Contributor

mcisho commented Jan 1, 2025

I certainly didn't intend to close this issue!

@mcisho mcisho reopened this Jan 1, 2025
@prenard
Copy link
Author

prenard commented Jan 1, 2025

As requested, I have switched my Windows 11 from French to English US language - but still the same problem:

18:58:18 HHC00137E Error opening TUN/TAP device C8-5B-76-A5-4A-B3: No such file or directory

What is really weird is that this mac address is found by TTTest!

@Fish-Git
Copy link
Member

Fish-Git commented Jan 1, 2025

As requested, I have switched my Windows 11 from French to English US language - but still the same problem

Thank you for doing that, Patrick! Much appreciated.

We now know the chosen host o/s language is definitely not the cause.

What is really weird is that this mac address is found by TTTest!

YES!  I noticed that myself last week, and even mentioned it in one of my comments:

But something is causing CTCI-WIN to not be able to see his adapter. What's weird though, is that TTTest is able to see it just fine! Definitely weird.

 
But now I'm thinking that it may well be the HHC90000D DBG: ** Win32 porting error: invalid call to 'w32_select' from qeth.c(861): mixed set(s) error that is at the root of the problem. That particular error should, ideally, never occur!

@prenard
Copy link
Author

prenard commented Jan 1, 2025

What is the meaning of "Win32 porting error:"?  WIN32 to WIN64 program migration?

@Fish-Git
Copy link
Member

Fish-Git commented Jan 1, 2025

But now I'm thinking that it may well be the HHC90000D DBG: ** Win32 porting error: invalid call to 'w32_select' from qeth.c(861): mixed set(s) error that is at the root of the problem. That particular error should, ideally, never occur!

WRONG!  I failed to look closely enough at the log.

The "porting error" "mixed set(s)" error is being issued well after the original CreateInterface "no such file or directory" error.  It is the CreateInterface error that is at the root of our problem.

If you look at the log, the CreateInterface error occurs, and then everything falls apart afterwards.  So we need to be careful to ignore any errors we might see later on in the log file, as they are almost certainly being caused as a result of the original CreateInterface error.

@Fish-Git
Copy link
Member

Fish-Git commented Jan 1, 2025

What is the meaning of "Win32 porting error:"?  WIN32 to WIN64 program migration?

No, It simply means that a socket function was called with a non-socket file descriptor.

On Windows, sockets are treated very differently from regular file descriptors, and you can't mix the two. If you call a file function, the file descriptor you pass it must be a bona fide file descriptor object. Same with sockets. When you call a socket (WinSock) function, the object that you pass it must be a socket object, not a file descriptor object.

On Linux however, they are both the same. They are all just file descriptors. There is no difference between a file descriptor for a disk file and a file descriptor for a network link. Thus, on Linux, it is perfectly legal for the "fdset" in a "select" call to contain file descriptors for disk files AND/OR file descriptors for socket connections.

On Windows however, you can't do that. On Windows, when you call the "select" function -- which is a socket networking function -- all of the file descriptors in your "fdset", must ALL be socket type file descriptors. If Hercules detects any non-socket file descriptors in any of its sets being used in a "select" call, it throws the "mixed set(s)" error that you are seeing.

It's called a "Win32 porting error" because Hercules was originally written for Linux, not Windows, and the effort to make it run on Windows too, involved a lot of "porting" effort in certain areas.

@prenard
Copy link
Author

prenard commented Jan 2, 2025

Thanks Fish.

Do I really need to create a registery entry

HKEY_CURRENT_USER\Software\Software Development Laboratories\TunTap\Settings\DefaultIFace

pointing to IP or MAC address of Ethernet interface?

TTTest does not need it. So, It is not clear to me, if I really have to define it...

@prenard
Copy link
Author

prenard commented Jan 2, 2025

How Hercules knows that it is running on Linux or Windows?

I used Hercules-Helper to compile Hercules 4.8-DEV on Windows 11. Does Hercules-Helper support Windows 11?

Perhaps, I did something wrong... And Hercules does not know that it is running on Windows when it has to use CTCI-WIN...

@prenard
Copy link
Author

prenard commented Jan 2, 2025

My Windows 11 version is 24H2

PS C:\Users\patri> (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").displayversion
24H2

@Fish-Git
Copy link
Member

Fish-Git commented Jan 3, 2025

Do I really need to create a registery entry

HKEY_CURRENT_USER\Software\Software Development Laboratories\TunTap\Settings\DefaultIFace

pointing to IP or MAC address of Ethernet interface?

TTTest does not need it. So, It is not clear to me, if I really have to define it...

No.  If TTTest runs okay without it, then you should not need it.

@Fish-Git
Copy link
Member

Fish-Git commented Jan 3, 2025

How Hercules knows that it is running on Linux or Windows?

By how it is built. When you build Hercules, you tell it which operating system you are building it for. You tell it specifically which operating system is your intended "target" operating system (i.e. on which operating system you expect your executable to be run on).

@Fish-Git
Copy link
Member

Fish-Git commented Jan 3, 2025

I used Hercules-Helper to compile Hercules 4.8-DEV on Windows 11. Does Hercules-Helper support Windows 11?

Absolutely!

@Fish-Git
Copy link
Member

Fish-Git commented Jan 3, 2025

Perhaps, I did something wrong... And Hercules does not know that it is running on Windows when it has to use CTCI-WIN...

Nope.  You did nothing wrong.  WE did something wrong, not you.  (And by "we" I mean me!)

There is a known bug in CTCI-WIN that I am actively trying to find and fix, which I believe is causing your problem.

It is going to take me a "while" (short while? long while? Unknown!) to locate the bug and get it fixed, but rest assured I am working on it as fast as I can!

In the mean time, it looks like you are unfortunately not going to be able to use networking on your Hercules on Windows. I am truly sorry about that.   :(

As soon as I find and fix my bug, I will let you know, and will send you the fix.

@Fish-Git Fish-Git added BUG The issue describes likely incorrect product functionality that likely needs corrected. IN PROGRESS... I'm working on it! (Or someone else is!) Ongoing Issue is long-term. Variant of IN PROGRESS: it's being worked on but maybe not at this exact moment. labels Jan 3, 2025
@prenard
Copy link
Author

prenard commented Jan 4, 2025

Thanks Fish.
I will wait for the fix to run on Windows!

In parallel, I try to implement my configuration on Ubuntu 24-10, but I have another problem.
My configuration is z/VM with 3 z/OS guests. So 4 systems to connect to the network.

So I tried to defined 4 QETH tun devices to connect 4 systems and I have a strange result: first 2 tun devices are working ok but when I try to use the 3rd one, Hercules crashes with an "out of bound" message...

I wonder if Hercules supports more than 2 QETH tun devices... I think that I read in a post that it only supports 2. Can you confirm?

If so, I will have to use a z/VM configuration with VSWITCH.

Thanks for your help.

@mcisho
Copy link
Contributor

mcisho commented Jan 4, 2025

I wonder if Hercules supports more than 2 QETH tun devices... I think that I read in a post that it only supports 2.
Can you confirm? If so, I will have to use a z/VM configuration with VSWITCH.

Yes, Hercules supports more than 2 QETH tun devices. In the past I have run a VM system on Linux with a half dozen or more QETH's, each one attached to a different guest virtual machine. These days the system is down to only 4 QETH's.

So, as always, can we see the Hercules config and log file, please? And when you say "crashes", do you mean a dump is produced?

@Fish-Git
Copy link
Member

Fish-Git commented Jan 4, 2025

FYI:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG The issue describes likely incorrect product functionality that likely needs corrected. IN PROGRESS... I'm working on it! (Or someone else is!) Ongoing Issue is long-term. Variant of IN PROGRESS: it's being worked on but maybe not at this exact moment. Researching... The issue is being looked into or additional information is being gathered/located. (Unknown) Unresolved. It might be a bug. It might not. We don't know. We couldn't reproduce it. W Possible Windows only issue, that seems to occur more easily/frequently on Windows.
Projects
None yet
Development

No branches or pull requests

5 participants