Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by ewwhite, longneck, pauska, EEAA, Shane Madden Jul 19 '13 at 23:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Um...the hardware would tell you. –  Nathan C Jul 19 '13 at 11:55
    
For what operating system? –  Michael Hampton Jul 19 '13 at 18:37
    
@Michael its for linux os. –  Sheshagiri Jul 22 '13 at 6:43
add comment

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
add comment

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
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.