imvirt - I'm virtualized?

home

Description

This little perl script tries to detect if it is called from within a virtualization container. This is detected by looking for wellknown 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:

Line Detected container
HVM: <signature> signature of an unknown hypervisor*
VirtualBox VirtualBox
Virtual Machine Microsoft Virtual PC/Virtual Server
VMware VMware Virtual Platform
VMware (Express|ESX Server|GSX Server|Workstation) VMware Virtual Platform*
OpenVZ OpenVZ/Virtuosso*
Physical This is a physical machine or a not detected container.
QEMU QEMU/KVM (based)
UML User Mode Linux*
Xen Xen hypervisor
Xen 3.x (PV|HVM) Xen hypervisor*

*) available since imvirt 0.3

There are simular packages for detecting virtualization containers available:

Downloads

Current version is 0.3.2 (view ChangeLog).

The current development pre-release is 0.9.0-pre1 (view ChangeLog).

Sources can be found here. There are official Debian packages available here.


02-01-2010, Thomas Liske Valid XHTML 1.0!