diff --git a/drivers/virtualbox/virtualbox.go b/drivers/virtualbox/virtualbox.go index 6dc1725d41..4cafcbd23a 100644 --- a/drivers/virtualbox/virtualbox.go +++ b/drivers/virtualbox/virtualbox.go @@ -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