Skip to main content

vmdetect

A comprehensive toolkit for detecting virtual machine environments. Available as a cross-platform library (Python, C, C++) and command-line tool for Windows and Linux, it employs multiple techniques to reliably identify various virtualization platforms (e.g., VMware, VirtualBox, Hyper-V, QEMU).

Based on py_vmdetect sources from https://github.com/kepsic/py_vmdetect

Platform: Linux/Windows License: GPL v3 CodeQL Advanced build result PyPI version

Installation

Pre build packages

You can download installation package for supported linux distributions in Open Build Service

Download from open build service Download from githut Download from pypi

Examples:

Command line

vmdetect
echo $?
vmdetect -n
Bare Metal
vmdetect -i
0

Python

import virtualmachine
print(virtualmachine.name())
import virtualmachine
print(virtualmachine.id())

C++

#include <vmdetect/virtualmachine.h>
#include <iostream>

using namespace std;

int main(int argc, char **argv) {
	VirtualMachine vm;

	if(vm) {
		cout << "Running on '" << vm << "' virtual machine" << endl;
		return 1;
	}

	return 0;
}

Metadata

Release files for virtualmachine 1.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for virtualmachine 1.3.5
File Size Uploaded
virtualmachine-1.3.5.tar.gz 47.9 kB Details

Release files / virtualmachine-1.3.5.tar.gz

Download URL virtualmachine-1.3.5.tar.gz
Size 47.9 kB
Tags Source
SHA-256 checksum
How to use checksums
73ce21a025f6df3439217fdd86ca0af0b161a8fe49cad1158f86440f22c0fc88
BLAKE2b-256 checksum
How to use checksums
1d1aa5416bbd53c11e1fee9257f7a5c69e3e5f0dad69165aea45e1c0b8bd6ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.5 This release

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.2.1

1 release file

1.1.1

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page