diff --git a/builder/vmware/iso/builder.go b/builder/vmware/iso/builder.go index f2489c50f..1742f3149 100755 --- a/builder/vmware/iso/builder.go +++ b/builder/vmware/iso/builder.go @@ -318,6 +318,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Timeout: b.config.ShutdownTimeout, }, &vmwcommon.StepCleanFiles{}, + &vmwcommon.StepCompactDisk{ + Skip: b.config.SkipCompaction, + }, &vmwcommon.StepConfigureVMX{ CustomData: b.config.VMXDataPost, SkipFloppy: true, @@ -326,9 +329,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe &StepUploadVMX{ RemoteType: b.config.RemoteType, }, - &vmwcommon.StepCompactDisk{ - Skip: b.config.SkipCompaction, - }, } // Run! diff --git a/builder/vmware/vmx/builder.go b/builder/vmware/vmx/builder.go index aa86d3669..66eb69f37 100644 --- a/builder/vmware/vmx/builder.go +++ b/builder/vmware/vmx/builder.go @@ -108,14 +108,14 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Timeout: b.config.ShutdownTimeout, }, &vmwcommon.StepCleanFiles{}, + &vmwcommon.StepCompactDisk{ + Skip: b.config.SkipCompaction, + }, &vmwcommon.StepConfigureVMX{ CustomData: b.config.VMXDataPost, SkipFloppy: true, }, &vmwcommon.StepCleanVMX{}, - &vmwcommon.StepCompactDisk{ - Skip: b.config.SkipCompaction, - }, } // Run the steps.