[CentOS] Re: How to detect whether running on VMware?

Fri Jul 25 21:12:30 UTC 2008
Scott Silva <ssilva at sgvwater.com>

on 7-25-2008 12:57 PM mouss spake the following:
> 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.
>>
> 
> indeed.
> 
> # 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
> 
> ...
Most of those depend on your installing vmware tools package and their drivers.

-- 
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080725/fdc0f2dd/attachment-0005.sig>