mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
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:
@@ -489,14 +489,16 @@ func (d *Driver) Start() error {
|
||||
log.Infof("VM not in restartable state")
|
||||
}
|
||||
|
||||
// Verify that VT-X is not disabled in the started VM
|
||||
vtxIsDisabled, err := d.IsVTXDisabledInTheVM()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Checking if hardware virtualization is enabled failed: %s", err)
|
||||
}
|
||||
if !d.NoVTXCheck {
|
||||
// Verify that VT-X is not disabled in the started VM
|
||||
vtxIsDisabled, err := d.IsVTXDisabledInTheVM()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Checking if hardware virtualization is enabled failed: %s", err)
|
||||
}
|
||||
|
||||
if vtxIsDisabled {
|
||||
return ErrMustEnableVTX
|
||||
if vtxIsDisabled {
|
||||
return ErrMustEnableVTX
|
||||
}
|
||||
}
|
||||
|
||||
log.Infof("Waiting for an IP...")
|
||||
|
||||
Reference in New Issue
Block a user