VMware Cloud Community
erki72
Enthusiast
Enthusiast

VM creation Boot Options EFI / BIOS

Situation:
- vCenter 7
- Lots of ESXi 6.7 hosts and now also some ESXi 7 hosts

Create VM was done through automation and we didn't give any settings related to EFI and Secure Boot.

Problem:
Newly created VMs have EFI and Secure Boot enabled. But I should have it different by default for a moment until I have all hosts on V7.
So Boot Options still on BIOS

So I gave the following parameters in the automation through which the VMs are created, with PowerCLI (Source )

$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.Firmware = [VMware.Vim.GuestOsDescriptorFirmwareType]::bios
$spec.bootOptions.EfiSecureBootEnabled = $false
$vm.ExtensionData.ReconfigVM($spec)

Error Message:

Exception calling "ReconfigVM" with "1" argument(s): "Invalid virtual machine configuration. EFI secure boot could be enabled only on EFI firmware."

Question:
What is the easiest way for me to use Powercli to create the VM with BIOS instead of EFI?

I have no idea where the default setting comes from and why it changed.

0 Kudos
1 Reply
erki72
Enthusiast
Enthusiast

I think I'm one step further and have found something. Gonna try that

0 Kudos