feat: add hyperv-guest-agent extension#1126
Merged
Merged
Conversation
Contributor
Author
|
Confirmed working on real Hyper-V — fully validated on a Talos node. |
smira
reviewed
Jun 22, 2026
frezbo
reviewed
Jun 23, 2026
frezbo
reviewed
Jun 23, 2026
frezbo
reviewed
Jun 23, 2026
frezbo
reviewed
Jun 23, 2026
Contributor
Author
|
Addressed those comments and tested it again on a hyperv workbench. |
frezbo
reviewed
Jun 24, 2026
| TALOS_METAL_AGENT_VERSION: v0.1.5 | ||
| # hyperv-guest-agent builds hv_kvp_daemon and hv_vss_daemon from the in-tree | ||
| # kernel tools/hv sources extracted from the official kernel.org release tarball. | ||
| # renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git |
Member
There was a problem hiding this comment.
notes to self:
before merge use the same rule for kernel we use in pkgs and add the renovate lock, so we don't get anything above 6.18
frezbo
approved these changes
Jun 24, 2026
f8085d9 to
5a2fc5a
Compare
frezbo
approved these changes
Jul 10, 2026
Add a Hyper-V guest integration extension under guest-agents/, providing the in-tree Linux tools/hv daemons as Talos extension services: - ext-hyperv-kvp (hv_kvp_daemon): report the guest IP, hostname, and OS to the host so Get-VMNetworkAdapter is populated. - ext-hyperv-vss (hv_vss_daemon): take application-consistent checkpoints by freezing the data partition. The daemons are built statically from the kernel tree, modeled on the xen-guest-agent extension; VSS reuses the zfs host-mount pattern. Tier extra. See siderolabs/talos#6435 and siderolabs/talos discussion #12721. Signed-off-by: Ryan VanGundy <ryan@copia.io> Signed-off-by: Noel Georgi <git@frezbo.dev>
5a2fc5a to
5817a73
Compare
Member
|
/m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Hyper-V guest integration extension under
guest-agents/. Talos already ships the kernel side (hv_vmbusbuilt in,hv_utilsas a module) but nothing runs the user-space daemons, so the Hyper-V host can't see the guest IP and checkpoints come out crash-consistent only. This came up in siderolabs/talos#6435 and discussion siderolabs/talos#12721.It packages the in-tree Linux
tools/hvdaemons as two extension services:ext-hyperv-kvp(hv_kvp_daemon) reports the guest IP, hostname and OS to the host, soGet-VMNetworkAdaptergets populated.ext-hyperv-vss(hv_vss_daemon) freezes the/vardata partition for application-consistent checkpoints.A few notes on the build:
guest-agents/vars.yaml. Same approach asqemu-guest-agent/xen-guest-agent.zfsextension (rootfsPropagation: shared) so theFIFREEZElands on the real data partition.extra; I've added myself to MAINTAINERS.md.One thing documented in the README: KVP's DNS/DHCP reporting and host-to-guest IP injection rely on the distro helper scripts (
hv_get_dns_infoand friends) that this extension doesn't ship, so those stay empty. IP/hostname/OS reporting doesn't need them.