diff --git a/automation/test.sh b/automation/test.sh index 46956d54..3205277f 100755 --- a/automation/test.sh +++ b/automation/test.sh @@ -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" diff --git a/templates/windows11.tpl.yaml b/templates/windows11.tpl.yaml index ec60e0f8..4da2bb7a 100644 --- a/templates/windows11.tpl.yaml +++ b/templates/windows11.tpl.yaml @@ -154,6 +154,7 @@ objects: bootloader: efi: secureBoot: true + persistent: true devices: {% if item.multiqueue and item.cpus > 1 %} networkInterfaceMultiqueue: True @@ -180,7 +181,8 @@ objects: bus: usb name: tablet {% endif %} - tpm: {} + tpm: + persistent: true terminationGracePeriodSeconds: 3600 volumes: - dataVolume: diff --git a/templates/windows2k22.tpl.yaml b/templates/windows2k22.tpl.yaml index 97ac3b91..2e04a238 100644 --- a/templates/windows2k22.tpl.yaml +++ b/templates/windows2k22.tpl.yaml @@ -148,6 +148,7 @@ objects: bootloader: efi: secureBoot: true + persistent: true devices: {% if item.multiqueue and item.cpus > 1 %} networkInterfaceMultiqueue: True @@ -174,7 +175,8 @@ objects: bus: usb name: tablet {% endif %} - tpm: {} + tpm: + persistent: true terminationGracePeriodSeconds: 3600 volumes: - dataVolume: