Run a 1970s
mainframe
on AIX.
# hercules-4.9.1 · System/370 · ESA/390 · z/Architecture · IBM POWER ppc64
POWER and z/Architecture
speak the same byte order.
Both IBM POWER and z/Architecture are big-endian. Running Hercules on AIX eliminates the byte-swap overhead that x86 Linux pays on every memory access into the emulated mainframe. It's a genuinely sensible architectural match — which makes this even more absurd to be doing in 2025.
From zero to MVS
in four commands.
Install, create a DASD volume, write a config, start Hercules. Then connect a tn3270 terminal emulator to port 3270 and IPL your OS.
For MVS 3.8j, grab the free MVS/TK5 turnkey — the easiest way to boot a real IBM mainframe OS.
50 years of IBM mainframe.
One binary.
Hercules emulates three generations of IBM mainframe architecture in a single executable.
VM/370 — IBM's original virtual machine OS.
DOS/VSE, OS/VS1.
OS/390 — precursor to z/OS.
VM/ESA, VSE/ESA.
z/VM, z/VSE — current virtual environments.
Linux on z — also runs.
Not just the emulator.
The full toolkit.
DASD management, tape utilities, compression tools — everything to manage mainframe disk and tape images on AIX.
Minimal config.
Boot in minutes.
Create myconfig.cnf, point at your DASD image, start Hercules, connect tn3270 to localhost:3270.
# CPU + memory CPUSERIAL 000001 CPUMODEL 3906 MAINSIZE 64 # MB of emulated RAM ARCHMODE z/Arch # or S/370 or ESA/390 NUMCPU 1 # up to 128 # 3270 console — connect via tn3270 to localhost:3270 CNSLPORT 3270 # HTTP operator console (optional) HTTPPORT 8081 noauth # Your DASD image (create with dasdinit first) 0100 3390 myvol.3390 # Start Hercules: hercules -f myconfig.cnf
What doesn't work.
And why that's okay.
This is a curiosity project. Knowing the limits upfront saves you from false expectations.
/dev/urandom. Just ignore it.Questions
What is the Hercules mainframe emulator?
Why run Hercules on AIX instead of Linux?
Does Hercules on AIX support networking?
Which mainframe operating systems can I run?
What is the PCLMULQDQ warning?
/dev/urandom. You can safely ignore it.How do I get MVS 3.8j running?
Part of the LibrePower ecosystem
Hercules sits alongside the more serious packages in LibrePower's AIX repository. While you're here, check out what else is available.
Boot MVS 3.8j
on your AIX system.
For the curious. For the nostalgic. For the "wait, that actually works?" moment. QPL license, free RPM, LibrePower AIX repo.