Skip to content

Commit

Permalink
MTV-1632 | Enable SMM for the uefi secureboot
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Necas <[email protected]>
  • Loading branch information
mnecas committed Dec 13, 2024
1 parent 3929eaf commit 1c34808
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/controller/plan/adapter/vsphere/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,13 @@ func (r *Builder) mapFirmware(vm *model.VM, object *cnv.VirtualMachineSpec) {
EFI: &cnv.EFI{
SecureBoot: &vm.SecureBoot,
}}
if vm.SecureBoot {
object.Template.Spec.Domain.Features = &cnv.Features{
SMM: &cnv.FeatureState{
Enabled: &vm.SecureBoot,
},
}
}
default:
firmware.Bootloader = &cnv.Bootloader{BIOS: &cnv.BIOS{}}
}
Expand Down

0 comments on commit 1c34808

Please sign in to comment.