LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to know the remote machine is Virtual machine or physical machine (https://www.linuxquestions.org/questions/linux-server-73/how-to-know-the-remote-machine-is-virtual-machine-or-physical-machine-913526/)

pantdk 11-20-2011 06:46 PM

yes in the beginning i am confusing, but now i am clear about it, their is also a common thing in the output of the Virtual machine
Quote:

String 1: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]
i don't know why this is same!!!!! in each "vmware" virtual-machine

rshukla 07-02-2014 07:14 PM

Get the vendor information
 
cat /sys/class/dmi/id/sys/vendor

From VM you will get

cat /sys/class/dmi/id/sys_vendor
VMware, Inc.

From Dell box you will get
cat /sys/class/dmi/id/sys_vendor
Dell Inc.

ha_elsahhar 10-16-2014 12:54 PM

Simple & Straight forward :)
 
dmidecode -s system-product-name

273 10-16-2014 01:25 PM

Surely the way one tell the difference between VMs and real ones is looking at the records and change paperwork? for an audit of even a badly-run network you ought to know, at lest, which VM[s] to expect .
Apologies for the cynicism but I'm not sure why this needs to be asked?

ha_elsahhar 10-16-2014 01:48 PM

Some reasons...
 
* Maybe you are asked to report the percentage of VMs in a customer's network you are assessing
* Define which virtualization platform is being used to mitigate related vulnerabilities
* Audit purposes: assure specific network subnet for VMs, ....
* Servers foot printing before an attack you will do!

It could be anything, dealing with various setups leads to unexpected questions. Trust me


All times are GMT -5. The time now is 12:21 AM.