What’s the best way to detect my virtualized OS from an application?

54,900 pts.
Tags:
Virtual OS
VirtualBox
VMware
Xen
I'm trying to find out whether or not my application is running with a virtualized OS instance. I've been searching online for the past few weeks and I found that VMware implements an invalid x86 instruction to return info about itself and VirtualPC uses a magic number / I/O port (with an IN instruction) to find it.

Both options are workable but is there a better alternative? Is there also a way to detect Xen or VirtualBox? I'm just trying to find the best option available.


ASKED: November 12, 2013  12:29 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following