Hyper-V – accessing info about physical machine from guest VM
More then once I have run into the problem of not knowing on witch physical server a Hyper-V hosted server is running. Getting RDP access to a clients system and then needing help from SAN or Network teams, there first question: “What physical machine is the host running on?”. Without access to the physical servers or System Manager it’s hard to know. You could probably figure it out from assigned IP-addresses but there is a quicker way if the Hyper-V Integration Services are installed.
This registry key: HKLMSOFTWAREMicrosoftVirtual MachineGuestParameters
It contains the following information:
- And also additional info about server version etc.
You can also run this from the CMD:
reg query “HKLMSOFTWAREMicrosoftVirtual MachineGuestParameters” /v PhysicalHostName
If you have remote access:
reg query “\<machine>HKLMSOFTWAREMicrosoftVirtual MachineGuestParameters” /v PhysicalHostName
Ofcourse you can replace the “PhysicalHostName” with any of the above values!