Detects whether your application is running inside a Virtual Machine.
C#:
var hypervisorName = "";
// check without the need to know the hypervisor name
if (VirtualMachineDetector.Assert())
Console.WriteLine("VIRTUAL MACHINE DETECTED !");
// check and obtain hypervisor name, if available
if (VirtualMachineDetector.Assert(out hypervisorName))
Console.WriteLine("DETECTED {0}!", hypervisorName);
- VMWare Workstation Player - COMPLETED
- Microsoft Hyper-V under Windows Server Datacenter 2012 - COMPLETED
- Microsoft Virtual PC - COMPLETED
- QEMU - PARTIALLY COMPLETED
- VirtualBox - IN PROGRESS
- Xen - TBD
- Citrix - TBD
- .NET Framework 4.0+
- 2017-07-17 - initial version
Robson Felix - robson dot felix at gmail dot com (use this for everything that is not available via GitHub features)