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,6 +489,7 @@ func (d *Driver) Start() error {
|
||||||
log.Infof("VM not in restartable state")
|
log.Infof("VM not in restartable state")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !d.NoVTXCheck {
|
||||||
// Verify that VT-X is not disabled in the started VM
|
// Verify that VT-X is not disabled in the started VM
|
||||||
vtxIsDisabled, err := d.IsVTXDisabledInTheVM()
|
vtxIsDisabled, err := d.IsVTXDisabledInTheVM()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -498,6 +499,7 @@ func (d *Driver) Start() error {
|
||||||
if vtxIsDisabled {
|
if vtxIsDisabled {
|
||||||
return ErrMustEnableVTX
|
return ErrMustEnableVTX
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
log.Infof("Waiting for an IP...")
|
log.Infof("Waiting for an IP...")
|
||||||
if err := d.ipWaiter.Wait(d); err != nil {
|
if err := d.ipWaiter.Wait(d); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue