From 5e75bf33462f174ffc6bdc0d8860df411c70631e Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 6 Jan 2016 12:07:50 +0100 Subject: [PATCH] Fix broken VTx detection Signed-off-by: David Gageot --- drivers/virtualbox/virtualbox.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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