Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 11: enable TPM and EFI persistence #611

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

jean-edouard
Copy link
Contributor

What this PR does / why we need it:
The Windows 11 template enables TPM and EFI, since both a required. However, they were both non-persistent by default, which means bitlocker won't work. Also, in recent versions of Windows 11, bitlocker requires both TPM and EFI to be persistent. This enables persistent EFI and TPM, which requires a RWO FS storage class to be present.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Release note:

Windows 11 now defaults to persistent TPM and EFI. This requires a storage class capable of ReadWriteMany Filesystem

@kubevirt-bot kubevirt-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Sep 9, 2024
@kubevirt-bot kubevirt-bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XS labels Sep 9, 2024
@jcanocan
Copy link

Thanks @ksimon1!
/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 10, 2024
@0xFelix
Copy link
Member

0xFelix commented Sep 10, 2024

@jean-edouard Do you want to enable this for Win 2k22 as well? See kubevirt/common-instancetypes#182

@acardace
Copy link
Member

can anyone approve this?

@0xFelix
Copy link
Member

0xFelix commented Sep 11, 2024

@acardace What about Win 2k22? For consistency it should be handled the same in common-templates and common-instancetypes.

@jean-edouard
Copy link
Contributor Author

Right, sorry, adding the change to Win 2k22 now

@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2024
@jcanocan
Copy link

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2024
Copy link
Member

@0xFelix 0xFelix left a comment

Choose a reason for hiding this comment

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

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 0xFelix

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 11, 2024
@jean-edouard
Copy link
Contributor Author

/retest

2 similar comments
@ksimon1
Copy link
Member

ksimon1 commented Sep 13, 2024

/retest

@ksimon1
Copy link
Member

ksimon1 commented Sep 13, 2024

/retest

@ksimon1
Copy link
Member

ksimon1 commented Sep 13, 2024

@jean-edouard it looks like the win11/2k22 VMs are failing because of this change

@ksimon1
Copy link
Member

ksimon1 commented Sep 13, 2024

/hold

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 13, 2024
@acardace
Copy link
Member

I'd remove win2k22 from this PR, we just need to introduce this for win11, if needed we can open a separate pr for that.

The Windows 11 template enables TPM and EFI, since both a required.
However, they were both non-persistent by default, which means bitlocker won't work.
Also, in recent versions of Windows 11, bitlocker requires both TPM and EFI to be persistent.
This enables persistent EFI and TPM, which requires a RWO FS storage class to be present.

Signed-off-by: Jed Lejosne <[email protected]>
@kubevirt-bot kubevirt-bot added size/S and removed lgtm Indicates that a PR is ready to be merged. size/XS labels Sep 13, 2024
@ksimon1
Copy link
Member

ksimon1 commented Sep 16, 2024

/retest

2 similar comments
@acardace
Copy link
Member

/retest

@ksimon1
Copy link
Member

ksimon1 commented Sep 17, 2024

/retest

@ksimon1
Copy link
Member

ksimon1 commented Sep 17, 2024

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2024
@ksimon1
Copy link
Member

ksimon1 commented Sep 17, 2024

/hold cancel

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 17, 2024
@kubevirt-bot kubevirt-bot merged commit b9b9b12 into kubevirt:master Sep 17, 2024
20 checks passed
@acardace
Copy link
Member

@jean-edouard @ksimon1 does this need to backported to a release branch to have it in 4.17?

@ksimon1
Copy link
Member

ksimon1 commented Sep 18, 2024

https://github.com/kubevirt/common-templates/releases/tag/v0.30.0
In few minutes it should create new PR to ssp operator, which can be backported to 4.17

@fossedihelm
Copy link
Contributor

/cherrypick release-v0.29

@kubevirt-bot
Copy link
Contributor

@fossedihelm: new pull request created: #639

In response to this:

/cherrypick release-v0.29

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@fossedihelm
Copy link
Contributor

/cherrypick release-v0.27

@kubevirt-bot
Copy link
Contributor

@fossedihelm: new pull request created: #640

In response to this:

/cherrypick release-v0.27

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@fossedihelm
Copy link
Contributor

/cherrypick release-v0.26

@kubevirt-bot
Copy link
Contributor

@fossedihelm: new pull request created: #641

In response to this:

/cherrypick release-v0.26

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants