r/OpenVMS • • 19d ago

OpenVMS 9.2 in Qemu TCG on Apple Silicon M2 MacBook Air.

Post image

Hopefully complete instructions for running OpenVMS 9.2-3 (x86_64) on an Apple Silicon Mac via QEMU with pure software emulation (TCG).

It requires patching QEMU with two custom fixes

  • LAPIC timer fix (without which VMS hangs during boot)
  • max-insns-per-tb fix (without which VMS crashes on file I/O).

The patched QEMU binary is compiled natively as an arm64 Mach-O, emulating x86_64 in software with SDL2 display backend.

Cold boot to login takes ~2:40 on an M2 MacBook Air.

Dhrystone 2.1 benchmark: 95.1 VUPs (167,084 Dhrystones/sec)

Patches and HOWTO is available here https://astr0baby.online/OpenVMS/QEMU_TCG/

Video demo : https://youtu.be/gCgb-8kxiRk?si=Qc1vvkf11a42Aeo7

43 Upvotes

1 comment sorted by

3

u/EmilGH 19d ago

I wish I could upvote this twice.