mirror of https://github.com/docker/docs.git
Merge pull request #3018 from hypriot/improve-no-vtx-check
Improve --virtualbox-no-vtx-check option to allow starting the VM
This commit is contained in:
commit
bf12d191e3
|
@ -489,14 +489,16 @@ func (d *Driver) Start() error {
|
||||||
log.Infof("VM not in restartable state")
|
log.Infof("VM not in restartable state")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify that VT-X is not disabled in the started VM
|
if !d.NoVTXCheck {
|
||||||
vtxIsDisabled, err := d.IsVTXDisabledInTheVM()
|
// Verify that VT-X is not disabled in the started VM
|
||||||
if err != nil {
|
vtxIsDisabled, err := d.IsVTXDisabledInTheVM()
|
||||||
return fmt.Errorf("Checking if hardware virtualization is enabled failed: %s", err)
|
if err != nil {
|
||||||
}
|
return fmt.Errorf("Checking if hardware virtualization is enabled failed: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
if vtxIsDisabled {
|
if vtxIsDisabled {
|
||||||
return ErrMustEnableVTX
|
return ErrMustEnableVTX
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("Waiting for an IP...")
|
log.Infof("Waiting for an IP...")
|
||||||
|
|
Loading…
Reference in New Issue