Skip to content

Conversation

@t-lo
Copy link
Member

@t-lo t-lo commented Dec 18, 2025

Status

This PR is blocked by secure boot / trusted launch support for Azure. Azure refuses to launch a VM with vTPM if the image does not support trusted launch:

Use of UEFI settings is not supported for the provided image.

Secure boot support is blocked by CNCF SHIM signing, tracked in https://cncfservicedesk.atlassian.net/servicedesk/customer/portal/1/CNCFSD-2581.

Summary

This change enables Azure's vTPM feature via a command line flag (defaults to enabled). It also allowlists 6 TPM tests to run on Azure. It also updates the default instance type / size to Standard_DS2_v5 as the previously used Standard_DS2_v2 was deprecated some time ago.

This tackles some of the tests from flatcar/Flatcar#1978 but not all.

How to use

Run cl.tpm.* tests on Azure.

Testing done

In progress - running cl.tpm.* tests in Azure.

@t-lo t-lo requested a review from a team as a code owner December 18, 2025 11:43
@t-lo t-lo force-pushed the t-lo/azure-enable-tpm-tests branch from a3b1da8 to f139207 Compare December 18, 2025 11:48
sv(&kola.AzureOptions.Version, "azure-version", "", "Azure image version")
sv(&kola.AzureOptions.Location, "azure-location", "westus", "Azure location (default \"westus\"")
sv(&kola.AzureOptions.Size, "azure-size", "Standard_DS2_v2", "Azure machine size (default \"Standard_DS2_v2\")")
sv(&kola.AzureOptions.Size, "azure-size", "Standard_DS2_v5", "Azure machine size")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this some kind of typo here? In scripts/ci-automation/ci-config.env we're using:

Standard_D2s_v4

(DS2 vs D2s) ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like that typo has been there forever (we always explicitly specify the instance type when running tests). Will fix.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah and we did not detected it because ci-config.env is the source of trust here.
Thanks for confirming, instance types on Azure are confusing me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't a typo - the v2 instances were actually called that way DSX_v2: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dsv2-series?tabs=sizebasic.

@t-lo t-lo changed the title kola: enable Azure vTPM feature and TPM tests [BLOCKED] kola: enable Azure vTPM feature and TPM tests Dec 18, 2025
This change enables Azure's vTPM feature via a command line flag
(defaults to enabled). It also allowlists 6 TPM tests to run on Azure.

We also change the default instance family/size to Standard_DS2_v5 as
the previously used Standard_DS2_v2 has been deprecated a long time ago.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
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.

5 participants