imvirt - I'm virtualized?
This little perl script tries to detect if it is called from within a virtualization container. This is detected by looking for well-known boot messages, directories and reading DMI (Desktop Management Interface) data.
The following containers are detected:
The tool will print exactly one line. The result has the following meaning:
|HVM: <signature>||signature of an unknown hypervisor*|
|Virtual Machine||Microsoft Virtual PC/Virtual Server|
|VMware||VMware Virtual Platform|
|VMware (Express|ESX Server|GSX Server|Workstation)||VMware Virtual Platform*|
|Physical||This is a physical machine or a not detected container.|
|UML||User Mode Linux*|
|Xen 3.x (PV|HVM)||Xen hypervisor*|
|lguest||Lguest: The Simple x86 Hypervisor**|
|ARAnyM||Atari Running on Any Machine***|
*) available since imvirt 0.3
**) available since imvirt 0.9.1
***) available since imvirt 0.9.3
There are simular packages for detecting virtualization containers available:
Current version is 0.9.5 (view ChangeLog).
Source packages can be found here.
There are official Debian packages available here.
There is a portable ImVirt version (imvirtp) available. It is a self-contained perl script (using PAR Packager). Downloads are available at github.
|2012-11-17, Thomas Liske|