Skip to content

Commit

Permalink
Merge pull request #611 from jean-edouard/persistentwin11
Browse files Browse the repository at this point in the history
Windows 11: enable TPM and EFI persistence
  • Loading branch information
kubevirt-bot authored Sep 17, 2024
2 parents fe69313 + 64e2730 commit b9b9b12
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 @@ -151,7 +151,7 @@ timeout=600
# 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 b9b9b12

Please sign in to comment.