AIX PS/2 1.3 on QEMU w/X11 and Networking!

(This is a guest post by Antoni Sawicki aka Tenox)

In my previous posts I covered AIX 3.2.5, AIX 4.1.5 and AIX 4.3.3 to 7.2 on QEMU. Time for the odd one out: AIX PS/2 1.3, IBM’s Unix for Intel x86 from 1992! Installing it was a puzzle: some of the original floppies in the archives are mislabelled or swapped, and booting from an IDE disk took a trick from Émeric Maschino’s “AIX on IDE” notes.

Floppies work! QEMU’s default floppy controller makes the AIX installer die with 013-013. LEMU fixed that, so AIX installs from the original disks, and you can swap floppy images in the running VM to bring files in with tar or dosread.

Networking! AIX PS/2 comes with network drivers for WD8003 and 3Com 3C509 ISA cards, and QEMU has neither. Luckily there is leaix by rakslice, an AMD PCnet driver ported from NetBSD. It works great with QEMU’s PCnet card: telnet, rsh, ping and DNS, all the way to the internet!

1024×768 in 256 colors! IBM’s X server has a driver for S3 graphics cards, and LEMU emulates the S3 86C928. X finds the card by itself, and runs at 1024×768 instead of 640×480 VGA. That is the biggest mode IBM’s X server has.

Graphical login! AIX PS/2 has no xdm, only its source code in the X11 samples. I compiled it with the MetaWare compiler, and now AIX boots straight to an X11 login box. Log in as root and you get the Motif window manager and an AIX Shell.

Behold! AIX PS/2 1.3 with X11 and the AIXwindows Desktop in 1024×768 on an emulated 486 PC with 16 MB RAM and an S3 86C928 card:

AIX PS/2 1.3 in a QEMU window: the AIXwindows Desktop with the /bin folder open, a digital xclock showing 1998, and an AIX Shell with uname -a and a ping to 1.1.1.1

QEMU PC (i440FX), 486, 16MB RAM, S3 86C928 1MB 1024x768 256 colors, 504MB IDE disk, 1.44MB floppy, AMD PCnet-PCI II

Let’s look at some cool apps!

AIXwindows Desktop on AIX PS/2 1.3 in 1024x768 with the Root folder window open, showing the top level directories as folder icons
AIXwindows Desktop
An aixterm on AIX PS/2 1.3 compiling and running a hello world program with the MetaWare High C Compiler R2.2g
MetaWare High C R2.2g
The INed editor on AIX PS/2 1.3 editing a hello world C program
INed editor
An aixterm on AIX PS/2 1.3 showing banner AIX PS/2 and a fortune: Your mind understands what you have been taught; your heart, what is true.
banner and fortune

Best of all, the image comes with some extra apps, built right on AIX PS/2 with its own MetaWare C compiler:

DOOM in a 640x400 window on AIX PS/2 1.3, a zombieman in a doorway, above an AIX Shell showing uname -a
It runs DOOM!

DOOM is built from id Software’s Linux source and comes with the shareware WAD. It plays in a 640×400 window, and the timedemo runs at 63 fps. No sound though.

xv 3.10a on AIX PS/2 1.3 showing its own logo picture with flying fish, next to the xv controls window and an AIX Shell showing uname -a
xv 3.10a
X11R5 demos on AIX PS/2 1.3: xeyes, oclock, xgas, ico, xlogo and maze, with an AIX Shell showing uname -a
X11R5 demos: xeyes, oclock, xgas, ico, xlogo and maze

These are a few of the 44 X11R5 sample programs that I built from IBM’s sample source. There is also xcalc, puzzle, muncher, plaid, xterm, xman and more.

It even browses the web! NCSA Mosaic 2.7b5 runs on AIX PS/2. NCSA’s own 2.7b5 release had no AIX binary, just a README.ibm saying “We upgraded to AIX 4. Having a little problem compiling. It should be ironed out fairly soon.” There is no HTTPS of course, but plain http:// sites like theoldnet.com and 68k.news work fine. For modern websites you can always use WRP or VNC Brave.

NCSA Mosaic 2.7b5 on AIX PS/2 1.3 in 1024x768 showing IBM's home page from October 1996 through theoldnet.com, next to an oclock and an AIX Shell with uname -a
IBM’s home page from October 1996, in NCSA Mosaic 2.7b5

There is more under the hood: TCP/IP, NFS, sendmail, UUCP, SCCS and the man pages, 28 program products in all, updated to PTF 0024 from 1995. From GNU there is bash 1.14.7, GNU make and gzip, plus an old gcc 1.39 binary from 1991.

If you have your own AIX PS/2, the apps are also available separately, with sources and notes: https://files.42718.net/mirror/tenox/os/aix/1.3ps2/apps/

As usual I have prepared a ready to run, portable image with QEMU binaries for macOS (Apple Silicon), Linux and Windows. Just unpack and run run.sh (or run.cmd on Windows). AIX boots to the X11 login box in about 20 seconds:

The xdm login box of AIX PS/2 1.3 in 1024x768, with the greeting AIX PS/2 1.3 and the login and Password fields
xdm login

Log in as root, no password, and type xdt & in the AIX Shell for the Desktop, or Mosaic & for the web. The text console is on Alt + Right Ctrl. Idle, it uses about 2% of one host core. Set to 2026, AIX PS/2 shows 1970, so the kit runs the clock 28 years back, with the same weekdays.

Download: https://files.42718.net/mirror/tenox/os/aix/Virtual/aix13ps2-lemu.tar.lz

There is also an 86Box version, limited to 640×480 VGA: https://files.42718.net/mirror/tenox/os/aix/Virtual/aix13ps2-86box.tar.lz

Source (LEMU, my QEMU fork): https://github.com/tenox7/lemu

Have Fun with Virtualization!

PS You may also be interested in Don’t waste money on a math coprocessor they said, where Neozeed remembers running AIX on a real PS/2 Model 80.

One thought on “AIX PS/2 1.3 on QEMU w/X11 and Networking!”

  1. I’d be especially curious about the TCF (Locus) facilities. Are they present? Have you tried them? (To do so would require at least two separate instances.)

Leave a Reply