[CentOS] How to detect whether running on VMware?

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

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
>
> _______________________________________________
mmm....

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