How to identify that you're running under a VM?

后端 未结 12 1992
南旧
南旧 2020-11-29 23:42

Is there a way to identify, from within a VM, that your code is running inside a VM?

I guess there are more or less easy ways to identify specific VM systems, especi

12条回答
  •  鱼传尺愫
    2020-11-30 00:26

    You might be able to identify whether you're in a virtual machine by looking at the MAC address of your network connection. Xen for example typically recommends using a specific range of addresses 00:16:3e:xx:xx:xx.

    This isn't guaranteed as it's up to the administrator of the system to specify what MAC address they like.

提交回复
热议问题