Skip to content

feat: add uefi and secure boot#212

Merged
nywilken merged 1 commit intomainfrom
feat/uefi-secure-boot
Jul 5, 2024
Merged

feat: add uefi and secure boot#212
nywilken merged 1 commit intomainfrom
feat/uefi-secure-boot

Conversation

@tenthirtyam
Copy link
Copy Markdown
Collaborator

@tenthirtyam tenthirtyam commented Jul 1, 2024

Description

Adds options to explicitly enable UEFI and Secure Boot (requires UEFI).

Introduces optional firmware. Allowed values are bios, uefi, and uefi-secure (for secure boot). Defaults to the recommended firmware type for the guest operating system.

Note the use of "uefi" instead of "efi" as seen in packer-plugin-vsphere as this is more correct and aligns with the UI and the secure boot key in the .vmx file.

Testing

packer-plugin-vmware on  feat/uefi-secure-bootgo fmt ./...

packer-plugin-vmware on  feat/uefi-secure-bootmake generate
2024/06/30 23:20:31 Copying "docs" to ".docs/"
2024/06/30 23:20:31 Replacing @include '...' calls in .docs/
Compiling MDX docs in '.docs' to Markdown in '.web-docs'...

packer-plugin-vmware on  feat/uefi-secure-boot [$!]make build

packer-plugin-vmware on  feat/uefi-secure-bootmake test
?       github.com/hashicorp/packer-plugin-vmware       [no test files]
?       github.com/hashicorp/packer-plugin-vmware/version       [no test files]
ok      github.com/hashicorp/packer-plugin-vmware/builder/vmware/common 6.592s
ok      github.com/hashicorp/packer-plugin-vmware/builder/vmware/iso    2.165s
ok      github.com/hashicorp/packer-plugin-vmware/builder/vmware/vmx    1.739s

packer-plugin-vmware on  feat/uefi-secure-boot [$!] make dev
packer plugins install --path packer-plugin-vmware "github.com/hashicorp/vmware"
Successfully installed plugin github.com/hashicorp/vmware from /Users/ryan/Library/Mobile Documents/com~apple~CloudDocs/Code/Personal/packer-plugin-vmware/packer-plugin-vmware to /Users/ryan/.packer.d/plugins/github.com/hashicorp/vmware/packer-plugin-vmware_v1.0.12-dev_x5.0_darwin_arm64

Reference

Closes #58

@tenthirtyam tenthirtyam self-assigned this Jul 1, 2024
@tenthirtyam tenthirtyam mentioned this pull request Jul 1, 2024
@tenthirtyam tenthirtyam added the enhancement Enhancement label Jul 1, 2024
@tenthirtyam tenthirtyam marked this pull request as ready for review July 1, 2024 14:48
@tenthirtyam tenthirtyam requested a review from a team as a code owner July 1, 2024 14:48
@tenthirtyam tenthirtyam force-pushed the feat/uefi-secure-boot branch 2 times, most recently from 709ca40 to 694739f Compare July 1, 2024 22:56
Copy link
Copy Markdown
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

Overall this looks good. I left a few suggestions. Let me know what you think. If you prefer to keep it as is. Just let me know and I will approve and merge.

@tenthirtyam tenthirtyam force-pushed the feat/uefi-secure-boot branch 2 times, most recently from 7cbb987 to 45c037f Compare July 5, 2024 16:29
@tenthirtyam tenthirtyam requested a review from nywilken July 5, 2024 16:30
Adds options to explicitly enable UEFI and Secure Boot (required UEFI).

Also, updates the descriptions for the documentation and moves the CoreCount right after CPUCount to maintain a logical order.

Ref: #58

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam tenthirtyam force-pushed the feat/uefi-secure-boot branch from 45c037f to f174d3a Compare July 5, 2024 16:35
@tenthirtyam tenthirtyam added this to the v1.0.12 milestone Jul 5, 2024
Copy link
Copy Markdown
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

This looks good to go. Thanks for the updates.

@nywilken nywilken merged commit 88a052e into main Jul 5, 2024
@nywilken nywilken deleted the feat/uefi-secure-boot branch July 5, 2024 18:50
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 1, 2026

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for UEFI firmware and secure boot

2 participants