[CentOS] How to detect whether running on VMware?

Rudi Ahlers Rudi at SoftDux.com
Thu Jul 24 14:52:24 UTC 2008

Tom Brown 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 Product
>        Product Name: VMware Virtual Platform
> _______________________________________________

a XEN VPS gives me this: 

# dmidecode | grep Product
/dev/mem: mmap: Bad address


Kind Regards
Rudi Ahlers

Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff

More information about the CentOS mailing list