No OVMF_UEFIS defined error

Hi,

It seems that we’re hitting a bug in Sunstone. Any template that is set to use UEFI firmware will get the error: No OVMF_UEFIS defined in configuration when deploying.

The file it’s pointing to exists on all nodes, but it’s as if the validation on the template is failing or the firmware line of the config isn’t saving correctly.

It seems it can be worked around by changing a VM’s conf to BIOS, booting the machine shutting down again and then editing the conf back to the original UEFI firmware location. So the UEFI firmware functionality definitely works. This seems to be a bug in the OpenNebula frontend.


Versions of the related components and OS (frontend, hypervisors, VMs):
6.10

Hi @samoz83 !

Could you please post a snippet of the Sunstone generated VM Template?

Regards,
Victor

Hi Victor,

Here’s the generated template, it does seem to have the correct firmware set and that fd file does exist on the systems.

CONTEXT = [
  NETWORK = "YES",
  SSH_PUBLIC_KEY = "$USER[SSH_PUBLIC_KEY]" ]
CPU = "1"
CPU_MODEL = [
  MODEL = "host-passthrough" ]
DISK = [
  DEV_PREFIX = "vd",
  IMAGE = "VM-24-25",
  IMAGE_UNAME = "xxx" ]
FEATURES = [
  ACPI = "yes",
  GUEST_AGENT = "yes",
  LOCALTIME = "yes" ]
GRAPHICS = [
  LISTEN = "0.0.0.0",
  TYPE = "VNC" ]
HOT_RESIZE = [
  CPU_HOT_ADD_ENABLED = "NO",
  MEMORY_HOT_ADD_ENABLED = "NO" ]
HYPERVISOR = "kvm"
INPUT = [
  BUS = "usb",
  TYPE = "tablet" ]
MEMORY = "6144"
MEMORY_RESIZE_MODE = "BALLOONING"
MEMORY_UNIT_COST = "MB"
NIC = [
  METHOD = "static",
  NETWORK = "internet",
  NETWORK_UNAME = "xxx",
  SECURITY_GROUPS = "0" ]
NIC_DEFAULT = [
  MODEL = "virtio" ]
OS = [
  ARCH = "x86_64",
  BOOT = "disk0",
  FIRMWARE = "/usr/share/edk2/ovmf/OVMF_CODE.fd",
  MACHINE = "q35" ]
USER_INPUTS = [
  CPU = "O|fixed|| |1",
  MEMORY = "O|fixed|| |6144",
  VCPU = "O|fixed|| |4" ]
VCPU = "4"
VIDEO = [
  RESOLUTION = "1536x864",
  TYPE = "virtio" ]