Running HyperV on Windows 8.1 for testing, with planned deploy on 2008R2, and with Ubuntu 14.04 as guest.
I have the key-value pair information working. Sometimes; and there is the question.
All I want is for the guest to obtain the HyperV virtual machine name from the host. That's a bit arcane in bash but it works.
name=$(cat /var/lib/hyperv/.kvp_pool_3 | sed -e 's/^.*VirtualMachineName\x0*//g' -e 's/\x0.*//g')
However, it is not always current. When I change the name using the Hyper-V manager, it sometimes propagates quickly, and sometimes not for many minutes.
I have confirmed that the hv_kvp_daemon is running. It is the version in the Ubuntu distributions, most current as of today (3.13.0.37.44), and I have done an dist-upgrade (which was necessary to get it going).
It DOES work. Just not in a predictable time. I should note it seems (emphasis on "seems") to be correct after the guest reboots, but changes while running are not reliable.
Is that the intended behavior, correct only on reboot? Is there a control for how fast it propagates?