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 support for boot delay #507

Open
ctorkington-craven opened this issue Jan 9, 2025 · 0 comments
Open

Add support for boot delay #507

ctorkington-craven opened this issue Jan 9, 2025 · 0 comments
Assignees
Milestone

Comments

@ctorkington-craven
Copy link

ctorkington-craven commented Jan 9, 2025

Description

Existing configuration_parameters allows config options defined in VirtualMachineConfigSpec.
bootOptions is a property of this defined in VirtualMachineBootOptions which includes properties such as;
bootDelay
bootOrder
efiSecureBootEnabled
enterBIOSSetup

I can see this was raised previously but with not apparenet resolution:-
#228 and #11964

Can you create an option for 'bootDelay' in the same way you created one for bootOrder(Packer option is 'boot_order').

A written overview of the feature.

The option allows the VM sheel to halt at the POST screen for a period of time to allow human interaction to press F2 to enter SETUP.

Default of 0milliseconds can be too quick for users on slower remote console connections.

Any relevant use-cases that you see.

Packer generated templates and VMs take the default value of bootDelay=0milliseconds as there is no means to alter this without additional PowerCLI.

Users request bootDelay increase to enable the 'Press F2 to enter Setup' option to allow for VM BIOS alteration to boot order (and other BIOS options).

Potential configuration

boot_delay = 5000

The equivalent PowerCLI script is:

$VM=get-vm testVM

$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec  

$vmConfigSpec.bootOptions = New-Object VMware.Vim.VirtualMachineBootOptions

&vmConfigSpec.bootOptions = 5000
	$VM.ExtensionData.ReconfigVM($vmConfigSpec) 
@tenthirtyam tenthirtyam changed the title Create option for bootOptions.bootDelay similar to boot_order Add support for boot delay Jan 9, 2025
@tenthirtyam tenthirtyam self-assigned this Jan 9, 2025
@tenthirtyam tenthirtyam added this to the v1.6.0 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants