virtual-pc

Detect virtualized OS from an application?

不打扰是莪最后的温柔 提交于 2019-11-26 12:41:15
I need to detect whether my application is running within a virtualized OS instance or not. I've found an article with some useful information on the topic. The same article appears in multiple places, I'm unsure of the original source. VMware implements a particular invalid x86 instruction to return information about itself, while VirtualPC uses a magic number and I/O port with an IN instruction. This is workable, but appears to be undocumented behavior in both cases. I suppose a future release of VMWare or VirtualPC might change the mechanism. Is there a better way? Is there a supported

Detect virtualized OS from an application?

时光毁灭记忆、已成空白 提交于 2019-11-26 03:03:55
问题 I need to detect whether my application is running within a virtualized OS instance or not. I\'ve found an article with some useful information on the topic. The same article appears in multiple places, I\'m unsure of the original source. VMware implements a particular invalid x86 instruction to return information about itself, while VirtualPC uses a magic number and I/O port with an IN instruction. This is workable, but appears to be undocumented behavior in both cases. I suppose a future