Supposing you are in a server shell and don’t know if you machine is virtualized (a VM)?
One way to check that (supposing VMWare as hypervisioning solution) is:
[root@mydbsrvr ~]# dmidecode | grep -i vmware Manufacturer: VMware, Inc. Product Name: VMware Virtual Platform Serial Number: VMware-xx xx xx xx xx xx xx xx-xx xx xx xx xx xx xx xx Description: VMware SVGA II
If you had an answer like this, yes, it’s a VM. 🙂
Matheus.