From 765d96e8ebc6f45b345e8a446516c973792914ab Mon Sep 17 00:00:00 2001 From: Joshua Foster Date: Thu, 9 Jul 2020 10:34:48 -0400 Subject: [PATCH] unset HardwareConfig.Firmware since CreateConfig.Firmware configures the firmware in StepCreateVM --- builder/vsphere/iso/builder.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builder/vsphere/iso/builder.go b/builder/vsphere/iso/builder.go index 1ae3fc1f0..2f65200f4 100644 --- a/builder/vsphere/iso/builder.go +++ b/builder/vsphere/iso/builder.go @@ -60,6 +60,11 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack ) } + // default Firmware to "" since it is already configured by the CreateConfig.Firmware + if b.config.CreateConfig.Firmware != "" { + b.config.HardwareConfig.Firmware = "" + } + steps = append(steps, &StepCreateVM{ Config: &b.config.CreateConfig,