From 0f940f10fc6ebd965d7e01282d343d8861b87821 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 19 Mar 2024 14:00:27 +0100 Subject: [PATCH] esxi: add warning for losing efi state we cannot import the state of the efivars (e.g. boot order) so add a warning for that Signed-off-by: Dominik Csapak [ TL: add new warning to return schema ] Signed-off-by: Thomas Lamprecht --- src/PVE/API2/Storage/Status.pm | 1 + src/PVE/Storage/ESXiPlugin.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index 3ce11fc..f7e324f 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -746,6 +746,7 @@ __PACKAGE__->register_method({ description => 'What this warning is about.', enum => [ 'cdrom-image-ignored', + 'efi-state-lost', 'guest-is-running', 'nvme-unsupported', 'ovmf-with-lsi-unsupported', diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm index 3f47577..e448760 100644 --- a/src/PVE/Storage/ESXiPlugin.pm +++ b/src/PVE/Storage/ESXiPlugin.pm @@ -955,6 +955,7 @@ sub get_create_args { if ($firmware eq 'efi') { $create_args->{bios} = 'ovmf'; $create_disks->{efidisk0} = 1; + $warn->('efi-state-lost', key => "bios", value => "ovmf"); } else { $create_args->{bios} = 'seabios'; }