How to use the command 'vmware-checkvm' (with examples)
- Linux
- December 25, 2023
The ‘vmware-checkvm’ command is used to check if the current host is a VMware virtual machine (VM) or not. It provides information about the VMware software version and hardware version of the system.
Use case 1: Return the current VMware software version
Code:
vmware-checkvm
Motivation: This use case is useful when you want to quickly check the VMware software version running on the current host system.
Explanation: The ‘vmware-checkvm’ command without any options or arguments simply checks if the current host is a VMware VM or not. It does not provide any additional information except determining the system’s VM status.
Example output:
VMware vmx version: 18
VMware tools version: 10.3.2.9846 (build-10363278)
Use case 2: Return the VMware hardware version
Code:
vmware-checkvm -h
Motivation: This use case is helpful when you need to find out the hardware version of the VMware VM running on the current host system.
Explanation: The ‘-h’ option is used with the ‘vmware-checkvm’ command to specifically return the VMware hardware version of the host system.
Example output:
VMware hardware version: 18
Conclusion:
The ‘vmware-checkvm’ command is a useful tool for verifying if the host system is a VMware VM. It provides information about the VMware software version and hardware version, allowing users to quickly verify the VM status and hardware compatibility.