{"modulePath":"github.com/stackpointcloud/packer","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package iso\n\n## Constants\n\n```go\nconst BuilderIdESX = \"mitchellh.vmware-esx\"\n```\n\n```go\nconst DefaultAdditionalDiskTemplate = `\nscsi0:{{ .DiskNumber }}.fileName = \"{{ .DiskName}}-{{ .DiskNumber }}.vmdk\"\nscsi0:{{ .DiskNumber }}.present = \"TRUE\"\nscsi0:{{ .DiskNumber }}.redo = \"\"\n`\n```\n\n```go\nconst DefaultVMXTemplate = `\n.encoding = \"UTF-8\"\nbios.bootOrder = \"hdd,CDROM\"\ncheckpoint.vmState = \"\"\ncleanShutdown = \"TRUE\"\nconfig.version = \"8\"\ndisplayName = \"{{ .Name }}\"\nehci.pciSlotNumber = \"34\"\nehci.present = \"TRUE\"\nethernet0.addressType = \"generated\"\nethernet0.bsdName = \"en0\"\nethernet0.connectionType = \"nat\"\nethernet0.displayName = \"Ethernet\"\nethernet0.linkStatePropagation.enable = \"FALSE\"\nethernet0.pciSlotNumber = \"33\"\nethernet0.present = \"TRUE\"\nethernet0.virtualDev = \"e1000\"\nethernet0.wakeOnPcktRcv = \"FALSE\"\nextendedConfigFile = \"{{ .Name }}.vmxf\"\nfloppy0.present = \"FALSE\"\nguestOS = \"{{ .GuestOS }}\"\ngui.fullScreenAtPowerOn = \"FALSE\"\ngui.viewModeAtPowerOn = \"windowed\"\nhgfs.linkRootShare = \"TRUE\"\nhgfs.mapRootShare = \"TRUE\"\nide1:0.present = \"TRUE\"\nide1:0.fileName = \"{{ .ISOPath }}\"\nide1:0.deviceType = \"cdrom-image\"\nisolation.tools.hgfs.disable = \"FALSE\"\nmemsize = \"512\"\nnvram = \"{{ .Name }}.nvram\"\npciBridge0.pciSlotNumber = \"17\"\npciBridge0.present = \"TRUE\"\npciBridge4.functions = \"8\"\npciBridge4.pciSlotNumber = \"21\"\npciBridge4.present = \"TRUE\"\npciBridge4.virtualDev = \"pcieRootPort\"\npciBridge5.functions = \"8\"\npciBridge5.pciSlotNumber = \"22\"\npciBridge5.present = \"TRUE\"\npciBridge5.virtualDev = \"pcieRootPort\"\npciBridge6.functions = \"8\"\npciBridge6.pciSlotNumber = \"23\"\npciBridge6.present = \"TRUE\"\npciBridge6.virtualDev = \"pcieRootPort\"\npciBridge7.functions = \"8\"\npciBridge7.pciSlotNumber = \"24\"\npciBridge7.present = \"TRUE\"\npciBridge7.virtualDev = \"pcieRootPort\"\npowerType.powerOff = \"soft\"\npowerType.powerOn = \"soft\"\npowerType.reset = \"soft\"\npowerType.suspend = \"soft\"\nproxyApps.publishToHost = \"FALSE\"\nreplay.filename = \"\"\nreplay.supported = \"FALSE\"\nscsi0.pciSlotNumber = \"16\"\nscsi0.present = \"TRUE\"\nscsi0.virtualDev = \"lsilogic\"\nscsi0:0.fileName = \"{{ .DiskName }}.vmdk\"\nscsi0:0.present = \"TRUE\"\nscsi0:0.redo = \"\"\nsound.startConnected = \"FALSE\"\ntools.syncTime = \"TRUE\"\ntools.upgrade.policy = \"upgradeAtPowerCycle\"\nusb.pciSlotNumber = \"32\"\nusb.present = \"FALSE\"\nvirtualHW.productCompatibility = \"hosted\"\nvirtualHW.version = \"{{ .Version }}\"\nvmci0.id = \"1861462627\"\nvmci0.pciSlotNumber = \"35\"\nvmci0.present = \"TRUE\"\nvmotion.checkpointFBSize = \"65536000\"\n`\n```\nThis is the default VMX template used if no other template is given. This is hardcoded here. If you wish to use a custom template please do so by specifying in the builder configuration.\n\n## Functions\n\n```go\nfunc NewDriver(config *Config) (vmwcommon.Driver, error)\n```\nNewDriver returns a new driver implementation for this operating system, or an error if the driver couldn't be initialized.\n\n## Types\n\n```go\ntype Artifact struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifact is the result of running the VMware builder, namely a set of files associated with the resulting machine.\n\n```go\nfunc (a *Artifact) BuilderId() string\n```\n\n```go\nfunc (a *Artifact) Destroy() error\n```\n\n```go\nfunc (a *Artifact) Files() []string\n```\n\n```go\nfunc (*Artifact) Id() string\n```\n\n```go\nfunc (a *Artifact) State(name string) interface{}\n```\n\n```go\nfunc (a *Artifact) String() string\n```\n\n```go\ntype Builder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (b *Builder) Cancel()\n```\n\n```go\nfunc (b *Builder) Prepare(raws ...interface{}) ([]string, error)\n```\n\n```go\nfunc (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)\n```\n\n```go\ntype Config struct {\n\tcommon.PackerConfig      `mapstructure:\",squash\"`\n\tcommon.HTTPConfig        `mapstructure:\",squash\"`\n\tcommon.ISOConfig         `mapstructure:\",squash\"`\n\tvmwcommon.DriverConfig   `mapstructure:\",squash\"`\n\tvmwcommon.OutputConfig   `mapstructure:\",squash\"`\n\tvmwcommon.RunConfig      `mapstructure:\",squash\"`\n\tvmwcommon.ShutdownConfig `mapstructure:\",squash\"`\n\tvmwcommon.SSHConfig      `mapstructure:\",squash\"`\n\tvmwcommon.ToolsConfig    `mapstructure:\",squash\"`\n\tvmwcommon.VMXConfig      `mapstructure:\",squash\"`\n\n\tAdditionalDiskSize  []uint   `mapstructure:\"disk_additional_size\"`\n\tDiskName            string   `mapstructure:\"vmdk_name\"`\n\tDiskSize            uint     `mapstructure:\"disk_size\"`\n\tDiskTypeId          string   `mapstructure:\"disk_type_id\"`\n\tFloppyFiles         []string `mapstructure:\"floppy_files\"`\n\tFormat              string   `mapstructure:\"format\"`\n\tGuestOSType         string   `mapstructure:\"guest_os_type\"`\n\tVersion             string   `mapstructure:\"version\"`\n\tVMName              string   `mapstructure:\"vm_name\"`\n\tBootCommand         []string `mapstructure:\"boot_command\"`\n\tKeepRegistered      bool     `mapstructure:\"keep_registered\"`\n\tSkipCompaction      bool     `mapstructure:\"skip_compaction\"`\n\tVMXTemplatePath     string   `mapstructure:\"vmx_template_path\"`\n\tVMXDiskTemplatePath string   `mapstructure:\"vmx_disk_template_path\"`\n\n\tRemoteType           string `mapstructure:\"remote_type\"`\n\tRemoteDatastore      string `mapstructure:\"remote_datastore\"`\n\tRemoteCacheDatastore string `mapstructure:\"remote_cache_datastore\"`\n\tRemoteCacheDirectory string `mapstructure:\"remote_cache_directory\"`\n\tRemoteHost           string `mapstructure:\"remote_host\"`\n\tRemotePort           uint   `mapstructure:\"remote_port\"`\n\tRemoteUser           string `mapstructure:\"remote_username\"`\n\tRemotePassword       string `mapstructure:\"remote_password\"`\n\tRemotePrivateKey     string `mapstructure:\"remote_private_key_file\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ESX5Driver struct {\n\tHost           string\n\tPort           uint\n\tUsername       string\n\tPassword       string\n\tPrivateKey     string\n\tDatastore      string\n\tCacheDatastore string\n\tCacheDirectory string\n\t// contains filtered or unexported fields\n}\n```\nESX5 driver talks to an ESXi5 hypervisor remotely over SSH to build virtual machines. This driver can only manage one machine at a time.\n\n```go\nfunc (d *ESX5Driver) Clone(dst, src string) error\n```\n\n```go\nfunc (d *ESX5Driver) CommHost(state multistep.StateBag) (string, error)\n```\n\n```go\nfunc (d *ESX5Driver) CompactDisk(diskPathLocal string) error\n```\n\n```go\nfunc (d *ESX5Driver) CreateDisk(diskPathLocal string, size string, typeId string) error\n```\n\n```go\nfunc (d *ESX5Driver) Destroy() error\n```\n\n```go\nfunc (d *ESX5Driver) DhcpLeasesPath(string) string\n```\n\n```go\nfunc (d *ESX5Driver) DirExists() (bool, error)\n```\n\n```go\nfunc (d *ESX5Driver) HostIP() (string, error)\n```\n\n```go\nfunc (d *ESX5Driver) IsDestroyed() (bool, error)\n```\n\n```go\nfunc (d *ESX5Driver) IsRunning(string) (bool, error)\n```\n\n```go\nfunc (d *ESX5Driver) ListFiles() ([]string, error)\n```\n\n```go\nfunc (d *ESX5Driver) MkdirAll() error\n```\n\n```go\nfunc (d *ESX5Driver) Register(vmxPathLocal string) error\n```\n\n```go\nfunc (d *ESX5Driver) ReloadVM() error\n```\n\n```go\nfunc (d *ESX5Driver) Remove(path string) error\n```\n\n```go\nfunc (d *ESX5Driver) RemoveAll() error\n```\n\n```go\nfunc (d *ESX5Driver) SetOutputDir(path string)\n```\n\n```go\nfunc (d *ESX5Driver) Start(vmxPathLocal string, headless bool) error\n```\n\n```go\nfunc (d *ESX5Driver) Stop(vmxPathLocal string) error\n```\n\n```go\nfunc (d *ESX5Driver) String() string\n```\n\n```go\nfunc (d *ESX5Driver) SuppressMessages(vmxPath string) error\n```\n\n```go\nfunc (d *ESX5Driver) ToolsInstall() error\n```\n\n```go\nfunc (d *ESX5Driver) ToolsIsoPath(string) string\n```\n\n```go\nfunc (d *ESX5Driver) Unregister(vmxPathLocal string) error\n```\n\n```go\nfunc (d *ESX5Driver) UploadISO(localPath string, checksum string, checksumType string) (string, error)\n```\n\n```go\nfunc (d *ESX5Driver) VNCAddress(portMin, portMax uint) (string, uint, error)\n```\n\n```go\nfunc (d *ESX5Driver) Verify() error\n```\n\n```go\ntype OutputDir interface {\n\tDirExists() (bool, error)\n\tListFiles() ([]string, error)\n\tMkdirAll() error\n\tRemove(string) error\n\tRemoveAll() error\n\tSetOutputDir(string)\n}\n```\nOutputDir is an interface type that abstracts the creation and handling of the output directory for VMware-based products. The abstraction is made so that the output directory can be properly made on remote (ESXi) based VMware products as well as local.\n\n```go\ntype RemoteDriver interface {\n\tvmwcommon.Driver\n\n\t// UploadISO uploads a local ISO to the remote side and returns the\n\t// new path that should be used in the VMX along with an error if it\n\t// exists.\n\tUploadISO(string, string, string) (string, error)\n\n\t// Adds a VM to inventory specified by the path to the VMX given.\n\tRegister(string) error\n\n\t// Removes a VM from inventory specified by the path to the VMX given.\n\tUnregister(string) error\n\n\t// Destroys a VM\n\tDestroy() error\n\n\t// Checks if the VM is destroyed.\n\tIsDestroyed() (bool, error)\n\n\t// Reload VM on remote side.\n\tReloadVM() error\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype RemoteDriverMock struct {\n\tvmwcommon.DriverMock\n\n\tUploadISOCalled bool\n\tUploadISOPath   string\n\tUploadISOResult string\n\tUploadISOErr    error\n\n\tRegisterCalled bool\n\tRegisterPath   string\n\tRegisterErr    error\n\n\tUnregisterCalled bool\n\tUnregisterPath   string\n\tUnregisterErr    error\n\n\tDestroyCalled bool\n\tDestroyErr    error\n\n\tIsDestroyedCalled bool\n\tIsDestroyedResult bool\n\tIsDestroyedErr    error\n\n\tReloadVMErr error\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (d *RemoteDriverMock) Destroy() error\n```\n\n```go\nfunc (d *RemoteDriverMock) IsDestroyed() (bool, error)\n```\n\n```go\nfunc (d *RemoteDriverMock) Register(path string) error\n```\n\n```go\nfunc (d *RemoteDriverMock) ReloadVM() error\n```\n\n```go\nfunc (d *RemoteDriverMock) Unregister(path string) error\n```\n\n```go\nfunc (d *RemoteDriverMock) UploadISO(path string, checksum string, checksumType string) (string, error)\n```\n\n```go\ntype StepExport struct {\n\tFormat string\n}\n```\n\n```go\nfunc (s *StepExport) Cleanup(state multistep.StateBag)\n```\n\n```go\nfunc (s *StepExport) Run(state multistep.StateBag) multistep.StepAction\n```\n\n```go\ntype StepRegister struct {\n\tFormat string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *StepRegister) Cleanup(state multistep.StateBag)\n```\n\n```go\nfunc (s *StepRegister) Run(state multistep.StateBag) multistep.StepAction\n```\n\n```go\ntype StepUploadVMX struct {\n\tRemoteType string\n}\n```\nThis step upload the VMX to the remote host\n\nUses:\n\n\tdriver Driver\n\tui     packer.Ui\n\tvmx_path string\n\nProduces:\n\n\t\u003cnothing\u003e\n\n```go\nfunc (StepUploadVMX) Cleanup(multistep.StateBag)\n```\n\n```go\nfunc (c *StepUploadVMX) Run(state multistep.StateBag) multistep.StepAction\n```\n\n","path":"github.com/stackpointcloud/packer/builder/vmware/iso","name":"iso","synopsis":"","isRedistributable":true}
