Can I detect whether a process is running on a virtual machine using any cloud platform and not on a local machine?

  • Thread starter Thread starter Rohan Pande
  • Start date Start date
R

Rohan Pande

Guest
Hi, We have looked into __cpuid. The __cpuid will give us four registers (EAX, EBX, ECX, EDX) values when we pass a function id and an array. Inside ECX 31st bit will let us know hypervisor bit is being set to true or not. That will lead us to know whether we are being running on a virtual machine or a local machine. Inside this Wikipedia link please check the 31st bit of the table it clearly says it would be zero for physical machines.I tried a program to know whether that bit value is true or false but, on both machines irrespective of virtual and physical this is set to be true. #include&

Continue reading...
 
Back
Top