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 <d.csapak@proxmox.com>
 [ TL: add new warning to return schema ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak
2024-03-19 14:00:27 +01:00
committed by Thomas Lamprecht
parent 85fbbb2f96
commit 0f940f10fc
2 changed files with 2 additions and 0 deletions

View File

@ -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',

View File

@ -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';
}