ImVirt(3)
π ImVirt π
okay so bestie, welcome to the ImVirt(3) manual page β it's literally here to detect several virtualizations, and the vibe is very βam I in a container or not?β β¨
π NAME
ImVirt β detects several virtualizations
β¨ SYNOPSIS β¨
use ImVirt;
print imv_get(IMV_PROB_DEFAULT, imv_detect()),"\n";
π«Ά DESCRIPTION π«Ά
The ImVirt package tries to figure out whether it's running inside a virtualization container. At least these containers should get detected:
ARAnyMKVMlguestLXCOpenVZQEMUUMLVirtualBoxVirtual PC/ServerVMwareXen
π DETECTION HEURISTIC π
β οΈ bestie warning: the detection is based on a heuristic β you should not trust the result at all. like, fr fr, no cap.
ImVirt pokes at different well-known characteristics of different virtualization containers. Whether each characteristic is found or not found, it gets weighted by how significant it is.
The heuristic's result is a weighted tree. The leaves are the containers that got detected β and the ones that didn't. π¦
π§ FUNCTIONS π§
Use these functions to pull out the detected virtualization containers:
imv_get($prob)β gives you exactly one string describing the detected container. If the detected container's match probability is smaller than$prob, you get the string'Unknown'back instead. πimv_get_all()β gives you back a hash where any positive detected containers are the keys, and their corresponding match probability is the value.imv_get_pos_results()β gives you a list of all possible results which might be returned by all detection modules. Those list entries might get some extra data appended, like version numbers etc.
π cute sign-off: this ImVirt(3) page is from perl v5.44.0, dated 2026-10-17. mwah, go detect those virtualizations bestie, slay π
π¦
π¦ where this page comes from
- arch rolling: imvirt 0.9.6-14 Β· GPL2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms