diff --git a/automation/test.sh b/automation/test.sh index b94f3b79..dbe1cfdd 100755 --- a/automation/test.sh +++ b/automation/test.sh @@ -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" diff --git a/templates/windows11.tpl.yaml b/templates/windows11.tpl.yaml index 097c3f91..8f1bd1cc 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 8ef5ce8c..316fe91b 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: