Documentation ¶
Index ¶
- Constants
- type Artifact
- type Builder
- type Driver
- type VBox42Driver
- func (d *VBox42Driver) CreateSATAController(vmName string, name string) error
- func (d *VBox42Driver) IsRunning(name string) (bool, 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)
Constants ¶
View Source
const BuilderId = "mitchellh.virtualbox"
View Source
const KeyLeftShift uint32 = 0xFFE1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact is the result of running the VirtualBox builder, namely a set of files associated with the resulting machine.
type Driver ¶
type Driver interface { // Create a SATA controller. CreateSATAController(vm string, controller string) error // Checks if the VM with the given name is running. IsRunning(string) (bool, error) // Stop stops a running machine, forcefully. Stop(string) error // SuppressMessages should do what needs to be done in order to // suppress any annoying popups from VirtualBox. SuppressMessages() error // VBoxManage executes the given VBoxManage command VBoxManage(...string) error // Verify checks to make sure that this driver should function // properly. If there is any indication the driver can't function, // this will return an error. Verify() error // Version reads the version of VirtualBox that is installed. Version() (string, error) }
A driver is able to talk to VirtualBox and perform certain operations with it. Some of the operations on here may seem overly specific, but they were built specifically in mind to handle features of the VirtualBox builder for Packer, and to abstract differences in versions out of the builder steps, so sometimes the methods are extremely specific.
type VBox42Driver ¶
type VBox42Driver struct { // This is the path to the "VBoxManage" application. VBoxManagePath string }
func (*VBox42Driver) CreateSATAController ¶ added in v0.3.10
func (d *VBox42Driver) CreateSATAController(vmName string, name string) error
func (*VBox42Driver) Stop ¶
func (d *VBox42Driver) Stop(name string) error
func (*VBox42Driver) SuppressMessages ¶
func (d *VBox42Driver) SuppressMessages() error
func (*VBox42Driver) VBoxManage ¶
func (d *VBox42Driver) VBoxManage(args ...string) error
func (*VBox42Driver) Verify ¶
func (d *VBox42Driver) Verify() error
func (*VBox42Driver) Version ¶
func (d *VBox42Driver) Version() (string, error)
Source Files ¶
- artifact.go
- builder.go
- driver.go
- ssh.go
- step_attach_floppy.go
- step_attach_guest_additions.go
- step_attach_iso.go
- step_create_disk.go
- step_create_vm.go
- step_download_guest_additions.go
- step_export.go
- step_forward_ssh.go
- step_http_server.go
- step_prepare_output_dir.go
- step_run.go
- step_shutdown.go
- step_suppress_messages.go
- step_type_boot_command.go
- step_upload_guest_additions.go
- step_upload_version.go
- step_vboxmanage.go
Click to show internal directories.
Click to hide internal directories.