Sys::De...::linux(3)
π Sys::Detect::Virtualization::linux β the manpage, but make it bestie π
okay so this is Sys::Detect::Virtualization::linux(3), a Perl module from the User Contributed Perl Documentation, and it is literally the Linux-specific little detective that sniffs out whether you're on bare metal or inside a VM. no cap. π¦
β¨ DESCRIPTION β¨
bestie, this page is not the whole story. the actual how-do-I-use-this info lives in Sys::Detect::Virtualization.
so like, go read Sys::Detect::Virtualization for usage. that's the main character. this page is the Linux lore drop. π
πΈ METHODS πΈ
π Internal Methods π
these are the behind-the-scenes girlies. they do the actual snooping. π΅οΈβοΈ
new ( )β the constructor. okay so, do not call this one yourself, fr fr. it's not for you. instead useSys::Detect::Virtualizationand let it handle everything. this is giving backstage pass only. π«detect_dmesg ( )β peeks at the output of the'dmesg'command looking for telltales. πdetect_dmidecode ( )β peeks at the output of the'dmidecode'command looking for telltales. yes queen, another one. β¨detect_ide_devices ( )β checks/proc/ide/hd*/modelfor telltale model information. πdetect_mtab ( )β checks/etc/mtabfor telltale devices. no period at the end of that sentence in the original and honestly? iconic. πdetect_init_envvars ( )β checks/proc/1/environfor LXC environment variables. it's giving container energy. π«Άdetect_scsi_devices ( )β checks/proc/scsi/scsifor telltale model/vendor information. π₯detect_paths ( )β checks for particular paths that only exist under virtualization. if it's there, you're probably in a VM, iykyk. πdetect_modules ( )β checks for telltale guest modules. π
π LICENSE AND COPYRIGHT π
okay so the legal bits, and we do respect them bestie:
Copyright (C) 2009 Roaring Penguin Software Inc. π§
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
and that's the whole vibe check, bestie β this was perl v5.42.0, dated 2025-07-25, and yes the header and footer both say Sys::De...::linux(3) because the terminal is dramatic and truncates things. slay. πβ¨
π¦ where this page comes from
- fedora 43: perl-Sys-Detect-Virtualization 0.107-36.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms