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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.