From 9cf8b11ace473706ec4c2c47a7fcb59573b641ae Mon Sep 17 00:00:00 2001 From: jwzepf Date: Thu, 6 Sep 2018 10:45:33 -0600 Subject: [PATCH 1/2] Added BIOS option to UI Added BIOS option to Advanced tab in VM Creation to allow user to pick between UEFI guest using OVMF, or traditional BIOS guest using SeaBios. Default setting is SeaBios --- dist/script/models/vmModel.js | 2 ++ widgets/xenclient/nls/VMDetails.js | 5 ++++- widgets/xenclient/templates/VMDetails.html | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dist/script/models/vmModel.js b/dist/script/models/vmModel.js index a80abba..4b4f70b 100644 --- a/dist/script/models/vmModel.js +++ b/dist/script/models/vmModel.js @@ -57,6 +57,7 @@ XenClient.UI.VMModel = function(vm_path) { this.usb_enabled = true; this.stubdom = false; this.viridian = true; + this.bios = "seabios"; this.hvm = true; this.kernel = ""; this.kernel_extract = ""; @@ -151,6 +152,7 @@ XenClient.UI.VMModel = function(vm_path) { ["stubdom", interfaces.vm], ["viridian", interfaces.vm], ["hvm", interfaces.vm], + ["bios", interfaces.vm], ["kernel", interfaces.vm], ["kernel_extract", interfaces.vm], ["cmd_line", interfaces.vm], diff --git a/widgets/xenclient/nls/VMDetails.js b/widgets/xenclient/nls/VMDetails.js index 0bb3a39..f1af693 100755 --- a/widgets/xenclient/nls/VMDetails.js +++ b/widgets/xenclient/nls/VMDetails.js @@ -104,7 +104,10 @@ USB_POLICY: "USB Access:", STUB_DOMAIN: "Stub Domain:", VIRIDIAN: "Emulate Microsoft Hyper-V:", - HVM: "Hardware Virtual Machine", + HVM: "Hardware Virtual Machine:", + BIOS: "BIOS:", + BIOS_OVMF: "UEFI", + BIOS_SEABIOS: "SeaBIOS", KERNEL: "Kernel Path:", KERNEL_EXTRACT: "Kernel Extraction Path:", COMMAND_LINE: "Command Line:", diff --git a/widgets/xenclient/templates/VMDetails.html b/widgets/xenclient/templates/VMDetails.html index eaadecd..4ab2237 100755 --- a/widgets/xenclient/templates/VMDetails.html +++ b/widgets/xenclient/templates/VMDetails.html @@ -374,6 +374,10 @@

${VIRTUAL_TITLE}

+
+ + +
From ceb3d7eb8ee07835563ebd4eeb1cbd67ade36b3b Mon Sep 17 00:00:00 2001 From: Tamas K Lengyel Date: Thu, 6 Sep 2018 11:05:54 -0600 Subject: [PATCH 2/2] Rename SeaBIOS to Legacy in option menu --- widgets/xenclient/nls/VMDetails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/xenclient/nls/VMDetails.js b/widgets/xenclient/nls/VMDetails.js index f1af693..b2c2b5f 100755 --- a/widgets/xenclient/nls/VMDetails.js +++ b/widgets/xenclient/nls/VMDetails.js @@ -107,7 +107,7 @@ HVM: "Hardware Virtual Machine:", BIOS: "BIOS:", BIOS_OVMF: "UEFI", - BIOS_SEABIOS: "SeaBIOS", + BIOS_SEABIOS: "Legacy", KERNEL: "Kernel Path:", KERNEL_EXTRACT: "Kernel Extraction Path:", COMMAND_LINE: "Command Line:",