VIRTDETECT(1)

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

πŸ’– VIRTDETECT πŸ’–

okay so bestie, welcome to virtdetect β€” the little script from the User Contributed Perl Documentation section of your manual that answers the question every girl asks at 2am: is this computer even real?? πŸ¦‹

✨ NAME ✨

virtdetect β€” detect if this system is running as a virtual machine πŸ‘€πŸ’»

no cap, that's the whole job. it looks at your machine and goes "hmm, are you a real physical box or are you living inside somebody else's computer" and honestly? relatable.


🌸 SYNOPSIS 🌸

virtdetect [ --verbose ] [ --detect-host ]

that's it. that's the whole vibe. two optional flags, zero drama. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so what this bad boy does is attempt to determine if this system is running under some form of virtualization. VM? container-ish situation? some kind of virtual shenanigans? it's gonna try and figure that out for you. ✨

if --verbose is enabled, each check will be output β€” like, every single little probe it runs, it's gonna tell you about it. main character energy, no secrets. 🫢

otherwise (the default, the lowkey route), only the result will be output. just the tea. just the answer.

and if --detect-host is enabled, it'll try and detect virtualization host (as opposed to guest) platforms β€” so instead of asking "am I the lil virtual baby," it asks "am I the big machine hosting the lil virtual babies." glow-up behavior fr fr. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • --verbose β€” enable debug output. she's chatty, she's telling you every step, she's showing her work like a good student. πŸ“
  • --detect-host β€” try to detect virtualization host (as opposed to guest) platform. flipped perspective, same icon energy. πŸ”„
  • --help β€” this help. quick lil reminder of what's up. πŸ™ˆ
  • --man β€” full manpage. you're literally reading it bestie, but okay, cute that you asked. πŸ’–

πŸ”₯ EXIT STATUS πŸ”₯

okay this part actually matters, listen up, the exit codes are speaking:

  • 0 β€” No virtualization detected. it's giving bare metal. physical. real. iconic. ✨
  • 1 β€” Virtualization detected. she's virtual, she's ethereal, she's somebody's guest. 🧚
  • 2 β€” More than one kind of virtualization detected. MULTIPLE?! nested virtualization, layers upon layers, inception situation, absolute chaos, slay honestly. πŸ’€
bestie note: 2 isn't an error exactly, it's just "we found more than one" β€” so don't panic, just be aware it's a different answer than 1. ⭐

🌈 SEE ALSO 🌈


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:

  1. the GNU General Public License as published by the Free Software Foundation; or
  2. the Artistic License.

pick your fighter, both are valid, both are iconic, go off. πŸ’œ


aaaand that's the page!! πŸŽ€

cute lil sign-off for you: this manual was generated for perl v5.42.0 and dated 2025-07-25 β€” so yes, she's fresh, she's current, she ate and left no crumbs. now go run virtdetect and find out what kind of computer you actually are. bye bestie!! πŸ’–βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from