Want to learn AIX but don't have a Power system to connect to?
Well, although the ideal is to use an instance on IBM Cloud that you can get from just a few euros a day, there is another method: unsupported, extremely slow, with some bugs but a lot of fun that you can try before making the leap to a real Power with the best UNIX in the world.
In this demo we are using this HW
$ cat /proc/cpuinfo
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-1410 v2 @ 2.80GHz
stepping : 4
and Ubuntu as OS with standard packages from the official repositories
ubuntu@sixe-dev:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
In there, we will install all what we need to virtualize and emulate PPC
$ sudo apt install -y qemu-system-ppc qemu-kvm virt-manager virtinst libvirt-clients bridge-utils libvirt-daemon-system
Libvirt will store isos and images on /var/lib/libvirt/images/ so we'll cd to there
$ cd /var/lib/libvirt/images/
We create a blank disk image for AIX
$ qemu-img create -f qcow2 hdisk0.qcow2 20G
and download to the same directory and AIX 7.2 image that you are entitled to use in accordance with your current contracts with IBM, although I think that this kind of emulation, like Hercules in Z/OS is a bit in no man's land although I don't know the legal implications that may exist.
That said, here is the command to boot the virtual machine from the AIX iso image and using the new disk.
$ qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial stdio -drive file=/var/lib/libvirt/images/hdisk0.qcow2,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -cdrom /var/lib/libvirt/images/aix72.iso -prom-env "boot-command=boot cdrom:" -prom-env "input-device=/vdevice/vty@71000000" -prom-env "output-device=/vdevice/vty@71000000"
There are other possible configurations, but this is the one that worked correctly for me. To the question why not an AIX 7.3 the answer is that it has some easter egg inside that prevents (for now) its booting in qemu.
The rest of the process is the same as in an LPAR, but much, much slower. When the installation is finished, the system enters an infinite loop of reboots that must be aborted with a CTRL + C, and restarting the virtual image without the .iso (DVD). This is the command to do it.
$ qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial stdio -drive file=/var/lib/libvirt/images/hdisk0.qcow2,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -prom-env "input-device=/vdevice/vty@71000000" -prom-env "output-device=/vdevice/vty@71000000"
And here you have a video (with the most boring moments doing I/O access at x16). As a spoiler, most things work correctly, you can install software, create a VG, an LV, mount a file system, launch the nmon or create users. However the VM can fail at any time for a thousand reasons, and if you perform any operation that involves disk access go straight for coffee because it will take a while.