Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" #3474

Closed
richardgohcr opened this issue Aug 31, 2020 · 12 comments

Comments

@richardgohcr
Copy link

I am currently trying to set up minishift on my Dell XPS 15 laptop running Windows 10 home. I have also previously installed Docker desktop for windows with no problems. However, I am facing the error message "Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

I have tried disabling and re-enabling virtualisation on my system BIOS, but to no avail. Anyone facing this issue on Windows 10 Home as well?

General information

  • Minishift version: v1.34.2
  • OS: Windows 10 Home 2004
  • Hypervisor: VirtualBox

PS C:\Users\Richard> minishift start -- Starting profile 'minishift' -- Check if deprecated options are used ... OK -- Checking if https://mirror.openshift.com is reachable ... OK -- Checking if requested OpenShift version 'v3.11.232' is valid ... OK -- Checking if requested OpenShift version 'v3.11.232' is supported ... OK -- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK -- Checking if VirtualBox is installed ... OK -- Checking the ISO URL ... OK -- Checking if provided oc flags are supported ... OK -- Starting the OpenShift cluster using 'virtualbox' hypervisor ... -- Minishift VM will be configured with ... Memory: 4 GB vCPUs : 2 Disk size: 20 GB -- Starting Minishift VM ..... FAIL E0831 23:15:47.758000 20152 start.go:494] Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying. Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

@anjannath
Copy link
Member

On windows, enabling hyperv along with virtualbox may cause issues, are you sure that hyperv is also not enabled in the same time?

@miroslav-beranic
Copy link

miroslav-beranic commented Oct 19, 2020

I was looking for this for days. I only have VBox installed and Minishift fails to start, with same error as reported. On same workstation, in dual boot I have Fedora, where Minishift works as expected.

I have VT-X enabled in BIOS ( in can not be disabled 🍔 ) and I have VBox 6.1.

@richardgohcr Just noticed - Windows 10 Home ( as far as I understand, only Pro+ version of Windows 10 is able to use Virtualization ). Can be, I am wrong. But this is one thing I read when looking how to fix my problem.

@bintegra
Copy link

Hi all,

it turned out Minishift is complaining about missing Hyper-V, regardless configuration to use VBox.

 minishift.exe start  --show-libmachine-logs --logtostderr -v5 --vm-driver virtualbox
-- minishift version: v1.34.3+4b58f89
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'virtualbox' hypervisor ...
-- Minishift VM will be configured with ...
   Memory:    2 GB
   vCPUs :    2
   Disk size: 20 GB
-- Starting Minishift VM ....Found binary path at C:\Minishift\bin\minishift.exe
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:64675
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetMachineName
(minishift) Calling .DriverName
Reading certificate data from C:\Minishift\certs\ca.pem
Decoding PEM data...
Parsing certificate...
Reading certificate data from C:\Minishift\certs\cert.pem
Decoding PEM data...
Parsing certificate...
Running pre-create checks...
(minishift) Calling .PreCreateCheck
(minishift) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe --version
(minishift) DBG | STDOUT:
(minishift) DBG | {
(minishift) DBG | 6.1.14r140239
(minishift) DBG | }
(minishift) DBG | STDERR:
(minishift) DBG | {
(minishift) DBG | }
(minishift) DBG | Hyper-V is not installed.
. FAIL E1020 13:03:19.726727    3972 start.go:499] Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying.
Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"

@CallisteH
Copy link

CallisteH commented Jan 27, 2021

Same issue there.
I'm on Windows10 home, so I do not have Hyper-V installed, according to this doc

@p4qu1t0 Minishift seems to instanciate himself the VM on virtualbox so I do not have any VM in my list after running VBoxManage list vms

VirtualBox is installed and can run VM, but Minishift stills wants hyper-v

$ minishift start --show-libmachine-logs --logtostderr -v5 --vm-driver virtualbox
-- minishift version: v1.34.3+cb967be
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://mirror.openshift.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.286' is valid ... SKIP
-- Checking if requested OpenShift version 'v3.11.286' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'virtualbox' hypervisor ...
-- Minishift VM will be configured with ...
   Memory:    4 GB
   vCPUs :    2
   Disk size: 20 GB
-- Starting Minishift VM ....Found binary path at C:\Users\calli\minishift\minishift.exe
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:64693
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetMachineName
(minishift) Calling .DriverName
Reading certificate data from C:\Users\calli\.minishift\certs\ca.pem
Decoding PEM data...
Parsing certificate...
Reading certificate data from C:\Users\calli\.minishift\certs\cert.pem
Decoding PEM data...
Parsing certificate...
Running pre-create checks...
(minishift) Calling .PreCreateCheck
(minishift) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe --version
(minishift) DBG | STDOUT:
(minishift) DBG | {
(minishift) DBG | 6.1.18r142142
(minishift) DBG | }
(minishift) DBG | STDERR:
(minishift) DBG | {
(minishift) DBG | }
(minishift) DBG | Hyper-V is not installed.
. FAIL E0127 10:08:01.569914   10892 start.go:499] Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory". Retrying.
Error starting the VM: Error creating the VM. Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"```

@mrballcb
Copy link

mrballcb commented Jan 29, 2021

I struggled with this same error while trying to get minishift to create VM's in my freshly installed VirtualBox (and rebooted). I created a test linux VM,, and saw the nested VT-x setting was grayed out for me in VirtualBox. All of the instructions say to make sure that Hyper-V is turned off because it puts some kind of lock on on the VT-X such that VirtualBox can't share it. I did not have Hyper-V enabled on my Win10 Home machine, however I did have "Virtual Machine Platform" enabled.

both-features-off-in-win10

After turning off both of them, minishift start began working. (It didn't succeed all the way, but I'm still researching.) EDIT: Yes it did succeed all the way - I mistook some of the debug output as failures, when it actually is "keep trying to connect to do something until it succeeds".

@gbraad
Copy link
Member

gbraad commented Feb 18, 2021

Make sure virtualization is enabled from the BIOS and that the hypervisor has exclusive access to the VTX estension; don't mix hypervisors on the same machine.

@gbraad gbraad closed this as completed Feb 18, 2021
@gbraad
Copy link
Member

gbraad commented Feb 18, 2021

it turned out Minishift is complaining about missing Hyper-V, regardless configuration to use VBox.

make sure to remove any previous VMs, and use the driver option to force the selection on start

@mihailmanoli
Copy link

I did not have Hyper-V enabled on my Win10 Home machine, however I did have "Virtual Machine Platform" enabled.

This saved my day

@adarshvyas99
Copy link

image

@adarshvyas99
Copy link

I am getting the same

@gbraad
Copy link
Member

gbraad commented Jul 18, 2021 via email

@mahmud255
Copy link

I struggled with this same error while trying to get minishift to create VM's in my freshly installed VirtualBox (and rebooted). I created a test linux VM,, and saw the nested VT-x setting was grayed out for me in VirtualBox. All of the instructions say to make sure that Hyper-V is turned off because it puts some kind of lock on on the VT-X such that VirtualBox can't share it. I did not have Hyper-V enabled on my Win10 Home machine, however I did have "Virtual Machine Platform" enabled.

both-features-off-in-win10

After turning off both of them, minishift start began working. (It didn't succeed all the way, but I'm still researching.) EDIT: Yes it did succeed all the way - I mistook some of the debug output as failures, when it actually is "keep trying to connect to do something until it succeeds".

Thanks a lot. It works for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants