VMware vSphere

 View Only
  • 1.  Changing vCenter default VM setting from BIOS to UEFI

    Posted Jan 20, 2019 07:44 PM

    We are currently looking for a way to change the default VM setting from BIOS to UEFI, so we do not need to change the API call in our third party automation tool, but the vCenter creates only UEFI VMs in the future. Does anyone has a clue where to change it?



  • 2.  RE: Changing vCenter default VM setting from BIOS to UEFI

    Posted Jan 21, 2019 04:33 PM

    So if you go into Edit Settings on the VM and select the VM Options Tab you should see this

    It looks like you can change it there.



  • 3.  RE: Changing vCenter default VM setting from BIOS to UEFI

    Posted Jan 22, 2019 12:52 PM

    Yes, I was aware of this one, but looking for a way to have the default setting changed. Backgroun: We want to change BIOS to UEFI for all future VM installations, but the call to the vCenter API should not have an additional value for the type of the BIOS. If you dont change it, it is BIOS, not UEFI.



  • 4.  RE: Changing vCenter default VM setting from BIOS to UEFI

    Posted Jan 22, 2019 01:50 PM

    Could you get away with using a VM Template to deploy your VMs from? This way you could configure that setting one and then just deploy from the template.



  • 5.  RE: Changing vCenter default VM setting from BIOS to UEFI

    Posted Feb 28, 2019 08:03 AM

    Unfortunately, we cannot use templates... I got an answer from VMware, that it is not something we can change currently. :smileysad:



  • 6.  RE: Changing vCenter default VM setting from BIOS to UEFI

    Posted Feb 28, 2019 01:14 PM

    Bummer about the templates! That's how we do it currently. We have a few Windows Server templates with UEFI set as the default boot mode. However, our template is more of a skeleton, as it only contains CPU, RAM, Disks, UEFI boot, Secure boot, etc., but contains no OS. It's just a VM shell. From there, we then deploy the guest OS via SCCM / PXE Boot.

    I bet it could be scripted somehow, as in, create the default VM the way you normally do. Once the shell is created, run a script against the new VM and set the boot firmware to UEFI. For example, as listed in the VMware Documentation, Enable or Disable UEFI Secure Boot for a Virtual Machine, do something like this:

    $vm = Get-VM TestVM

    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec

    $spec.Firmware = [VMware.Vim.GuestOsDescriptorFirmwareType]::efi

    $vm.ExtensionData.ReconfigVM($spec)

    I know it's still a bit manual, but since the vCenter default can't be changed, perhaps this might speed up your workflow a bit?

    Cheers,

    Doug