Skip to content

Commit

Permalink
secure boot needs smm feature state
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrokethecloud committed Jun 12, 2024
1 parent 9e33784 commit 38e734f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/source/vmware/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,13 @@ func (c *Client) GenerateVirtualMachine(vm *migration.VirtualMachineImport) (*ku
}
if *o.Config.BootOptions.EfiSecureBootEnabled {
firmware.Bootloader.EFI.SecureBoot = &boolTrue
}
vmSpec.Template.Spec.Domain.Firmware = firmware
if *o.Summary.Config.TpmPresent {
vmSpec.Template.Spec.Domain.Features.SMM = &kubevirt.FeatureState{
Enabled: &boolTrue,
}
}
vmSpec.Template.Spec.Domain.Firmware = firmware
if *o.Summary.Config.TpmPresent {

vmSpec.Template.Spec.Domain.Devices.TPM = &kubevirt.TPMDevice{}
}
}
Expand Down

0 comments on commit 38e734f

Please sign in to comment.