Hercules mainframe emulator
Network Interface
Hercules emulates various types of network connections. The easiest type to configure is the channel-to-channel (CTC) connection. To configure two type-3088 CTC devices at the addresses 0cc0 and 0cc1, you just need to add one line to the configuration file (Listing 2, line 34), and assign an address of 192.168.2.2 to the guest and 192.168.2.1 to the host. The HTML documentation explains the syntax for the device addresses in particular.
To launch Hercules, type the command:
hercules -f conf/ centos45.conf > hercules.log
Figure 2 shows the initial output at the Hercules console. Here, the critical message is HHCCT073I, which tells me that the tun0 network device is open. Unfortunately, the message isn't completely reliable because it depends on the permissions for hercifc; to be certain, you have to check the output from route -n and ifconfig (Listing 3).
Both the routing table (line 4ff.) and the network configuration (lines 29-35) must have entries for the tun0 device.
Listing 3
Verifying the Network Configuration
Using Hercules
The Hercules console is used to control the system. Hercules supports a large number of commands, the most important of which is ipl (initial program load), which initiates the boot process. The maxrates command is useful, too; it outputs the performance in MIPS (million instructions per second).
Hercules supports alternate consoles. Pressing the Esc key toggles between the line-oriented console shown in Figure 1 and the semi-graphic console shown in Figure 3. This view gives you the current performance data, and you can see the register values flash past.
To run Hercules remotely, you also can use an http console (Figure 4), which the administrator must set up in the configuration file (Listing 2, lines 12-13). Also, you can set up username- and password-based authentication, but this does not change the fact that the http connection is insecure.
Installing zLinux
Mainframes support two system architectures: zLinux with 31 bits (s390) and zLinux with 64 bits (s390x). Only the addressing is 31 bits for the 31-bit variant; the data itself uses the full 32 bits.
If you are looking for a free 64-bit zLinux, you can go for either the ThinkBlue/64 Linux [3] or the newer CentOS 4.5 [4], which is the distribution I used for this article.
Debian offers a good alternative; the 31-bit architecture is maintained throughout the Debian releases. I will not cover the differences between the Debian and CentOS installations.
« Previous 1 2 3 4 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.