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.

This commit is contained in:
Eric Mowry 2019-02-28 16:43:47 -05:00
parent 7dbd42c7f3
commit 1127096beb
1 changed files with 2 additions and 0 deletions

View File

@ -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 {