HYPER-V(4)

πŸ’– HYPER-V(4) πŸ’–

ok so this is the manual for hv_kvp, a.k.a. the Hyper-V Key Value Pair Driver, and yes bestie we're doing kernel interfaces today, sit down, hydrate, we're going in 🫢


✨ NAME ✨

hv_kvp β€” the Hyper-V Key Value Pair Driver πŸ’…


🌸 SYNOPSIS 🌸

so if you wanna compile this driver into the kernel (not as a module, into the kernel, we're committing), you drop these lines into the system kernel configuration file:

device hyperv

that's it. that's the whole synopsis. short king energy honestly πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what does hv_kvp actually do? bestie, it gives you the ability to store, retrieve, modify and delete key value pairs for FreeBSD guest partitions running on Hyper-V. literally all four of those verbs. the whole CRUD moment.

here's the vibe: Hyper-V lets administrators stash custom metadata in the form of key value pairs inside the FreeBSD guest partition. and how do they poke at it? Windows Powershell scripts, babes. admins use Powershell scripts to add, read, modify and delete those key value pairs. no cap.

the driver itself is bare bones β€” like, it's giving minimal. it doesn't even do the work, it just forwards requests to its counterpart user mode daemon, hv_kvp_daemon(8). that daemon is the one holding the actual pools of key value pairs and doing the real metadata management. the driver is basically the group chat relay and the daemon is the one who actually replies 😭 iconic division of labour.

and btw the same driver and daemon combination is also what you use to set and get IP addresses from a FreeBSD guest. same duo, second job, they're booked and busy.

the set functionality β€” this one's lowkey the main character. it's particularly useful when the FreeBSD guest is assigned a static IP address and gets failed over from one Hyper-V host to another. after failover, Hyper-V uses the set IP functionality to automatically update the FreeBSD guest's IP address back to its original static value. like it just snaps back into place. slay. πŸ”₯

the get IP functionality β€” meanwhile, this one is used to update the guest IP address over in the Hyper-V management console window. so the console knows what's up. ✨


πŸŽ€ SEE ALSO πŸŽ€

go read these next bestie, they're all in the family:


πŸ‘‘ HISTORY πŸ‘‘

support for hv_kvp first appeared in FreeBSD 10.0 πŸ’œ

and the lore? the driver was developed through a joint effort between Citrix Incorporated, Microsoft Corporation and Network Appliance Incorporated. three companies, one driver, a whole collab album fr fr.


πŸ’– AUTHORS πŸ’–

FreeBSD support for hv_kvp was first added by the Microsoft BSD Integration Services Team <bsdic@microsoft.com>. thank you for your service 🫢


and that's the page!! this one came out of the Debian corner of the world, dated September 10, 2013 β€” yes it's vintage, yes it still ate, we don't talk about it πŸ’…βœ¨ bye bestie, go read your kernel config 🌈

πŸ“¦ where this page comes from