how to know if you’re running Linux on a virtual machine using the command line

Linux tips

Sometimes on your GNU/Linux machine you need to know if you’re running Linux on a virtual machine or not using the command line.

The virtual machine is hosted from a real machine, but the running virtualized machine is different, at least looking at the disk size, and other times respect to how much RAM’s been used. Any virtualized environment you can use: Xen Server, VM Ware, Hyper-V, it’s installed on a very powerful physical machine. With lots of RAM, maybe with an external Storage Server. Each virtual machine you can create is going to use just a part of all that RAM.

Continua a leggere