There is no hard and fast rule to check whether the machine is physical
or virtual but still we do have some commands which can be used for the
some purpose.
NOTE: There might be other commands as well but these are the few of my knowledge.
~]# dmidecode -s system-manufacturer
~]# dmidecode -s system-product-name
~]# dmidecode |grep Manufacturer
NOTE: There might be other commands as well but these are the few of my knowledge.
Physical Servers
If your machine is physical then it will show you the output as Hardware manufacture name.~]# dmidecode -s system-manufacturer
~]# dmidecode -s system-product-name
~]# dmidecode |grep Manufacturer
Virtual Servers
Run below commands to identify Virtual Machine.
~]#dmidcode |grep -i vmware
~]#dmidcode -s system-product-name
If you have more commands to identify Physical / Virtual Machine Please comment.
No comments:
Post a Comment