Skip to content

Commit

Permalink
Merge pull request #182 from lyarwood/reintroduce-pr-167
Browse files Browse the repository at this point in the history
Windows 11, 2k22: Enable persistent TPMs & EFI
  • Loading branch information
kubevirt-bot authored Sep 10, 2024
2 parents c6b88f0 + 6a87176 commit 431023a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 5 deletions.
10 changes: 10 additions & 0 deletions preferences/components/efi-persisted/efi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
metadata:
name: efi
spec:
firmware:
preferredEfi:
persistent: true
secureBoot: false
11 changes: 11 additions & 0 deletions preferences/components/efi-persisted/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

patches:
- path: ./efi.yaml
target:
kind: VirtualMachinePreference
- path: ./efi.yaml
target:
kind: VirtualMachineClusterPreference
4 changes: 2 additions & 2 deletions preferences/components/efi/efi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
name: efi
spec:
firmware:
preferredUseEfi: true
preferredUseSecureBoot: false
preferredEfi:
secureBoot: false
4 changes: 2 additions & 2 deletions preferences/components/secureboot/secureboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ spec:
features:
preferredSmm: {}
firmware:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredEfi:
secureBoot: true
3 changes: 2 additions & 1 deletion preferences/components/tpm/tpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ metadata:
name: tpm
spec:
devices:
preferredTPM: {}
preferredTPM:
persistent: true
1 change: 1 addition & 0 deletions preferences/windows/11/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
components:
- ./metadata
- ./requirements
- ../../components/efi-persisted
- ../../components/tpm
- ../../components/secureboot

Expand Down
1 change: 1 addition & 0 deletions preferences/windows/2k22/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
components:
- ./metadata
- ./requirements
- ../../components/efi-persisted
- ../../components/tpm
- ../../components/secureboot

Expand Down

0 comments on commit 431023a

Please sign in to comment.