Frequently, customers want to install software in a virtual machine. This can be OK, but frequently they hit a CPU,memory, or IO limit caused by running in a constrained virtual environment.When this happens, we really like to know if they’re running under virtualization when we try to support them. Here’s some tricks to detect, from
a shell, if the system is virtualized.

The first thing to check is dmesg. On a recently-booted system, checking the
‘dmesg’ command output may be sufficient. Otherwise, try “cat /var/log/dmesg”
instead of “dmesg”