How would know at command line that the Linux host i logged in to is real machine, with linux installed, or is a virtual machine Thanks, -Kamal.
Asked
Active
Viewed 531 times
4 Answers
7
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).
janneb
- 3,949
3
I usually use
dmidecode --type 1
For scripting you might try
dmidecode -s system-manufacturer
Cakemox
- 26,021
0
Often uname -a will display information that gives you a hint - references to Xen will tell you that you are in that type of virtual machine.
Paul McMillan
- 1,229