[CentOS] How to detect whether running on VMware?

mouss mouss at netoyen.net
Fri Jul 25 19:57:08 UTC 2008

Kai Schaetzl wrote:
> Tony Mountifield wrote on Thu, 24 Jul 2008 11:47:04 +0000 (UTC):
>> 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?
> AFAIK, VMWare uses vmnet32 drivers for ethernet and possibly others for 
> other devices as well.


# modinfo vmxnet
filename:       /lib/modules/2.6.18-5-486/misc/vmxnet.ko
author:         VMware, Inc.
description:    VMware Virtual Ethernet driver.

#  dmesg |grep -i vmware
hdc: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive
   Vendor: VMware,   Model: VMware Virtual S  Rev: 1.0
VMware hgfs: HGFS is disabled in the host
VMware hgfs: HGFS is disabled in the host
VMware memory control driver initialized
VMware vmxnet virtual NIC driver


More information about the CentOS mailing list