Detect if your container/VPS is running under a specific hypervisor.
Why would you want this?
Some hosting providers run their container hosting services (OpenVZ, LXC VPS, Docker-as-a-Service, etc) under a parent hypervisor, without disclosing that practice. Worse yet, a few providers have been caught doing this while explicitly claiming not to.
There are also of course, providers which do rightfully disclose their usage of a parent hypervisor for their services, usually as part of a high availability scheme.
In essence, the point of this tool is simply to disclose whether or not your container is running under a hypervisor, and what information can be collected about the hypervisor from inside the container.
It also detects common container types (i.e. OpenVZ), to clarify to the user whether or not their VPS environment is inside a container, whether it's in a hypervisor, or whether both aspects apply (container inside hypervisor).
Just download the source and go, basically. You'll need a compiler installed, of course.
kaniini@localhost ~/slabbed-or-not> make cc -o slabbed-or-not slabbed-or-not.c kaniini@localhost ~/slabbed-or-not> ./slabbed-or-not Container: OpenVZ Hypervisor: Xen PV Version: 4.3