Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add firmware and boot_options to VM configuration #1109

Merged
merged 41 commits into from
Sep 14, 2023

Conversation

adezxc
Copy link

@adezxc adezxc commented Aug 18, 2023

This PR introduces new fields to vcd_vm and vcd_vapp_vm resources and datasources:

  • firmware specify either EFI or BIOS (37.1+)
  • boot_options block:
    • efi_secure_boot (37.1+)
    • boot_delay
    • boot_retry_enabled(37.1+)
    • boot_retry_delay(37.1+)
    • enter_bios_setup

Closes #1078

Adam Jasinski added 6 commits August 18, 2023 18:34
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
@adezxc adezxc marked this pull request as ready for review August 21, 2023 13:11
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
@adezxc adezxc changed the title Add VM Boot Options Add firmware and boot_options to VM configuration Aug 21, 2023
Adam Jasinski added 5 commits August 21, 2023 16:56
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
website/docs/r/vapp_vm.html.markdown Outdated Show resolved Hide resolved
website/docs/r/vapp_vm.html.markdown Outdated Show resolved Hide resolved
website/docs/r/vapp_vm.html.markdown Outdated Show resolved Hide resolved
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

My first scan through with some questions

website/docs/r/vapp_vm.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
website/docs/r/vapp_vm.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
Adam Jasinski added 6 commits August 30, 2023 15:51
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
.changes/v3.11.0/1109-features.md Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
Also check for the values to exist using GetOk instead of Get

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Adam Jasinski added 4 commits September 6, 2023 18:35
which results in an inconsistent plan but is more convenient for the user as it
doesn't result in a BIOS loop

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Update documentation's  'bios' to `bios`.

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Update website
Make tests work because of inconsistent plan
Rename 'enter_bios_setup' to 'enter_bios_setup_on_next_boot'

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Adam Jasinski added 3 commits September 11, 2023 10:58
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
website/docs/r/vapp_vm.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
Adam Jasinski added 5 commits September 12, 2023 08:29
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

Thanks for all the improvements. I have a left a few more comments to address

vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
…ective for vapp_vm and vm

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! One more approval into the basket :)

Adam Jasinski added 2 commits September 13, 2023 13:31
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm.go Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp_vm_boot_options_test.go Outdated Show resolved Hide resolved
Adam Jasinski added 2 commits September 13, 2023 14:48
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this feature 👍

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
@adezxc adezxc merged commit b24e101 into vmware:main Sep 14, 2023
3 checks passed
@adezxc adezxc deleted the vm-boot-options branch September 14, 2023 18:41
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.

Add option to specify boot firmware (BIOS/EFI) and secure boot
5 participants