diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index 5c4286a5c..c551f980e 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -19,6 +19,7 @@ type config struct { VMName string `mapstructure:"vm_name"` OutputDir string `mapstructure:"output_directory"` HTTPDir string `mapstructure:"http_directory"` + BootCommand []string `mapstructure:"boot_command"` } func (b *Builder) Prepare(raw interface{}) (err error) { diff --git a/builder/vmware/step_create_vmx.go b/builder/vmware/step_create_vmx.go index f4cb07ce0..eec05707d 100644 --- a/builder/vmware/step_create_vmx.go +++ b/builder/vmware/step_create_vmx.go @@ -17,6 +17,14 @@ type vmxTemplateData struct { VNCPort uint } +// This step creates the VMX file for the VM. +// +// Uses: +// config *config +// ui packer.Ui +// +// Produces: +// vnc_port uint - The port the VM is configured to listen on for VNC. type stepCreateVMX struct{} func (stepCreateVMX) Run(state map[string]interface{}) multistep.StepAction {