From: Dietmar Maurer Date: Thu, 10 Dec 2015 09:48:04 +0000 (+0100) Subject: introcude new 'bios' option (replace ovmf option) X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3edb45e74939e3c61095a7302d9a3691f08e0f93;p=qemu-server.git introcude new 'bios' option (replace ovmf option) --- diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index eabbd14..85ebce0 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -391,11 +391,12 @@ EODESCR description => "Sets the protection flag of the VM. This will prevent the remove operation.", default => 0, }, - ovmf => { + bios => { optional => 1, - type => 'boolean', - description => "Enable ovmf uefi roms.", - default => 0, + type => 'string', + enum => [ qw(seabios ovmf) ], + description => "Select BIOS implementation.", + default => 'seabios', }, }; @@ -2693,7 +2694,7 @@ sub config_to_command { push @$cmd, '-smbios', "type=1,$conf->{smbios1}"; } - if ($conf->{ovmf}) { + if ($conf->{bios} && $conf->{bios} eq 'ovmf') { my $ovmfvar = "OVMF_VARS-pure-efi.fd"; my $ovmfvar_src = "/usr/share/kvm/$ovmfvar"; my $ovmfvar_dst = "/tmp/$vmid-$ovmfvar";