klauspost / cpuid

CPU feature identification for Go
MIT License
1.04k stars 128 forks source link

I have one my Windows 10 Pro Physical Desktop Machine, still it's returning true for the call cpuid.CPU.VM() #81

Closed bhavar12 closed 3 years ago

bhavar12 commented 3 years ago

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.

image

Attaching code sample as well. main.go.txt anyone help me on this.

klauspost commented 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.

bhavar12 commented 3 years ago

@klauspost but I have not enable any HyperV roles feature on that machine.

klauspost commented 3 years ago

@bhavar12

In powershell, what is the output of Get-ComputerInfo -property "HyperVisorPresent"?

bhavar12 commented 3 years ago

@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

klauspost commented 3 years ago

@bhavar12 You are technically running Windows in a VM.