How to identify that Linux is running as a Virtual Machine?
For troubleshooting or in scripts you might want to identify if you Linux is running as a Virtual Machine. If you work with puppet you might be familiar with facter which provides the facts "is_virtual" (true or false) and "virtual" (Virtualization type).
There is another handy tool called virt-what that is available in Fedora (13+), Red Hat Enterprise Linux (5.7+ and 6.1+), Debian, Ubuntu, ArchLinux and Gentoo, and it can be compiled from source on just about any Linux.
Read More »How to identify that Linux is running as a Virtual Machine?