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.

pull/7357/head
Eric Mowry 7 years ago
parent 7dbd42c7f3
commit 1127096beb

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

Loading…
Cancel
Save