Versions in this module Expand all Collapse all v0 v0.12.2 Jan 20, 2017 v0.12.1 Dec 15, 2016 Changes in this version + const BuilderId + const DefaultSwitchType + const FloppyFileName + const SleepSeconds + const SwitchTypeInternal + const SwitchTypePrivate + func CommHost(state multistep.StateBag) (string, error) + func NewArtifact(dir string) (packer.Artifact, error) + func SSHConfigFunc(config *SSHConfig) func(multistep.StateBag) (*gossh.ClientConfig, error) + type Driver interface + CompactDisks func(string, string) error + ConnectVirtualMachineNetworkAdapterToSwitch func(string, string) error + CopyExportedVirtualMachine func(string, string, string, string) error + CreateDvdDrive func(string, string, uint) (uint, uint, error) + CreateExternalVirtualSwitch func(string, string) error + CreateVirtualMachine func(string, string, int64, int64, string, uint) error + CreateVirtualSwitch func(string, string) (bool, error) + DeleteDvdDrive func(string, uint, uint) error + DeleteVirtualMachine func(string) error + DeleteVirtualSwitch func(string) error + EnableVirtualMachineIntegrationService func(string, string) error + ExportVirtualMachine func(string, string) error + GetHostAdapterIpAddressForSwitch func(string) (string, error) + GetHostName func(string) (string, error) + GetVirtualMachineNetworkAdapterAddress func(string) (string, error) + GetVirtualMachineSwitchName func(string) (string, error) + IpAddress func(string) (string, error) + IsOff func(string) (bool, error) + IsRunning func(string) (bool, error) + Mac func(string) (string, error) + MountDvdDrive func(string, string, uint, uint) error + MountFloppyDrive func(string, string) error + RestartVirtualMachine func(string) error + SetBootDvdDrive func(string, uint, uint, uint) error + SetNetworkAdapterVlanId func(string, string) error + SetVirtualMachineCpuCount func(string, uint) error + SetVirtualMachineDynamicMemory func(string, bool) error + SetVirtualMachineMacSpoofing func(string, bool) error + SetVirtualMachineSecureBoot func(string, bool) error + SetVirtualMachineVirtualizationExtensions func(string, bool) error + SetVirtualMachineVlanId func(string, string) error + Start func(string) error + Stop func(string) error + TypeScanCodes func(string, string) error + UnmountDvdDrive func(string, uint, uint) error + UnmountFloppyDrive func(string) error + UntagVirtualMachineNetworkAdapterVlan func(string, string) error + Uptime func(vmName string) (uint64, error) + Verify func() error + func NewHypervPS4Driver() (Driver, error) + type DvdControllerProperties struct + ControllerLocation uint + ControllerNumber uint + Existing bool + type FloppyConfig struct + FloppyFiles []string + func (c *FloppyConfig) Prepare(ctx *interpolate.Context) []error + type HypervPS4Driver struct + func (d *HypervPS4Driver) CompactDisks(expPath string, vhdDir string) error + func (d *HypervPS4Driver) ConnectVirtualMachineNetworkAdapterToSwitch(vmName string, switchName string) error + func (d *HypervPS4Driver) CopyExportedVirtualMachine(expPath string, outputPath string, vhdDir string, vmDir string) error + func (d *HypervPS4Driver) CreateDvdDrive(vmName string, isoPath string, generation uint) (uint, uint, error) + func (d *HypervPS4Driver) CreateExternalVirtualSwitch(vmName string, switchName string) error + func (d *HypervPS4Driver) CreateVirtualMachine(vmName string, path string, ram int64, diskSize int64, switchName string, ...) error + func (d *HypervPS4Driver) CreateVirtualSwitch(switchName string, switchType string) (bool, error) + func (d *HypervPS4Driver) DeleteDvdDrive(vmName string, controllerNumber uint, controllerLocation uint) error + func (d *HypervPS4Driver) DeleteVirtualMachine(vmName string) error + func (d *HypervPS4Driver) DeleteVirtualSwitch(switchName string) error + func (d *HypervPS4Driver) EnableVirtualMachineIntegrationService(vmName string, integrationServiceName string) error + func (d *HypervPS4Driver) ExportVirtualMachine(vmName string, path string) error + func (d *HypervPS4Driver) GetHostAdapterIpAddressForSwitch(switchName string) (string, error) + func (d *HypervPS4Driver) GetHostName(ip string) (string, error) + func (d *HypervPS4Driver) GetVirtualMachineNetworkAdapterAddress(vmName string) (string, error) + func (d *HypervPS4Driver) GetVirtualMachineSwitchName(vmName string) (string, error) + func (d *HypervPS4Driver) IpAddress(mac string) (string, error) + func (d *HypervPS4Driver) IsOff(vmName string) (bool, error) + func (d *HypervPS4Driver) IsRunning(vmName string) (bool, error) + func (d *HypervPS4Driver) Mac(vmName string) (string, error) + func (d *HypervPS4Driver) MountDvdDrive(vmName string, path string, controllerNumber uint, controllerLocation uint) error + func (d *HypervPS4Driver) MountFloppyDrive(vmName string, path string) error + func (d *HypervPS4Driver) RestartVirtualMachine(vmName string) error + func (d *HypervPS4Driver) SetBootDvdDrive(vmName string, controllerNumber uint, controllerLocation uint, generation uint) error + func (d *HypervPS4Driver) SetNetworkAdapterVlanId(switchName string, vlanId string) error + func (d *HypervPS4Driver) SetVirtualMachineCpuCount(vmName string, cpu uint) error + func (d *HypervPS4Driver) SetVirtualMachineDynamicMemory(vmName string, enable bool) error + func (d *HypervPS4Driver) SetVirtualMachineMacSpoofing(vmName string, enable bool) error + func (d *HypervPS4Driver) SetVirtualMachineSecureBoot(vmName string, enable bool) error + func (d *HypervPS4Driver) SetVirtualMachineVirtualizationExtensions(vmName string, enable bool) error + func (d *HypervPS4Driver) SetVirtualMachineVlanId(vmName string, vlanId string) error + func (d *HypervPS4Driver) Start(vmName string) error + func (d *HypervPS4Driver) Stop(vmName string) error + func (d *HypervPS4Driver) TypeScanCodes(vmName string, scanCodes string) error + func (d *HypervPS4Driver) UnmountDvdDrive(vmName string, controllerNumber uint, controllerLocation uint) error + func (d *HypervPS4Driver) UnmountFloppyDrive(vmName string) error + func (d *HypervPS4Driver) UntagVirtualMachineNetworkAdapterVlan(vmName string, switchName string) error + func (d *HypervPS4Driver) Uptime(vmName string) (uint64, error) + func (d *HypervPS4Driver) Verify() error + type OutputConfig struct + OutputDir string + func (c *OutputConfig) Prepare(ctx *interpolate.Context, pc *common.PackerConfig) []error + type RunConfig struct + BootWait time.Duration + RawBootWait string + func (c *RunConfig) Prepare(ctx *interpolate.Context) []error + type SSHConfig struct + Comm communicator.Config + func (c *SSHConfig) Prepare(ctx *interpolate.Context) []error + type ShutdownConfig struct + RawShutdownTimeout string + ShutdownCommand string + ShutdownTimeout time.Duration + func (c *ShutdownConfig) Prepare(ctx *interpolate.Context) []error + type StepConfigureIp struct + func (s *StepConfigureIp) Cleanup(state multistep.StateBag) + func (s *StepConfigureIp) Run(state multistep.StateBag) multistep.StepAction + type StepConfigureVlan struct + SwitchVlanId string + VlanId string + func (s *StepConfigureVlan) Cleanup(state multistep.StateBag) + func (s *StepConfigureVlan) Run(state multistep.StateBag) multistep.StepAction + type StepCreateExternalSwitch struct + SwitchName string + func (s *StepCreateExternalSwitch) Cleanup(state multistep.StateBag) + func (s *StepCreateExternalSwitch) Run(state multistep.StateBag) multistep.StepAction + type StepCreateSwitch struct + NetAdapterInterfaceDescription string + NetAdapterName string + SwitchName string + SwitchType string + func (s *StepCreateSwitch) Cleanup(state multistep.StateBag) + func (s *StepCreateSwitch) Run(state multistep.StateBag) multistep.StepAction + type StepCreateTempDir struct + func (s *StepCreateTempDir) Cleanup(state multistep.StateBag) + func (s *StepCreateTempDir) Run(state multistep.StateBag) multistep.StepAction + type StepCreateVM struct + Cpu uint + DiskSize uint + EnableDynamicMemory bool + EnableMacSpoofing bool + EnableSecureBoot bool + EnableVirtualizationExtensions bool + Generation uint + RamSize uint + SwitchName string + VMName string + func (s *StepCreateVM) Cleanup(state multistep.StateBag) + func (s *StepCreateVM) Run(state multistep.StateBag) multistep.StepAction + type StepDisableVlan struct + func (s *StepDisableVlan) Cleanup(state multistep.StateBag) + func (s *StepDisableVlan) Run(state multistep.StateBag) multistep.StepAction + type StepEnableIntegrationService struct + func (s *StepEnableIntegrationService) Cleanup(state multistep.StateBag) + func (s *StepEnableIntegrationService) Run(state multistep.StateBag) multistep.StepAction + type StepExportVm struct + OutputDir string + SkipCompaction bool + func (s *StepExportVm) Cleanup(state multistep.StateBag) + func (s *StepExportVm) Run(state multistep.StateBag) multistep.StepAction + type StepMountDvdDrive struct + Generation uint + func (s *StepMountDvdDrive) Cleanup(state multistep.StateBag) + func (s *StepMountDvdDrive) Run(state multistep.StateBag) multistep.StepAction + type StepMountFloppydrive struct + Generation uint + func (s *StepMountFloppydrive) Cleanup(state multistep.StateBag) + func (s *StepMountFloppydrive) Run(state multistep.StateBag) multistep.StepAction + type StepMountGuestAdditions struct + Generation uint + GuestAdditionsMode string + GuestAdditionsPath string + func (s *StepMountGuestAdditions) Cleanup(state multistep.StateBag) + func (s *StepMountGuestAdditions) Run(state multistep.StateBag) multistep.StepAction + type StepMountSecondaryDvdImages struct + Generation uint + IsoPaths []string + func (s *StepMountSecondaryDvdImages) Cleanup(state multistep.StateBag) + func (s *StepMountSecondaryDvdImages) Run(state multistep.StateBag) multistep.StepAction + type StepOutputDir struct + Force bool + Path string + func (s *StepOutputDir) Cleanup(state multistep.StateBag) + func (s *StepOutputDir) Run(state multistep.StateBag) multistep.StepAction + type StepPollingInstalation struct + func (s *StepPollingInstalation) Cleanup(state multistep.StateBag) + func (s *StepPollingInstalation) Run(state multistep.StateBag) multistep.StepAction + type StepRebootVm struct + func (s *StepRebootVm) Cleanup(state multistep.StateBag) + func (s *StepRebootVm) Run(state multistep.StateBag) multistep.StepAction + type StepRun struct + BootWait time.Duration + func (s *StepRun) Cleanup(state multistep.StateBag) + func (s *StepRun) Run(state multistep.StateBag) multistep.StepAction + type StepShutdown struct + Command string + Timeout time.Duration + func (s *StepShutdown) Cleanup(state multistep.StateBag) + func (s *StepShutdown) Run(state multistep.StateBag) multistep.StepAction + type StepSleep struct + ActionName string + Minutes time.Duration + func (s *StepSleep) Cleanup(state multistep.StateBag) + func (s *StepSleep) Run(state multistep.StateBag) multistep.StepAction + type StepTypeBootCommand struct + BootCommand []string + Ctx interpolate.Context + SwitchName string + func (*StepTypeBootCommand) Cleanup(multistep.StateBag) + func (s *StepTypeBootCommand) Run(state multistep.StateBag) multistep.StepAction + type StepUnmountDvdDrive struct + func (s *StepUnmountDvdDrive) Cleanup(state multistep.StateBag) + func (s *StepUnmountDvdDrive) Run(state multistep.StateBag) multistep.StepAction + type StepUnmountFloppyDrive struct + Generation uint + func (s *StepUnmountFloppyDrive) Cleanup(state multistep.StateBag) + func (s *StepUnmountFloppyDrive) Run(state multistep.StateBag) multistep.StepAction + type StepUnmountGuestAdditions struct + func (s *StepUnmountGuestAdditions) Cleanup(state multistep.StateBag) + func (s *StepUnmountGuestAdditions) Run(state multistep.StateBag) multistep.StepAction + type StepUnmountSecondaryDvdImages struct + func (s *StepUnmountSecondaryDvdImages) Cleanup(state multistep.StateBag) + func (s *StepUnmountSecondaryDvdImages) Run(state multistep.StateBag) multistep.StepAction + type StepWaitForInstallToComplete struct + ActionName string + ExpectedRebootCount uint + func (s *StepWaitForInstallToComplete) Cleanup(state multistep.StateBag) + func (s *StepWaitForInstallToComplete) Run(state multistep.StateBag) multistep.StepAction + type StepWaitForPowerOff struct + func (s *StepWaitForPowerOff) Cleanup(state multistep.StateBag) + func (s *StepWaitForPowerOff) Run(state multistep.StateBag) multistep.StepAction