1ImVirt(3)             User Contributed Perl Documentation            ImVirt(3)
2
3
4

NAME

6       ImVirt - detects several virtualizations
7

SYNOPSIS

9           use ImVirt;
10           print imv_get(IMV_PROB_DEFAULT, imv_detect()),"\n";
11

DESCRIPTION

13       The "ImVirt" package tries to detect if it is run in a virtualization
14       container. At least the following container should be detected:
15
16       ARAnyM
17       KVM
18       lguest
19       LXC
20       OpenVZ
21       QEMU
22       UML
23       VirtualBox
24       Virtual PC/Server
25       VMware
26       Xen
27

DETECTION HEURISTIC

29       The detection is based on a heuristic - you should not trust the result
30       at all.
31
32       ImVirt probes for different well-known characteristics of different
33       virtualization containers. Any characteristics found or not found are
34       weighted by their significance.
35
36       The result of the heuristic is a weighted tree. The leaves are the
37       (not) detected containers.
38

FUNCTIONS

40       The following functions should be used to retrieve the detected
41       virtualization containers:
42
43       imv_get($prob) Returns exactly one string describing the detected
44       container. If the detected container has a smaller match probability
45       than $prob the string 'Unknown' is returned.
46       imv_get_all() Returns a hash any positive detected containers as keys
47       and their corresponding match probability as value.
48       imv_get_pos_results() Returns a list of all possible results which
49       might be returned by all detection modules. The list entries might be
50       appended by some additional data like version numbers etc.
51
52
53
54perl v5.34.0                      2021-07-22                         ImVirt(3)
Impressum