How can I detect if my app is being run on a VM?
I have an app for gathering various system information from hardware to event logs to assist in troubleshooting for the Reddit /r/TechSupport discord server. Occasionally, people run it on a VM which gives unreliable information and it is not immediately recognizable it's a VM. Is there a way to determine if the app is being run on a virtual machine?
4 Replies
CodeProject
Detect if your program is running inside a Virtual Machine
An article showing how you can programmatically check if your code is running inside a virtual machine (such as VPC or VMWare).
Here is what I've found what is not relying on a powershell script
Question is whether you need this to be cross platform or windows only
I would personally just have a "are you running in a VM? and if so which one" question
this is wild and i love it
thanks 🙂
it's generally assumed that the people we're helping are either not smart enough to run a vm, or smart enough to know the potential problems with vm's. it's not very common that people run it on vm's but it's happened enough that it would be helpful for the app to recognize it