DaanHoogland commented on code in PR #12092:
URL: https://github.com/apache/cloudstack/pull/12092#discussion_r2782055098


##########
engine/schema/src/main/java/com/cloud/upgrade/SystemVmTemplateRegistration.java:
##########
@@ -108,9 +108,19 @@ public class SystemVmTemplateRegistration {
     private static Integer LINUX_12_ID = 363;
     private static final Integer SCRIPT_TIMEOUT = 1800000;
     private static final Integer LOCK_WAIT_TIMEOUT = 1200;
-    protected static final List<CPU.CPUArch> DOWNLOADABLE_TEMPLATE_ARCH_TYPES 
= Arrays.asList(
-            CPU.CPUArch.arm64
+    protected static final List<Pair<Hypervisor.HypervisorType, CPU.CPUArch>> 
AVAILABLE_SYSTEM_TEMPLATES_HYPERVISOR_ARCH_LIST = Arrays.asList(
+            new Pair<>(Hypervisor.HypervisorType.KVM, CPU.CPUArch.amd64),
+            new Pair<>(Hypervisor.HypervisorType.KVM, CPU.CPUArch.arm64),
+            new Pair<>(Hypervisor.HypervisorType.VMware, CPU.CPUArch.amd64),
+            new Pair<>(Hypervisor.HypervisorType.XenServer, CPU.CPUArch.amd64),
+            new Pair<>(Hypervisor.HypervisorType.Hyperv, CPU.CPUArch.amd64),
+            new Pair<>(Hypervisor.HypervisorType.LXC, CPU.CPUArch.amd64),
+            new Pair<>(Hypervisor.HypervisorType.Ovm3, CPU.CPUArch.amd64)

Review Comment:
   ok, just add. there is a removal PR out on main and we’ll have to add the 
removal there (pun just a happy accident).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to