Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const BuilderId + const GuestAdditionsModeAttach + const GuestAdditionsModeDisable + const GuestAdditionsModeUpload + const KeyLeftShift + func CommHost(host string) func(multistep.StateBag) (string, error) + func NewArtifact(dir string) (packer.Artifact, error) + func SSHPort(state multistep.StateBag) (int, error) + type Driver interface + CreateSATAController func(vm string, controller string, portcount int) error + CreateSCSIController func(vm string, controller string) error + Delete func(string) error + Import func(string, string, []string) error + IsRunning func(string) (bool, error) + Iso func() (string, error) + Stop func(string) error + SuppressMessages func() error + VBoxManage func(...string) error + Verify func() error + Version func() (string, error) + func NewDriver() (Driver, error) + type DriverMock struct + CreateSATAControllerController string + CreateSATAControllerErr error + CreateSATAControllerVM string + CreateSCSIControllerController string + CreateSCSIControllerErr error + CreateSCSIControllerVM string + DeleteCalled bool + DeleteErr error + DeleteName string + ImportCalled bool + ImportErr error + ImportFlags []string + ImportName string + ImportPath string + IsRunningErr error + IsRunningName string + IsRunningReturn bool + IsoCalled bool + IsoErr error + StopErr error + StopName string + SuppressMessagesCalled bool + SuppressMessagesErr error + VBoxManageCalls [][]string + VBoxManageErrs []error + VerifyCalled bool + VerifyErr error + VersionCalled bool + VersionErr error + VersionResult string + func (d *DriverMock) CreateSATAController(vm string, controller string, portcount int) error + func (d *DriverMock) CreateSCSIController(vm string, controller string) error + func (d *DriverMock) Delete(name string) error + func (d *DriverMock) Import(name string, path string, flags []string) error + func (d *DriverMock) IsRunning(name string) (bool, error) + func (d *DriverMock) Iso() (string, error) + func (d *DriverMock) Stop(name string) error + func (d *DriverMock) SuppressMessages() error + func (d *DriverMock) VBoxManage(args ...string) error + func (d *DriverMock) Verify() error + func (d *DriverMock) Version() (string, error) + type ExportConfig struct + Format string + func (c *ExportConfig) Prepare(ctx *interpolate.Context) []error + type ExportOpts struct + ExportOpts []string + func (c *ExportOpts) Prepare(ctx *interpolate.Context) []error + type OutputConfig struct + OutputDir string + func (c *OutputConfig) Prepare(ctx *interpolate.Context, pc *common.PackerConfig) []error + type RunConfig struct + Headless bool + VRDPBindAddress string + VRDPPortMax uint + VRDPPortMin uint + func (c *RunConfig) Prepare(ctx *interpolate.Context) (errs []error) + type SSHConfig struct + Comm communicator.Config + SSHHostPortMax uint + SSHHostPortMin uint + SSHSkipNatMapping bool + SSHWaitTimeout time.Duration + func (c *SSHConfig) Prepare(ctx *interpolate.Context) []error + type ShutdownConfig struct + PostShutdownDelay time.Duration + RawPostShutdownDelay string + RawShutdownTimeout string + ShutdownCommand string + ShutdownTimeout time.Duration + func (c *ShutdownConfig) Prepare(ctx *interpolate.Context) []error + type StepAttachFloppy struct + func (s *StepAttachFloppy) Cleanup(state multistep.StateBag) + func (s *StepAttachFloppy) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepAttachGuestAdditions struct + GuestAdditionsMode string + func (s *StepAttachGuestAdditions) Cleanup(state multistep.StateBag) + func (s *StepAttachGuestAdditions) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepConfigureVRDP struct + VRDPBindAddress string + VRDPPortMax uint + VRDPPortMin uint + func (s *StepConfigureVRDP) Cleanup(state multistep.StateBag) + func (s *StepConfigureVRDP) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepDownloadGuestAdditions struct + Ctx interpolate.Context + GuestAdditionsMode string + GuestAdditionsSHA256 string + GuestAdditionsURL string + func (s *StepDownloadGuestAdditions) Cleanup(state multistep.StateBag) + func (s *StepDownloadGuestAdditions) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepExport struct + ExportOpts []string + Format string + OutputDir string + SkipExport bool + SkipNatMapping bool + func (s *StepExport) Cleanup(state multistep.StateBag) + func (s *StepExport) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepForwardSSH struct + CommConfig *communicator.Config + HostPortMax uint + HostPortMin uint + SkipNatMapping bool + func (s *StepForwardSSH) Cleanup(state multistep.StateBag) + func (s *StepForwardSSH) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepOutputDir struct + Force bool + Path string + func (s *StepOutputDir) Cleanup(state multistep.StateBag) + func (s *StepOutputDir) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepRemoveDevices struct + func (s *StepRemoveDevices) Cleanup(state multistep.StateBag) + func (s *StepRemoveDevices) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepRun struct + Headless bool + func (s *StepRun) Cleanup(state multistep.StateBag) + func (s *StepRun) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepShutdown struct + Command string + Delay time.Duration + Timeout time.Duration + func (s *StepShutdown) Cleanup(state multistep.StateBag) + func (s *StepShutdown) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepSuppressMessages struct + func (StepSuppressMessages) Cleanup(multistep.StateBag) + func (StepSuppressMessages) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepTypeBootCommand struct + BootCommand string + BootWait time.Duration + Ctx interpolate.Context + GroupInterval time.Duration + VMName string + func (*StepTypeBootCommand) Cleanup(multistep.StateBag) + func (s *StepTypeBootCommand) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepUploadGuestAdditions struct + Ctx interpolate.Context + GuestAdditionsMode string + GuestAdditionsPath string + func (s *StepUploadGuestAdditions) Cleanup(state multistep.StateBag) + func (s *StepUploadGuestAdditions) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepUploadVersion struct + Path string + func (s *StepUploadVersion) Cleanup(state multistep.StateBag) + func (s *StepUploadVersion) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepVBoxManage struct + Commands [][]string + Ctx interpolate.Context + func (s *StepVBoxManage) Cleanup(state multistep.StateBag) + func (s *StepVBoxManage) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type VBox42Driver struct + VBoxManagePath string + func (d *VBox42Driver) CreateSATAController(vmName string, name string, portcount int) error + func (d *VBox42Driver) CreateSCSIController(vmName string, name string) error + func (d *VBox42Driver) Delete(name string) error + func (d *VBox42Driver) Import(name string, path string, flags []string) error + func (d *VBox42Driver) IsRunning(name string) (bool, error) + func (d *VBox42Driver) Iso() (string, error) + func (d *VBox42Driver) Stop(name string) error + func (d *VBox42Driver) SuppressMessages() error + func (d *VBox42Driver) VBoxManage(args ...string) error + func (d *VBox42Driver) Verify() error + func (d *VBox42Driver) Version() (string, error) + type VBoxManageConfig struct + VBoxManage [][]string + func (c *VBoxManageConfig) Prepare(ctx *interpolate.Context) []error + type VBoxManagePostConfig struct + VBoxManagePost [][]string + func (c *VBoxManagePostConfig) Prepare(ctx *interpolate.Context) []error + type VBoxVersionConfig struct + VBoxVersionFile *string + func (c *VBoxVersionConfig) Prepare(ctx *interpolate.Context) []error