How can I detect if Windows is running in a VirtualBox VM?

Discussions about using Windows guests in VirtualBox.
Post Reply
OlafH
Posts: 2
Joined: 7. Mar 2008, 07:55

How can I detect if Windows is running in a VirtualBox VM?

Post by OlafH »

On the CodeProject website is an example which shows how to detect whether Windows is running inside a VMware or Virtual PC VM. Only a few lines of assembler are needed for the query:
http://www.codeproject.com/KB/system/VmDetect.aspx

Is the same possible for VirtualBox? I am aware that I could check for PC manufacturer name = "innotek GmbH" and machine model = "VirtualBox" using WMI, but I would prefer a method which incurs less overhead. The few lines of assembler needed to check for VMware and Virtual PC are a perfect solution. Is the same possible with VirtualBox?

Regards,
Olaf
Post Reply