Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am asking a rather ridiculous question here. Is there any way we can find out from the guest OS the parent OS and the VMs it is using? If it is possible, what command do we invoke from the guest OS?

Thanks for your help

share|improve this question
up vote 7 down vote accepted

VMs are not aware of their host system.

You may be able to figure out roughly which platform you are on by checking what drivers are installed for your devices (NICs on a VMWare VM will have 'VMWare Accelerated' driver or similar) and seeing if any guest additions/vmware tools are installed on your guest.

Beyond that, no.

share|improve this answer
Thanks Chris. That was informative. =) – Joshua Partogi Apr 23 '10 at 7:22

You don't really say which hypervisor you are using, and the answer depends entirely on that.

Even so, you use the phrase "parent OS" which is generally only used by Microsoft to describe part of Hyper-V. So I'll give you an answer for Hyper-V.

If you have the Hyper-V integration components installed in your VM, then you can look in the registry under:

HKEY_LOCAL_MACHINE\Software\Microsoft\Virtual Machine\Guest\Parameters\PhysicalHostNameFullyQualified.

That will tell you the name of the parent OS. Note that this value can change from moment to moment, as the VM migrates around a cluster.

As for finding out what VMs are running on that host, assuming your VM and the parent OS are attached to the same networks, you can use the Hyper-V WMI interfaces to enumerate the VMs.

See MSDN on how to use them.

share|improve this answer

I know this sounds silly, but I would try asking someone. Hopefully someone who runs the hypervisor. I find it's pretty effective.

Good luck.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.