Package oshi.demo
Class DetectVM
java.lang.Object
oshi.demo.DetectVM
Uses OSHI to attempt to identify whether the user is on a Virtual Machine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
The function attempts to identify which Virtual Machine (VM) based on common VM signatures in MAC address and computer model.static void
The main method, executing theidentifyVM()
method.
-
Constructor Details
-
DetectVM
public DetectVM()
-
-
Method Details
-
main
The main method, executing theidentifyVM()
method.- Parameters:
args
- Arguments, ignored.
-
identifyVM
The function attempts to identify which Virtual Machine (VM) based on common VM signatures in MAC address and computer model.- Returns:
- A string indicating the machine's virtualization info if it can be determined, or an emptry string otherwise.
-