Closed bhavar12 closed 3 years ago
@bhavar12 Mine is showing the same because Windows is running in HyperV mode used for Docker and WSL.
So you are likely running in a VM without knowing it.
@klauspost but I have not enable any HyperV roles feature on that machine.
@bhavar12
In powershell, what is the output of Get-ComputerInfo -property "HyperVisorPresent"
?
@klauspost above command giving true as output. Also I have check even if machine is physical its giving true. https://stackoverflow.com/questions/46826711/detect-physical-machine-as-opposed-to-detecting-a-vm
@bhavar12 You are technically running Windows in a VM.
For desktop, I have Windows 10 Pro as OS on my machine . but cpuid.CPU.VM() this call returning true for my Desktop machine. as it is desktop machine it should return true. attached sample screen shot for reference.
Attaching code sample as well. main.go.txt anyone help me on this.