How to check the Hyper-V hostname from RHEL VM ?

Solution Verified - Updated -

Issue

  • We have a RHEL 6/RHEL7 VM servers hosted in HYPER-V. We need to know the hostname from the VM.
  • We host our RHEL 7 instances on Hyper-V. In order to set up the virt-who config with the proper hypervisor, we need a way to find out what Hyper-V hypervisor the RHEL machine is on. How can we determine the Hyper-V hypervisor name from the RHEL VM it is running on ? Note we do have Linux Integration Services installed.

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Enterprise Linux 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content