vmware-checkvm

Detect VMware virtual machine environment

TLDR

Check if running in VMware
$ vmware-checkvm
Get hardware version
$ vmware-checkvm -h

SYNOPSIS

vmware-checkvm [OPTIONS]

DESCRIPTION

vmware-checkvm checks if the current host is running inside a VMware virtual machine. The exit status indicates whether the system is a VM (exit 0) or not (non-zero exit).When run inside VMware, it returns the VMware software version information.

PARAMETERS

-h

Return VMware hardware version

INSTALL

sudo apt install open-vm-tools
sudo dnf install open-vm-tools
sudo pacman -S open-vm-tools
sudo apk add open-vm-tools
sudo zypper install open-vm-tools
nix profile install nixpkgs#open-vm-tools

CAVEATS

VMware specific. Only detects VMware virtualization. Part of open-vm-tools package.

SEE ALSO

virt-what(1), systemd-detect-virt(1)