QEMU fork LEMU adds HP-UX 11i v3 with CDE on PA-RISC and Itanium

Antoni Sawicki's LEMU fork of QEMU now runs HP-UX 11i v3 (11.31) with a graphical CDE desktop on both emulated PA-RISC and Intel Itanium hardware.

QEMU fork LEMU adds HP-UX 11i v3 with CDE on PA-RISC and Itanium
Tenox / Virtually Fun

Developer Antoni Sawicki (better known as Tenox) has updated LEMU, his legacy-hardware fork of QEMU, to boot HP-UX 11i v3 (B.11.31) into a graphical Common Desktop Environment (CDE) session on both PA-RISC and Intel Itanium architectures. Alongside the source changes, Tenox published ready-to-run portable bundles on Virtually Fun with prebuilt binaries for macOS on Apple Silicon, Linux, and Windows.

Upstream QEMU has handled PA-RISC emulation since Linux kernel maintainer Helge Deller introduced the target and SeaBIOS-hppa firmware in October 2017, eventually adding the 64-bit HP C3700 workstation and A400 server. Those machines could boot HP-UX 9.x, 10.20, 11i v1, and 11i v2, yet 11i v3 refused to start because it refuses to run on PA-RISC unless it detects a zx1-class server, and mainline QEMU has no Itanium target at all.

Faking a zx1 server and a Radeon 7500

Getting 11.31 onto PA-RISC meant teaching the emulated HP A400-44 (with a PA-8700 CPU and 4 GB of RAM) to present its bus adapter as a zx1 Pluto chip via a new pluto=on machine flag. Tenox also added an LSI 53C875 SCSI controller that the 11.31 storage driver accepts, patched a serial port bug causing kernel panics, and tracked down a floating-point defect in QEMU's PA-RISC CPU core that crashed the evmd event manager on every boot. Because that math bug lived in the general CPU code, every hppa target benefits from the fix.

HP-UX 11.31's X server dropped drivers for HP's own graphics hardware, weirdly enough, so LEMU pairs the A400 with an emulated ATI Radeon 7500 running CDE at 1280x1024, complete with patches for color rendering and a jumping mouse cursor. Tenox also wired up CPU idle detection to catch HP-UX's spinning idle loop and halt the virtual processor, dropping idle host usage on a Mac to roughly 5% of a single core instead of pegging it at 100%.

The PA-RISC bundle starts from the June 2007 Mission Critical Operating Environment (MCOE) DVDs and is patched up to the May 2020 Data Center OE (B.11.31.2005), preloaded with Bash 5.0, GCC 4.0.2, HP's WDB 5.5 debugger, and standard GNU utilities. Tenox also slipped in a separate updated C3700 image running HP-UX 11i v2 (B.11.23.0712) with December 2010 patches for anyone comparing releases.

Itanium without tracking down an Integrity rack

For the IA-64 build, LEMU pulls in the Itanium 2 9000-series (Montecito) CPU, HP Integrity rx2660 machine definition, and open EFI firmware from syunnPC's experimental qemu-system-ia64 fork, which already booted text-mode HP-UX 11i v3 and OpenVMS 8.4 without needing proprietary HP or Intel ROMs. LEMU layers on 1280x1024 CDE graphics through an emulated ATI ES1000 chip, adds USB mouse support and the proper rx2660 model string, and clears a boot stall on the LSI SAS1068 controller.

HP-UX 11i v3 CDE desktop on an emulated HP rx2660 with a terminal showing uname -a, machinfo of an Itanium 2 9000 series CPU with 4 GB, and the ES1000 graphics card in ioscan
HP-UX 11i v3 running CDE on an emulated HP Integrity rx2660 with an Itanium 2 processor. (Credit: Tenox / Virtually Fun)

Unlike PA-RISC, the Itanium build runs the unpatched February 2007 B.11.31 release from the June 2007 MCOE media and handles its own power management. Setting idle_cpu_hint_enable=1 tells the kernel to issue PAL_HALT_LIGHT instructions when idle, keeping background CPU load around 7% of one host core. It's hard not to smile watching an architecture once nicknamed "Itanic" hum along quietly inside a window on an Apple Silicon laptop.

An enterprise Unix past its expiration date

Hewlett-Packard launched HP-UX 11i v3 in February 2007 as the final major release of its proprietary Unix, spanning the transition from HP 9000 PA-RISC iron to Intel Itanium Integrity servers. HPE ended standard support for HP 9000 systems in March 2021, and standard engineering support for Integrity servers and 11i v3 itself wrapped up on December 31, 2025 (leaving only a frozen mature-support tier without new fixes through 2028).

Real zx1 and Integrity boxes are loud, power-hungry rack servers that aren't getting any easier to keep alive in a home lab. Having self-contained images that reach a CDE login prompt in about four minutes gives sysadmins maintaining straggler enterprise environments, compiler porters, and Unix historians a painless way to poke at HP's last big OS. I'm curious whether syunnPC's IA-64 base and Tenox's graphics fixes eventually open the door to graphical OpenVMS or late-era Windows Server for Itanium next.