How to identify Virtual server or Physical server.
If you are renting a Linux server from a data center and you want to check you got a Physical server or Virtual server .Below are the commands you can identify for server hardware.
VMware Workstation
root@localhost:~# dmidecode -s system-product-name
VMware Virtual Platform
VirtualBox
root@localhost:~# dmidecode -s system-product-name
VirtualBox
Qemu with KVM
root@localhost:~# dmidecode -s system-product-name
KVM
Qemu (emulated)
root@localhost:~# dmidecode -s system-product-name
Bochs
Microsoft VirtualPC
root@localhost:~# dmidecode | egrep -i ‘manufacturer|product’
Manufacturer: Microsoft Corporation
Product Name: Virtual Machine
Virtuozzo
root@localhost:~# dmidecode
/dev/mem: Permission denied
Xen
root@localhost:~# dmidecode | grep -i domU
Product Name: HVM domU
You you want a detailed information about your hardware
just run command
# dmidecode > hardware.txt
# cat hardware.txt | more
It will give you detailed information of your server Hardware .