Re: How to detect whether running on VMware?

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



On Thu, July 24, 2008 7:47 am, Tony Mountifield 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 -iq " vmware "

This returns 0 if it is a VMware system and 1 it it isn't.
_______________________________________________
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