How to check whether you are working on Physical or Virtual Server ?

Use below dmidecode command to check whether your are working on Physical or virtual server.

# dmidecode -t system | grep “Product Name”
Product Name: VMware Virtual Platform