KB Article #178318

How to check whether the server is virtual or physical server?

Problem

In order to check whether the server is hosted on virtual host or is physical server you could use dmidecode.


Resolution

Execute the below command with the root account:


dmidecode -s system-manufacturer


If the server is running on virtual machine the output of the command will show the name of virtualization technology (e.g. "VMware, Inc.").


If you are ran this command on a physical server, the output will be the actual name of the hardware manufacturer (e.g., "Dell Inc.").