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?
% strings /var/lib/hyperv/.kvp_pool_3 |head -2