imvirt is a Perl script that 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: Virtual PC/Virtual Server, VirtualBox, VMware, QEMU/KVM, Xen (para and non-para virtualized), OpenVZ/Virtuozzo, UML, and any HVM providing CPUID 0x40000000 detection.
| Tags | virtualization management virtualization virtualization detection |
|---|---|
| Licenses | GPLv2 |
| Operating Systems | Linux |
| Implementation | C Perl |
Recent releases


Release Notes: This release includes several bugfixes and improvements. The Hyper-V detection code has been revised, and there is now a portable version of imvirt.


Release Notes: Bugfixes: gcc 4.7 inline ASM issues and some scripting bugs.


Release Notes: Bugfixes and new features (ARAnyM and LXC detection support).


Release Notes: Improved overall detection. Improved debug output. The addition of INSTALLDIRS=vendor to conform to the Debian Perl policy.