Skip to content

Commit

Permalink
enable smm when secureboot is enabled for openstack sources
Browse files Browse the repository at this point in the history
(cherry picked from commit bda1e62)
  • Loading branch information
ibrokethecloud committed Aug 29, 2024
1 parent 54df890 commit 70a34e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/source/openstack/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ func (c *Client) GenerateVirtualMachine(vm *migration.VirtualMachineImport) (*ku
corev1.ResourceCPU: resource.MustParse(fmt.Sprintf("%d", flavorObj.VCPUs)),
},
},
Features: &kubevirt.Features{
ACPI: kubevirt.FeatureState{
Enabled: &boolTrue,
},
},
},
},
},
Expand Down Expand Up @@ -438,6 +443,9 @@ func (c *Client) GenerateVirtualMachine(vm *migration.VirtualMachineImport) (*ku
}
if secureboot {
firmware.Bootloader.EFI.SecureBoot = &boolTrue
vmSpec.Template.Spec.Domain.Features.SMM = &kubevirt.FeatureState{
Enabled: &boolTrue,
}
}
vmSpec.Template.Spec.Domain.Firmware = firmware
if tpm {
Expand Down

0 comments on commit 70a34e4

Please sign in to comment.