From 1127096beb3d22d825d3218fd6813bba828ae391 Mon Sep 17 00:00:00 2001 From: Eric Mowry Date: Thu, 28 Feb 2019 16:43:47 -0500 Subject: [PATCH] Setting extendedconfigfile to the name of the VM so that when ESXi makes the vmxf it is named after the VM and ESXi will properly delete the file when the VM gets deleted. --- builder/vmware/common/step_configure_vmx.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/vmware/common/step_configure_vmx.go b/builder/vmware/common/step_configure_vmx.go index a4ebd7ae6..fd8bdea87 100644 --- a/builder/vmware/common/step_configure_vmx.go +++ b/builder/vmware/common/step_configure_vmx.go @@ -102,6 +102,8 @@ func (s *StepConfigureVMX) Run(_ context.Context, state multistep.StateBag) mult } } + vmxData["extendedconfigfile"] = fmt.Sprintf("%s.vmxf", s.DisplayName) + err = WriteVMX(vmxPath, vmxData) if err != nil {