Scott Forsyth's Blog

Postings on IIS, ASP.NET, SQL Server, Webfarms and general system admin.

.

  • Scott Forsyth

Hosting Needs

Training and Dev Labs

Hyper-V – getting host information from the guest VM

Sometimes it’s necessary to find out host machine information from a particular guest virtual machine.

With Hyper-V Integration Services installed, the following registry key contains information about the Host server:

HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters

Some keys of interest are:

  • HostName
  • PhysicalHostName
  • PhysicalHostNameFullyQualified
  • VirtualMachineName
  • Plus a number of settings about the Host Server’s version

This is maintained in real-time.  For example, if you rename the virtual machine name in Hyper-V, VirtualMachineName is immediately updated in the guest server, assuming that it’s running.  And, even if it’s not running at the time that you rename the server in the host, it will be reflected when powering on the VM or restoring from a saved state.

Posted: Oct 08 2009, 02:01 PM by OWScott | with 2 comment(s)
Filed under:

Comments

Ronen said:

What about if vm tools are not installed on the VM machine?

# January 4, 2010 8:22 AM

OWScott said:

If the integration tools aren't installed then the guest machine doesn't have any information available about the host unless you can figure that out from the assigned IPs, guest name you assigned or any other information.

# January 4, 2010 11:29 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)