diff --git a/builder/vmware/iso/builder.go b/builder/vmware/iso/builder.go index d1f24fa64..ff77ef9cf 100644 --- a/builder/vmware/iso/builder.go +++ b/builder/vmware/iso/builder.go @@ -367,10 +367,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Timeout: b.config.ShutdownTimeout, }, &vmwcommon.StepCleanFiles{}, - &vmwcommon.StepCleanVMX{}, &vmwcommon.StepConfigureVMX{ CustomData: b.config.VMXDataPost, }, + &vmwcommon.StepCleanVMX{}, &vmwcommon.StepCompactDisk{ Skip: b.config.SkipCompaction, }, diff --git a/builder/vmware/vmx/builder.go b/builder/vmware/vmx/builder.go index e75f62b57..a1e7ae963 100644 --- a/builder/vmware/vmx/builder.go +++ b/builder/vmware/vmx/builder.go @@ -94,10 +94,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Timeout: b.config.ShutdownTimeout, }, &vmwcommon.StepCleanFiles{}, - &vmwcommon.StepCleanVMX{}, &vmwcommon.StepConfigureVMX{ CustomData: b.config.VMXDataPost, }, + &vmwcommon.StepCleanVMX{}, &vmwcommon.StepCompactDisk{ Skip: b.config.SkipCompaction, },