6

I would like to be able to determine which Hyper-V host a particular CentOS 7 VM is running on. In a Windows VM this is stored in HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters. Is anyone aware of a methodology for getting this from inside a CentOS guest?

Robert Kaucher
  • 477
  • 1
  • 3
  • 18
  • 1
    It was noticed in far 2011 on TechNet as "preparing feature", but it looks like that Microsoft didn't add the support of this under Linux. However, if the Integration Services is installed probably the hostname of Hyper-V host can be found there. – A.Newgate May 21 '19 at 03:08

1 Answers1

0

% strings /var/lib/hyperv/.kvp_pool_3 |head -2