Skip to content

Commit

Permalink
Merge pull request #639 from kubevirt-bot/cherry-pick-611-to-release-…
Browse files Browse the repository at this point in the history
…v0.29

[release-v0.29] Windows 11: enable TPM and EFI persistence
  • Loading branch information
kubevirt-bot authored Nov 26, 2024
2 parents 32db96d + 41f6308 commit 0f2c1c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ timeout=300
# Waiting for kubevirt cr to report available
oc wait --for=condition=Available --timeout=${timeout}s kubevirt/kubevirt -n $namespace

oc patch kubevirt kubevirt -n $namespace --type merge -p '{"spec":{"configuration":{"developerConfiguration":{"featureGates": ["DataVolumes", "CPUManager", "NUMA", "DownwardMetrics"]}}}}'
oc patch kubevirt kubevirt -n $namespace --type merge -p '{"spec":{"configuration":{"developerConfiguration":{"featureGates": ["DataVolumes", "CPUManager", "NUMA", "DownwardMetrics", "VMPersistentState"]}}}}'

key="/tmp/secrets/accessKeyId"
token="/tmp/secrets/secretKey"
Expand Down
4 changes: 3 additions & 1 deletion templates/windows11.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ objects:
bootloader:
efi:
secureBoot: true
persistent: true
devices:
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
Expand All @@ -180,7 +181,8 @@ objects:
bus: usb
name: tablet
{% endif %}
tpm: {}
tpm:
persistent: true
terminationGracePeriodSeconds: 3600
volumes:
- dataVolume:
Expand Down
4 changes: 3 additions & 1 deletion templates/windows2k22.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ objects:
bootloader:
efi:
secureBoot: true
persistent: true
devices:
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
Expand All @@ -174,7 +175,8 @@ objects:
bus: usb
name: tablet
{% endif %}
tpm: {}
tpm:
persistent: true
terminationGracePeriodSeconds: 3600
volumes:
- dataVolume:
Expand Down

0 comments on commit 0f2c1c2

Please sign in to comment.