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:
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…
Reference in New Issue