Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

How do I determine if I am running on a VM?

$
0
0

I've come to a dead-end I appreciate your help. I am running my .Net C# app on windows 7 OS on a VM and want my C# code to determine whether I'm running on a vmware VM or a physical host. Right now I am doing something that works, I am looking at the serial number of the machine and by default vmware prefixes it with the string "VMware". But I feel like this is not reliable since someone could change the serial number or the prefix. Another way is to look at the prefix of the nic's MAC address which starts with vmware unique numbers, but this might also be customized by the admins.

Do you know of any sure-way to determine I'm running on a vmware virtual machine?

 

Thanks.


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>