1

I am actually trying to find if a given host is a physical server or a virtual machine. I searched on Google but couldn't find any commands or tools. Can anyone here let me know is there is any utility which can tell me if its a physical server or a virtual server.

redoc
  • 33
  • 1
  • 1
  • 5

2 Answers2

3

dmidecode can help you:

dennis@seahawk:~$ sudo dmidecode -s system-manufacturer
Dell Inc.
dennis@mirage:~$ sudo dmidecode -s system-manufacturer
Red Hat

The second one is a KVM instance. You can detect vmware/xen etc. this way too.

Dennis Kaarsemaker
  • 19,277
  • 2
  • 44
  • 70
1

On windows platforms we run the CPUID program from here http://www.cpuid.com/

The Motherboard is shown as "Intel Corporation 440BX Desktop Reference Platform"

DMI Baseboard       
vendor          Intel Corporation
model           440BX Desktop Reference Platform
Phil
  • 3,168
  • 1
  • 22
  • 29