Skip to content

Instantly share code, notes, and snippets.

@shirou
Created June 2, 2024 13:58
Show Gist options
  • Save shirou/64e2658fc3d6d0310e9e831be0ee3cb9 to your computer and use it in GitHub Desktop.
Save shirou/64e2658fc3d6d0310e9e831be0ee3cb9 to your computer and use it in GitHub Desktop.
AIX on qemu
# AIX 7.2 PowerPC "POWER9"
# https://github.com/shirou/gopsutil/pull/1651#issuecomment-2123753059
sudo qemu-system-ppc64 -M pseries,ic-mode=xics -cpu POWER9 \
-smp 4,sockets=4,cores=2,threads=2,maxcpus=16 \
-m 4096 \
-name aix_7200-04-02-2027 \
-netdev bridge,id=net0,br=virbr0 \
-device spapr-vlan,netdev=net0,mac=52:54:00:49:53:14 \
-device virtio-scsi,id=scsi0 \
-drive file=/var/lib/libvirt/images/aix7.2-ppc64.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none \
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 \
-drive file=/path/to/iso/aix/7.2/aix_7200-04-02-2027_1of2_072020.iso,format=raw,media=cdrom,cache=unsafe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment