Skip to content

Conversation

@ekohl
Copy link
Contributor

@ekohl ekohl commented Dec 20, 2023

This implements EFI host creation by specifying the os_firmware attribute to be efi. It's also possible to set the os_loader attribute to secure (for UEFI secure boot) or stateless (for AMD SEV). Both secure and stateless imply the os_firmware to be efi.

It includes #132 because the secure boot loader creates NVRAM and otherwise you wouldn't be able to delete those machines.

Only minimal testing on Fedora 38 has been done, but I can create VMs and have them boot up.

Fixes #128

@ekohl
Copy link
Contributor Author

ekohl commented Dec 21, 2023

I really don't like the RuboCop style rules that are set up ...

This implements EFI host creation by specifying the os_firmware
attribute to be efi. It's also possible to set the os_loader attribute
to secure (for UEFI secure boot) or stateless (for AMD SEV). Both secure
and stateless imply the os_firmware to be efi.
@jhoblitt
Copy link

jhoblitt commented Jul 1, 2024

What is needed to move forward with this? I would like to start using efi for pxebooting libvirt VMs via foreman.

type[:machine] = "q35" if ["i686", "x86_64"].include?(arch)

# TODO: can you use both secure and stateless at the same time?
case attributes[:os_loader]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: https://libvirt.org/kbase/secureboot.html says the os_loader was only needed for libvirt >= 7.2 < 8.6

@ekohl
Copy link
Contributor Author

ekohl commented Nov 11, 2024

Made redundant by #155.

@ekohl ekohl closed this Nov 11, 2024
@ekohl ekohl deleted the implement-efi branch November 11, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No ability to create libvirt KVM virtual machine instances with uefi support

2 participants