How to detect whether running on VMware?
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.
CentOS mailing list