Displaying hardware and hypervisor information

You can display information about the physical and virtual hardware on which your Linux® instance runs.

Procedure

Issue the following command:
# cat /proc/sysinfo
The output of the command is divided into several blocks.
  • The first two blocks provide information about the mainframe hardware.
  • The third block provides information about the LPAR on which the Linux instance runs, either in LPAR mode or as a guest of a hypervisor.
  • Further blocks are present only if the Linux instance runs as a guest of a hypervisor. The field names in these sections have a prefix, VM<nn>, where <nn> is the hypervisor level.

    If the hypervisor runs in LPAR mode, there is only one such block, with prefix VM00. If the hypervisor runs as a guest of another hypervisor, there are multiple such blocks with prefixes VM00, VM01, and so on. The highest prefix number describes the hypervisor that is closest to the Linux instance.

You can use the information from /proc/sysinfo, for example, to verify that a guest relocation has taken place.
Example:
# cat /proc/sysinfo
Manufacturer:         IBM
...

CPUs Total:           45
...

LPAR Number:          31
...
LPAR Name:            LP000031 
...
LPAR Extended Name:   Partition 31 Test System
LPAR UUID:            93724168-fda3-429b-8b28-a5d245dcb3ff
...

VM00 Name:            VM310012
VM00 Control Program: z/VM    6.4.0
VM00 Adjustment:      83
VM00 CPUs Total:      2
VM00 CPUs Configured: 2
VM00 CPUs Standby:    0
VM00 CPUs Reserved:   0
Draft comment: maria
Changed to an example with an LPAR long name
The following example shows the command output for an instance of Linux on z/VM®. For an example for Linux as a KVM guest, see Device Drivers, Features, and Commands for Linux as a KVM Guest, SC34-2754. The fields with prefix VM<nn> show the following information:
Name
shows the name of the z/VM guest virtual machine according to the z/VM directory.
Control Program
shows hypervisor information.
Adjustment
does not show useful information for Linux on z/VM.
CPUs Total
shows the number of virtual CPUs that z/VM provides to Linux.
CPUs Configured
shows the number of virtual CPUs that are online to Linux.
CPUs Standby
shows the number of virtual CPUs that are available to Linux but offline.
CPUs Reserved
shows the number of extra virtual CPUs that z/VM could make available to Linux. This is the difference between the maximum number of CPUs in the z/VM directory entry for the guest virtual machine and the number of CPUs that are currently available to Linux.