[CentOS] How to detect whether running on VMware?

Thu Jul 24 15:00:45 UTC 2008
Tom Brown <tom at ng23.net>

>>
>> # dmidecode | grep Product
>>        Product Name: VMware Virtual Platform
>>
>> _______________________________________________
> mmm....
>
> a XEN VPS gives me this:
> # dmidecode | grep Product
> /dev/mem: mmap: Bad address
>
>
 so its not running on VMware - great job done