VIRTDETECT(1)
π 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:2isn't an error exactly, it's just "we found more than one" β so don't panic, just be aware it's a different answer than1. β
π SEE ALSO π
Sys::Detect::Virtualizationβ the Perl module doing a lot of the heavy lifting here, go give it a follow. π«Ά- <http://www.dmo.ca/blog/detecting-virtualization-on-linux> β the blog post that started it all, the origin story, the lore. π
π LICENCE AND COPYRIGHT π
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.
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
- fedora 43: virtdetect 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