From 207f2e16c01d78473fb6a095078010170ceaf85e Mon Sep 17 00:00:00 2001 From: Karel Simon Date: Fri, 20 Sep 2024 11:08:56 +0200 Subject: [PATCH] fix: fix minimum requirements in win2k25 template The win2k25 requirements https://learn.microsoft.com/en-us/windows-server/get-started/hardware-requirements?tabs=cpu#components Signed-off-by: Karel Simon --- osinfo-db-override/os/microsoft.com/win-2k25.xml | 8 ++++---- templates/windows2k25.tpl.yaml | 8 +------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/osinfo-db-override/os/microsoft.com/win-2k25.xml b/osinfo-db-override/os/microsoft.com/win-2k25.xml index ea97e515..6ab54a7e 100644 --- a/osinfo-db-override/os/microsoft.com/win-2k25.xml +++ b/osinfo-db-override/os/microsoft.com/win-2k25.xml @@ -10,10 +10,10 @@ win - 1000000000 - 2 - 4294967296 - 68719476736 + 1400000000 + 1 + 536870912 + 34359738368 diff --git a/templates/windows2k25.tpl.yaml b/templates/windows2k25.tpl.yaml index 153fd004..44377fa7 100644 --- a/templates/windows2k25.tpl.yaml +++ b/templates/windows2k25.tpl.yaml @@ -73,12 +73,6 @@ objects: "rule": "enum", "message": "cd bus has to be sata", "values": ["sata"] - }, { - "name": "minimal-required-cores", - "path": "jsonpath::.spec.domain.cpu.cores", - "rule": "integer", - "message": "This VM requires more cores.", - "min": 2 } ] spec: @@ -121,7 +115,7 @@ objects: hyperv: {} cpu: sockets: {{ item.cpus }} - cores: 2 + cores: 1 threads: 1 {% if item.iothreads or item.emulatorthread %} dedicatedCpuPlacement: True