Merge pull request #2757 from dgageot/fix-broken-vtx-detection

Fix broken VTx detection
This commit is contained in:
Jean-Laurent de Morlhon 2016-01-06 16:11:46 +01:00
commit e9be8eef71
1 changed files with 7 additions and 5 deletions

View File

@ -211,12 +211,14 @@ func (d *Driver) PreCreateCheck() error {
return err
}
if isHyperVInstalled() {
return ErrNotCompatibleWithHyperV
}
if !d.NoVTXCheck {
return ErrMustEnableVTX
if isHyperVInstalled() {
return ErrNotCompatibleWithHyperV
}
if d.IsVTXDisabled() {
return ErrMustEnableVTX
}
}
// Downloading boot2docker to cache should be done here to make sure