How can i verify from a command prompt, if a linux host is real or virtual
Solution 1:
Try the 'lspci' command; on a virtual machine you'll typically see a bunch of devices that are obviously virtual (e.g. vendor is VMWare or such).
Solution 2:
I usually use
dmidecode --type 1
For scripting you might try
dmidecode -s system-manufacturer
Solution 3:
imvirt, virt-what or facter