Tim Purkerson in what scenarios would this fact return true vs false?
Scenarios:
For AIX running on bare-metal (non-LPAR), is_virtual should return "false". This is where the following OS commands return a value of "1":
lparstat -i | grep 'Partition Number' | awk '{print $4}'
For AIX running in an LPAR (virtualized partition running on top of IBM’s VIOS hypervisor), is_virtual should return "true". This is where the same command above returns a value > 1.
Ah thanks Scott Pruzinsky. I had no idea AIX was commonly run on bare-metal outside an lpar environment.
I think there are 3 total scenarios:
I can't seem to find any evidence that S390 is still supported for modern AIX systems, so at least z/VM detection isn't needed