Operating System - Linux
1819733 Members
3041 Online
109606 Solutions
New Discussion юеВ

How to verify if linux server is physical server or Virtaul server (VMWare)

 
Gaby1110
Frequent Advisor

How to verify if linux server is physical server or Virtaul server (VMWare)

Hi,

How can we check if a linux server is physical or virtual (hosted on VMWare) by just logging into the server remotely.

Thanks...
Gaby
3 REPLIES 3
Matti_Kurkela
Honored Contributor

Re: How to verify if linux server is physical server or Virtaul server (VMWare)

Run "lspci". If you don't have root access, you may have to use a full path: /sbin/lspci or /usr/sbin/lspci. Then look at the listing.

If you see something like this, you are on a VMware virtual machine:
[...]
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
[...]

If you have root access, you can also use the dmidecode command:

dmidecode |less

If the "System Information" section says something like this, you're on a VMware virtual machine:

Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform

MK
MK
Nuwan Alwis
Valued Contributor

Re: How to verify if linux server is physical server or Virtaul server (VMWare)

Hi,
as said above "dmidecode" command is the best way to verify this.

Good Luck ...!
NJ
bullz
Super Advisor

Re: How to verify if linux server is physical server or Virtaul server (VMWare)

Yes using dmidecode command we can find out VM or physical sevrer.

Here is the o/p

VM
--

#dmidecode | grep Manufacturer
Manufacturer: VMware, Inc.
Manufacturer: Intel Corporation
Manufacturer: No Enclosure

Physical
--------
#dmidecode | grep Manufacturer
Manufacturer: HP
Manufacturer: HP