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
Installation
Pre build packages
You can download installation package for supported linux distributions in Open Build Service
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;
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file virtualmachine-1.3.5.tar.gz.
File metadata
- Download URL: virtualmachine-1.3.5.tar.gz
- Upload date:
- Size: 47.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ce21a025f6df3439217fdd86ca0af0b161a8fe49cad1158f86440f22c0fc88
|
|
| MD5 |
c527faf587d2887b95413bfb46e9c8b5
|
|
| BLAKE2b-256 |
1d1aa5416bbd53c11e1fee9257f7a5c69e3e5f0dad69165aea45e1c0b8bd6ab4
|
Provenance
The following attestation bundles were made for virtualmachine-1.3.5.tar.gz:
Publisher:
publish.yml on PerryWerneck/vmdetect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
virtualmachine-1.3.5.tar.gz -
Subject digest:
73ce21a025f6df3439217fdd86ca0af0b161a8fe49cad1158f86440f22c0fc88 - Sigstore transparency entry: 1932655514
- Sigstore integration time:
-
Permalink:
PerryWerneck/vmdetect@9e41f662d81baf2c43128ca7e469d8aa8365301c -
Branch / Tag:
refs/tags/1.3.5 - Owner: https://github.com/PerryWerneck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e41f662d81baf2c43128ca7e469d8aa8365301c -
Trigger Event:
push
-
Statement type: