An explanation of Hyper-V Key Value Pair Exchange for Linux. Includes C++ code listing for a utility to read, write, and remove Hyper-V KVPs on Linux.
In part one of this series, we talked about Hyper-V’s key-value data exchange feature and got an idea for how it works. In this post, I’m going to provide you with some PowerShell modules that are intended to alleviate most of the pain of using Key-Value Pair Data Exchange. Once you’ve implemented these modules on your systems, you’ll be able to pass data back and forth from guests to hosts.
You’d be hard-pressed to find any feature of Hyper-V that’s been around as long as Data Exchange yet received so little attention. That’s not surprising, since it’s fairly difficult to use at all, much less effectively. My goal with this post is to introduce you to this feature along with a few methods that make using it easier. At the worst, you’ll get a decent understanding of what it does. If you’re lucky, you’ll come up with a use for it.