Documentation ¶
Index ¶
- Variables
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) IsVTXDisabled() bool
- func (d *Driver) IsVTXDisabledInTheVM() (bool, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- type VBoxCmdManager
- type VBoxManager
- type VirtualBoxVM
- type VirtualDisk
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMachineNotExist = errors.New("machine does not exist") ErrVBMNotFound = errors.New("VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path") )
View Source
var ( ErrUnableToGenerateRandomIP = errors.New("unable to generate random IP") ErrMustEnableVTX = errors.New("This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory.") ErrNetworkAddrCidr = errors.New("host-only cidr must be specified with a host address, not a network address") )
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { VBoxManager *drivers.BaseDriver CPU int Memory int DiskSize int Boot2DockerURL string Boot2DockerImportVM string HostOnlyCIDR string HostOnlyNicType string HostOnlyPromiscMode string }
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶ added in v0.5.0
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetSSHHostname ¶ added in v0.2.0
func (*Driver) GetSSHUsername ¶ added in v0.2.0
func (*Driver) IsVTXDisabled ¶ added in v0.5.0
IsVTXDisabled checks if VT-X is disabled in the BIOS. If it is, the vm will fail to start. If we can't be sure it is disabled, we carry on and will check the vm logs after it's started.
func (*Driver) IsVTXDisabledInTheVM ¶ added in v0.5.0
IsVTXDisabledInTheVM checks if VT-X is disabled in the started vm.
func (*Driver) PreCreateCheck ¶
PreCreateCheck checks that VBoxManage exists and works
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
type VBoxCmdManager ¶ added in v0.5.0
type VBoxCmdManager struct{}
VBoxCmdManager communicates with VirtualBox through the commandline using `VBoxManage`.
type VBoxManager ¶ added in v0.5.0
type VBoxManager interface {
// contains filtered or unexported methods
}
VBoxManager defines the interface to communicate to VirtualBox.
type VirtualBoxVM ¶ added in v0.3.0
type VirtualDisk ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.