-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Mountifield
>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?
>
>Cheers
>Tony

This script does the trick for me on ESX 3 by looking at the (virtual) hardware 
description. But it probably is not foolproof.

if ( `/sbin/lspci | grep -qi vmware` ) || \
   ( `grep -qi vmware /proc/scsi/scsi` ); then
    echo "This is a Virtual Machine."
Fi

Marc-Andre
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to