Sys::De...::linux(3)

πŸ“¦
version 0.107 Β· 2 versions
, in fedora 43

πŸ’– 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 use Sys::Detect::Virtualization and 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*/model for telltale model information. πŸ”
  • detect_mtab ( ) β€” checks /etc/mtab for telltale devices. no period at the end of that sentence in the original and honestly? iconic. 😌
  • detect_init_envvars ( ) β€” checks /proc/1/environ for LXC environment variables. it's giving container energy. 🫢
  • detect_scsi_devices ( ) β€” checks /proc/scsi/scsi for 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. πŸ‘‘

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