diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js
index c8be44635d..75fe712c02 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js
@@ -221,11 +221,41 @@ define(function(require) {
// All KVM settings are available in LXD plus
// Privileged, Profile and Security Nesting
- if (this.value == "lxd"){
+ if (this.value == "lxd") {
$('.only_lxd').show();
$('.not_lxd').hide();
$('.raw_type').val('lxd');
}
+
+ var formContext = "#createVMTemplateFormWizard";
+ var NUMA_THREADS_MIN = 1;
+ var NUMA_THREADS_MAX = 2;
+ if (this.value == "firecracker") {
+ // [GENERAL]
+ $(".cpu_input > input", formContext).val("1");
+ // [NUMA]
+ $("#numa-pin-policy", formContext).val("SHARED");
+ $("#numa-sockets", formContext).val("1");
+ $("#numa-threads", formContext)
+ .prop("max", NUMA_THREADS_MAX)
+ .val(function(_, value) {
+ return (value > NUMA_THREADS_MAX) ? NUMA_THREADS_MAX : NUMA_THREADS_MIN;
+ })
+
+ $('.disabled_firecracker', formContext).prop("disabled", true);
+ $('.not_firecracker', formContext).hide();
+ }
+ else {
+ // [GENERAL]
+ $(".cpu_input > input", formContext).val("");
+ // [NUMA]
+ $("#numa-pin-policy", formContext).val("NONE");
+ $("#numa-sockets", formContext).val("");
+ $("#numa-threads", formContext).removeAttr("max").val("");
+
+ $('.disabled_firecracker', formContext).removeAttr("disabled");
+ $('.not_firecracker', formContext).show();
+ }
});
CapacityCreate.setup($("div.capacityCreate", context));
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs
index 4034ea48d0..68b67dcd27 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs
@@ -101,7 +101,7 @@
{{{tip (tr "Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.")}}}
-
+
Cost
@@ -110,7 +110,7 @@
-
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js
index 410f94f547..279c19ca8d 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js
@@ -55,6 +55,7 @@ define(function(require) {
this.wizardTabId = WIZARD_TAB_ID + UniqueId.id();
this.icon = 'fa-cloud';
this.title = Locale.tr("Hybrid");
+ this.classes = "not_firecracker";
this.oneEnabled = false;
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs
index ddb6e194b8..44895f3b27 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs
@@ -119,7 +119,7 @@
-
+
{{tr "PCI Devices"}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs
index 6285f2925f..e7848c8444 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs
@@ -33,7 +33,7 @@
-
+
{{tr "Default hardware model to emulate for all NICs"}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs
index db3c57ed2a..46e3b4f156 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs
@@ -242,7 +242,7 @@
-
+
{{tr "Override Network Inbound Traffic QoS"}}
-
+
{{tr "Override Network Outbound Traffic QoS"}}
-
+
{{tr "Hardware"}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/numa/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/numa/html.hbs
index f4c1bc3e53..1b0ce6e089 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/numa/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/numa/html.hbs
@@ -30,17 +30,21 @@
{{tr "Pin Policy"}}
{{{tip (tr "vCPU pinning preference: CORE, THREAD, SHARED, NONE")}}}
-
+
{{tr "none"}}
{{tr "thread"}}
{{tr "shared"}}
{{tr "core"}}
+
+
{{tr "Sockets"}}
{{{tip (tr "Number of sockets or NUMA nodes")}}}
-
+
+
+
{{tr "Cores"}}
{{{tip (tr "Number of cores per node")}}}
@@ -52,12 +56,16 @@
{{tr "Threads"}}
{{{tip (tr "Number of threads per core")}}}
-
+
+
+
{{tr "Hugepages Size"}}
{{{tip (tr "Size of the hugepages (MB). If not defined no hugepages will be used")}}}
+
+
{{tr "Memory Access"}}
{{{tip (tr "Control if the memory is to be mapped shared or private")}}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs
index 2fa499a637..4c5eb0dd75 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs
@@ -22,13 +22,13 @@
{{tr "Kernel"}}
-
+
{{tr "Ramdisk"}}
-
+
{{tr "Features"}}
-
+
{{tr "CPU Model"}}
@@ -37,7 +37,7 @@
-
+
{{tr "CPU Architecture"}}
@@ -47,18 +47,18 @@
-
+
{{tr "Bus for SD disks"}}
-
-
+
-
+
{{tr "Path to the bootloader executable"}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs
index 42e54d29b7..48595a2d70 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs
@@ -16,7 +16,7 @@
-
+
{{tr "RAW data"}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/options.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/options.hbs
index 3ecf8b02f2..ea424a8cf9 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/options.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/options.hbs
@@ -1,5 +1,5 @@
-
+
{{tr "Target device"}}
{{tr "Mountpoint"}}
@@ -7,7 +7,7 @@
-
+
{{tr "Image mapping driver"}}
@@ -22,7 +22,7 @@
-
+
{{tr "BUS"}}
@@ -47,7 +47,7 @@
{{tr "no"}}
-
+
{{tr "Bus adapter controller"}}
@@ -59,7 +59,7 @@
custom
-
+
{{tr "Disk provisioning type"}}
@@ -73,7 +73,7 @@
-
+
{{tr "Cache"}}
@@ -87,7 +87,7 @@
unsafe
-
+
{{tr "IO policy"}}
@@ -97,7 +97,7 @@
native
-
+
{{tr "Discard"}}
@@ -127,7 +127,7 @@
{{/unless}}
-
+
{{tr "Throttling (Bytes/s)"}}
-
+
{{tr "Throttling (IOPS)"}}