Skip to content

fix(vm-image): Add Azure-specific configuration from Fedora Cloud SIG#16135

Draft
ddstreet wants to merge 1 commit intomicrosoft:tomls/base/mainfrom
ddstreet:vm-image-azure-config
Draft

fix(vm-image): Add Azure-specific configuration from Fedora Cloud SIG#16135
ddstreet wants to merge 1 commit intomicrosoft:tomls/base/mainfrom
ddstreet:vm-image-azure-config

Conversation

@ddstreet
Copy link
Contributor

@ddstreet ddstreet commented Mar 6, 2026

There are some Azure-cloud-specific configuration settings needed to work with the specifics of the Azure cloud; the Fedora Cloud SIG has already done the work to determine the settings we want to use.

The specific changes include:

Enable openssh-server's keepalive; otherwise idle ssh connections appear to hang and/or are killed.

Enable use of Azure's PTP time source.

Add configuration to correctly handle Azure's non-standard way of providing accelerated networking, using two separate interfaces to represent a single SRIOV interface.

There are some Azure-cloud-specific configuration settings needed to
work with the specifics of the Azure cloud; the Fedora Cloud SIG has
already done the work to determine the settings we want to use.

The specific changes include:

Enable openssh-server's keepalive; otherwise idle ssh connections
appear to hang and/or are killed.

Enable use of Azure's PTP time source.

Add configuration to correctly handle Azure's non-standard way of
providing accelerated networking, using two separate interfaces to
represent a single SRIOV interface.
@ddstreet
Copy link
Contributor Author

ddstreet commented Mar 6, 2026

Add configuration to correctly handle Azure's non-standard way of providing accelerated networking, using two separate interfaces to represent a single SRIOV interface

This actually isn't needed for our base image, as it defaults to using systemd-networkd instead of NetworkManager; the workaround here is only for NetworkManager. With systemd-networkd, instances with accelerated networking do appear to work fine.

@ddstreet ddstreet marked this pull request as draft March 6, 2026 16:21
@reubeno
Copy link
Member

reubeno commented Mar 6, 2026

@ddstreet If we do need some custom configs, would we not want to add an Azure-specific RPM that adds separate conf.d conf fragments rather than post-installing into the image? I've seen image post-install scripts get significantly abused in the past; they're harder to track, update, share, etc. too.

@ddstreetmicrosoft
Copy link
Contributor

@ddstreet If we do need some custom configs, would we not want to add an Azure-specific RPM that adds separate conf.d conf fragments rather than post-installing into the image? I've seen image post-install scripts get significantly abused in the past; they're harder to track, update, share, etc. too.

that's probably better, yeah, i was just duplicating the approach that the fedora cloud sig took in their image generation.

This should probably go into an identity sub-package like azurelinux-release-identity-cloud-azure or something similar, but I'll leave this PR open as draft until we get that set up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants