[CentOS] How to detect whether running on VMware?

Thu Jul 24 13:02:47 UTC 2008
Marko A. Jennings <markobiz at bluegargoyle.com>

On Thu, July 24, 2008 7:47 am, Tony Mountifield wrote:
> 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 -iq " vmware "

This returns 0 if it is a VMware system and 1 it it isn't.