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

后端 未结 12 1979
南旧
南旧 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:43

    In Linux systems, you can try to search for common files on /proc.

    Example, the existente of /proc/vz/ tell you is a OpenVZ.

    Here's a full guide to detect VM's environent under Linux without have to "drink pills" :)

提交回复
热议问题