diff --git a/builder/vmware/vmx/builder.go b/builder/vmware/vmx/builder.go index dd47598b0..bb665690d 100644 --- a/builder/vmware/vmx/builder.go +++ b/builder/vmware/vmx/builder.go @@ -55,6 +55,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe &vmwcommon.StepOutputDir{ Force: b.config.PackerForce, }, + &common.StepCreateFloppy{ + Files: b.config.FloppyFiles, + }, &StepCloneVMX{ OutputDir: b.config.OutputDir, Path: b.config.SourcePath, diff --git a/builder/vmware/vmx/config.go b/builder/vmware/vmx/config.go index 70f125c0a..4756d6488 100644 --- a/builder/vmware/vmx/config.go +++ b/builder/vmware/vmx/config.go @@ -19,9 +19,10 @@ type Config struct { vmwcommon.SSHConfig `mapstructure:",squash"` vmwcommon.VMXConfig `mapstructure:",squash"` - SkipCompaction bool `mapstructure:"skip_compaction"` - SourcePath string `mapstructure:"source_path"` - VMName string `mapstructure:"vm_name"` + FloppyFiles []string `mapstructure:"floppy_files"` + SkipCompaction bool `mapstructure:"skip_compaction"` + SourcePath string `mapstructure:"source_path"` + VMName string `mapstructure:"vm_name"` tpl *packer.ConfigTemplate }