Re: How to detect whether running on VMware?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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!!!!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux