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.
Asked
Active
Viewed 1.5k times
1
-
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. – redoc Jul 22 '13 at 06:43
2 Answers
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