[CentOS] How to detect whether running on VMware?

Thu Jul 24 14:39:50 UTC 2008
Tom Brown <tom at ng23.net>

> Does anyone know how a program, script or shell user can best determine
> whether the machine is running on bare metal or is a VMware guest?
>
>   

# dmidecode | grep Product
        Product Name: VMware Virtual Platform