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

link|improve this question

feedback

3 Answers

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.

link|improve this answer
Thanks Chris. That was informative. =) – jpartogi Apr 23 '10 at 7:22
feedback

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. http://msdn.microsoft.com/en-us/library/cc136986(v=VS.85).aspx

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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