How to tell if you linux server is running on a VM host
To do this, ensure you have the package virt-what. Virt-what supports identification for most of the hypervisors, and in my example, VMware. If you don’t have the package, install it using yum or any other method.
# yum install virt-what
To use it, simply run:
If nothing appears, most likely you are running on a bare-metal system or the hypervisor is not supported (unlikely). Most companies nowadays use VMware, Xen, or Hyper-V.